cancel
Showing results for 
Search instead for 
Did you mean: 

Magento2.1.7 Change Custom Option Value

Magento2.1.7 Change Custom Option Value

Hello,

I want to change custom option value and 

I have added new attribute about 'disabled' and edited the option value in 'vendor\magento\module-catalog\Block\Product\View\Options\Type\Select.php' file.   

 

The html result is not ok ,  the disabled attribute have added but the option value don't change.    Why ?     Could you help me to fix it? 

 

screenshot  below:

 

source codesource codefrontend htmlfrontend html

 

4 REPLIES 4

Re: Magento2.1.7 Change Custom Option Value

Any guys help me ?  

Re: Magento2.1.7 Change Custom Option Value

Hi @mincovip,

 

First of all is a really bad idea to change some core class. Next time you try to update you'll override your own changes.

 

Now, can you explain a little bit more about the new behavior you're trying to obtain?

Re: Magento2.1.7 Change Custom Option Value

Hi  @Damian Culotta,

 

Thanks for you reply.

Yes, it's bad idea to change core class.    Smiley Happy

I just want to change the option display effect.

For example, change the option value,    how to get the display effect ?  display effectdisplay effect

Re: Magento2.1.7 Change Custom Option Value

Who can help me ?