- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I solved it by creating a preference for Magento\Swatches\Block\Product\Renderer\Configurable
Thanks
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Not update installment price on product configuration change (Product Page)
Hello,
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
Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content