Skip to content

Commit

Permalink
MAGETWO-82748: Fix Notice: freePackageValue is undefined #11720
Browse files Browse the repository at this point in the history
  • Loading branch information
ishakhsuvarov authored Oct 26, 2017
2 parents 2a6c3ea + ff9e6a8 commit d4e4e5d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/code/Magento/OfflineShipping/Model/Carrier/Tablerate.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,9 @@ public function collectRates(RateRequest $request)

// Free shipping by qty
$freeQty = 0;
$freePackageValue = 0;

if ($request->getAllItems()) {
$freePackageValue = 0;
foreach ($request->getAllItems() as $item) {
if ($item->getProduct()->isVirtual() || $item->getParentItem()) {
continue;
Expand Down

0 comments on commit d4e4e5d

Please sign in to comment.