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
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