Storing and reading tier prices in a JavaScript variable (Magento 2)

Want to retrieve a product’s Magento 2 tier prices as an array and store them in a JavaScript variable for later use? Follow these steps:

You can now access the values from JavaScript, for example using a function that…

Overriding TierPriceBox.php for configurable products (Magento 2)

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:

Now create the class…