Currently, I am using the following code in addtocart.phtml
to retrieve tier price data:
$allTiers = $_product->getTierPrice();
$checktiers = array_values($allTiers);
$tierPrices = json_encode($checktiers);
This only works for simple products and not configurable products that contain simple products. The output on the configurable products always return empty
array.
How can I retrieve tier price data from a configurable product that contains multiple simple products?
Any help?
Thanks in advance...!!!