We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ac30ac commit 32b4aebCopy full SHA for 32b4aeb
app/code/core/Mage/Catalog/Helper/Product/Type/Composite.php
@@ -177,8 +177,13 @@ public function prepareJsonProductConfig($product)
177
$_tierPrices = [];
178
$_tierPricesInclTax = [];
179
foreach ($product->getTierPrice() as $tierPrice) {
180
- // Skip tier prices >= final price
181
- if ((float) $tierPrice['website_price'] >= $_finalPrice) {
+ // Skip tier prices >= lower of final price or group price
+ $comparePrice = $_finalPrice;
182
+ $groupPrice = $product->getGroupPrice();
183
+ if ($groupPrice !== null && $groupPrice < $comparePrice) {
184
+ $comparePrice = $groupPrice;
185
+ }
186
+ if ((float) $tierPrice['website_price'] >= $comparePrice) {
187
continue;
188
}
189
0 commit comments