Skip to content

Commit 03b4530

Browse files
authored
Merge pull request #1698 from algolia/fix/MAGE-1073-remove-tier-price-backfill-bottleneck
MAGE-1073 Remove extraneous tier price backfill bottleneck
2 parents 186056d + faf123c commit 03b4530

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

Helper/Entity/Product/PriceManager/ProductWithoutChildren.php

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -302,24 +302,6 @@ protected function getTierPrice(Product $product, $currencyCode, $withTax)
302302
$productTierPrice->getValue()
303303
);
304304
}
305-
} else {
306-
/** @var Group $group */
307-
foreach ($this->groups as $group) {
308-
$customerGroupId = (int) $group->getData('customer_group_id');
309-
$productTierPrices = $this->productTierPrice->getList($product->getSku(), $customerGroupId);
310-
if(!empty($productTierPrices)) {
311-
foreach ($productTierPrices as $productTierPrice) {
312-
if (!isset($tierPrices[$productTierPrice->getCustomerGroupId()])) {
313-
$tierPrices[$productTierPrice->getCustomerGroupId()] = $productTierPrice->getValue();
314-
continue;
315-
}
316-
$tierPrices[$productTierPrice->getCustomerGroupId()] = min(
317-
$tierPrices[$productTierPrice->getCustomerGroupId()],
318-
$productTierPrice->getValue()
319-
);
320-
}
321-
}
322-
}
323305
}
324306

325307
/** @var Group $group */

0 commit comments

Comments
 (0)