Anyone has idea how to make preference or plugin on Magento\ConfigurableProduct\Pricing\Render\FinalPriceBox
class of Magento\ConfigurableProduct
.
Basically, new function i wanted to add in the FinalPriceBox class and to use new function in final_price.phtml
file.
I see code in the di.xml
of module-configurableproduct
module. But do not know how to use in new custom module?
<type name="Magento\ConfigurableProduct\Pricing\Price\FinalPrice">
<arguments>
<argument name="priceResolver" xsi:type="object">ConfigurableFinalPriceResolver</argument>
</arguments>
</type>