Skip to content

Commit 8bfadcc

Browse files
Chhandak.BaruaChhandak.Barua
authored andcommitted
ACP2E-2515: Cart Price Rule stops working properly after adding Bundle Product to the cart with Dynamic Price attribute disabled
1 parent d7eb9bf commit 8bfadcc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/code/Magento/OfflineShipping/Model/Carrier/Tablerate.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,7 @@ public function collectRates(RateRequest $request)
132132
if ($item->getHasChildren() && $item->isShipSeparately()) {
133133
foreach ($item->getChildren() as $child) {
134134
if ($child->getFreeShipping() && !$child->getProduct()->isVirtual()) {
135-
$freeShipping = (int)$child->getFreeShipping()
136-
? (int)$child->getFreeShipping() : 0;
135+
$freeShipping = (int)$child->getFreeShipping();
137136
$freeQty += $item->getQty() * ($child->getQty() - $freeShipping);
138137
}
139138
}

0 commit comments

Comments
 (0)