If you want to customize Magento 2 tier prices on configurable product pages, you may need to override the vendor/magento/module-configurable-product/Pricing/Render/TierPriceBox.php class. Here is how: Add the following content to the di.xml file in your extension:
|
|
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/ObjectManager/etc/config.xsd"> <preference for="Magento\ConfigurableProduct\Pricing\Render\TierPriceBox" type="Vendor\Module\Pricing\Render\TierPriceBox" /> </config> |
Now create the class…