We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7eb9bf commit 8bfadccCopy full SHA for 8bfadcc
app/code/Magento/OfflineShipping/Model/Carrier/Tablerate.php
@@ -132,8 +132,7 @@ public function collectRates(RateRequest $request)
132
if ($item->getHasChildren() && $item->isShipSeparately()) {
133
foreach ($item->getChildren() as $child) {
134
if ($child->getFreeShipping() && !$child->getProduct()->isVirtual()) {
135
- $freeShipping = (int)$child->getFreeShipping()
136
- ? (int)$child->getFreeShipping() : 0;
+ $freeShipping = (int)$child->getFreeShipping();
137
$freeQty += $item->getQty() * ($child->getQty() - $freeShipping);
138
}
139
0 commit comments