Skip to content

Commit 435eb9d

Browse files
authored
recalculate special price if zero default pricing (#1160)
1 parent c1fc0ed commit 435eb9d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Helper/Entity/Product/PriceManager/ProductWithChildren.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ protected function addAdditionalData($product, $withTax, $subProducts, $currency
2222

2323
if (!$this->customData[$field][$currencyCode]['default']) {
2424
$this->handleZeroDefaultPrice($field, $currencyCode, $min, $max);
25+
26+
# need to rehandle specialPrice
27+
$specialPrice = $this->getSpecialPrice($product, $currencyCode, $withTax);
28+
$this->addSpecialPrices($specialPrice, $field, $currencyCode);
2529
}
2630

2731
if ($this->areCustomersGroupsEnabled) {

0 commit comments

Comments
 (0)