cancel
Showing results for 
Search instead for 
Did you mean: 

How to hide price info in dropdown.

How to hide price info in dropdown.

Hi,

 

I would like to hide price info  (+100 $) in drop-down on the product side.

 

I found some guides on the Internet, however it is about Magento 1.6/1.7 and it looks like structure is totally different.

 

I am using version 2.1.9, and would like to remove that info in drop-down. Could you help me with that?

 

Also I would like to display value from drop down as a single select list. Where I can find it?

 

 

Thank you in advance.

2 REPLIES 2

Re: How to hide price info in dropdown.

This is the line that adds the price string to select options: 

 

https://github.com/magento/magento2/blob/2.2-develop/app/code/Magento/Catalog/Block/Product/View/Opt...

 

So you'd need to create a new block that replaces this functionality (e.g. https://magento.stackexchange.com/questions/134093/how-to-override-blocks-in-v2-1/134106) 

----
If you've found one of my answers useful, please give "Kudos" or "Accept as Solution" as appropriate. Thanks!

Re: How to hide price info in dropdown.

Thanks,

 

I will try to follow up that guide. Thanks a lot!