Skip to content

Commit 32b4aeb

Browse files
Update app/code/core/Mage/Catalog/Helper/Product/Type/Composite.php
Co-authored-by: Copilot <[email protected]>
1 parent 1ac30ac commit 32b4aeb

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

app/code/core/Mage/Catalog/Helper/Product/Type/Composite.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,13 @@ public function prepareJsonProductConfig($product)
177177
$_tierPrices = [];
178178
$_tierPricesInclTax = [];
179179
foreach ($product->getTierPrice() as $tierPrice) {
180-
// Skip tier prices >= final price
181-
if ((float) $tierPrice['website_price'] >= $_finalPrice) {
180+
// Skip tier prices >= lower of final price or group price
181+
$comparePrice = $_finalPrice;
182+
$groupPrice = $product->getGroupPrice();
183+
if ($groupPrice !== null && $groupPrice < $comparePrice) {
184+
$comparePrice = $groupPrice;
185+
}
186+
if ((float) $tierPrice['website_price'] >= $comparePrice) {
182187
continue;
183188
}
184189

0 commit comments

Comments
 (0)