Skip to content

Commit

Permalink
Fix notice missing variables (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
ah-net committed Mar 12, 2024
1 parent 5d31268 commit 2115eea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Block/Checkout/Cart/Crosssell/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ public function getQuote()
*/
protected function _getCartProducts()
{
$products = [];
foreach ($this->getQuote()->getAllItems() as $quoteItem) {
/* @var $quoteItem \Magento\Quote\Model\Quote\Item */
$product = $quoteItem->getProduct();
Expand Down Expand Up @@ -277,6 +278,8 @@ private function getFeaturedItems()
$collection = $this->removeCartItems($collection, $cartItems);
}

$items = [];

foreach ($collection as $item) {
$items[] = $item;
}
Expand Down

0 comments on commit 2115eea

Please sign in to comment.