Skip to content

Commit 5e9ba20

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 66563fb commit 5e9ba20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +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 = is_numeric((int)$child->getFreeShipping())
135+
$freeShipping = (int)$child->getFreeShipping()
136136
? (int)$child->getFreeShipping() : 0;
137137
$freeQty += $item->getQty() * ($child->getQty() - $freeShipping);
138138
}

0 commit comments

Comments
 (0)