Skip to content

Commit 37b6868

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 31ff284 commit 37b6868

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
@@ -142,7 +142,7 @@ public function collectRates(RateRequest $request)
142142
) {
143143
$freeShipping = $item->getFreeShipping() ?
144144
$item->getFreeShipping() : $item->getAddress()->getFreeShipping();
145-
$freeShipping = is_numeric((int)$freeShipping) ? (int)$freeShipping : 0;
145+
$freeShipping = is_numeric($freeShipping) ? $freeShipping : 0;
146146
$freeQty += $item->getQty() - $freeShipping;
147147
$freePackageValue += $item->getBaseRowTotal();
148148
}

0 commit comments

Comments
 (0)