Skip to content

Commit

Permalink
Merge pull request #1 from Tjitse-E/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
Tjitse-E authored May 28, 2018
2 parents 52f58b3 + 345461c commit 78ecfa6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Model/Filter/QuoteContent.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ class QuoteContent implements FilterInterface
public function execute(MethodInterface $paymentMethod, CartInterface $quote, DataObject $result)
{
$visibleItems = $quote->getItems();

if(!$visibleItems) {
return;
}

foreach ($visibleItems as $visibleItem) {
$product = $visibleItem->getProduct();
Expand All @@ -46,4 +50,4 @@ public function execute(MethodInterface $paymentMethod, CartInterface $quote, Da
}
}
}
}
}

0 comments on commit 78ecfa6

Please sign in to comment.