Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions app/code/core/Mage/Catalog/Helper/Product/Type/Composite.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,10 @@ public function prepareJsonProductConfig($product)
$_tierPrices = [];
$_tierPricesInclTax = [];
foreach ($product->getTierPrice() as $tierPrice) {
// Skip tier prices >= final price
if ((float) $tierPrice['website_price'] >= $_finalPrice) {
continue;
}
$_tierPrices[] = Mage::helper('core')->currency(
Mage::helper('tax')->getPrice($product, (float) $tierPrice['website_price'], false) - $_priceExclTax,
false,
Expand Down
Loading