Skip to content

Commit be2ce3a

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 7b29d76 commit be2ce3a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,16 +133,14 @@ public function collectRates(RateRequest $request)
133133
foreach ($item->getChildren() as $child) {
134134
if ($child->getFreeShipping() && !$child->getProduct()->isVirtual()) {
135135
$freeShipping = is_numeric((int)$child->getFreeShipping())
136-
? (int)$child->getFreeShipping()
137-
: 0;
136+
? (int)$child->getFreeShipping() : 0;
138137
$freeQty += $item->getQty() * ($child->getQty() - $freeShipping);
139138
}
140139
}
141140
} elseif (($item->getFreeShipping() || $item->getAddress()->getFreeShipping()) &&
142141
($item->getFreeShippingMethod() == null || $item->getFreeShippingMethod() &&
143142
$item->getFreeShippingMethod() == 'tablerate_bestway')
144-
)
145-
{
143+
) {
146144
$freeShipping = $item->getFreeShipping() ?
147145
$item->getFreeShipping() : $item->getAddress()->getFreeShipping();
148146
$freeShipping = is_numeric($freeShipping) ? $freeShipping : 0;

0 commit comments

Comments
 (0)