cancel
Showing results for 
Search instead for 
Did you mean: 

Not update installment price on product configuration change (Product Page)

Not update installment price on product configuration change (Product Page)

I created a template to display the installment price of the product, on the product page. I need to update this price when the user clicks the configurable product option.

 

I created a preference for "Magento\ConfigurableProduct\Block\Product\View\Type\Configurable" to create a new price_type_code but debugging the product page does not pass through the getJsonConfig method.

 

I also created a preference for "Magento\Catalog\Block\Product\View\Options" and debugging the product page also does not go through _getPriceConfiguration.

 

Where should I enter the values for each configurable product option?

 

Magento ver. 2.2.3 + PHP Version 7.0.28 + Mysql5.6

Thanks

1 REPLY

Re: Not update installment price on product configuration change (Product Page)

Hello,

 

https://github.com/magento/magento2/blob/2.2-develop/app/code/Magento/ConfigurableProduct/Block/Prod...

 

 

above file you need to override, but make sure you override right way.

 

First try to into core file and then create di.xml into module and try it.

 

Hope it will help you