Skip to content

Commit

Permalink
return last adde item back in around plugin (#75)
Browse files Browse the repository at this point in the history
Co-authored-by: Sinan Kaplan <[email protected]>
  • Loading branch information
kaplansin and kaplansin authored Jul 11, 2023
1 parent 333270c commit b21f103
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Block/Checkout/Cart/Crosssell/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ public function aroundGetLastAddedProduct(Crosssell $crossell, Closure $proceed)
}
}
$this->lastAddedProduct = $product;

return $this->lastAddedProduct;
}

/**
Expand Down

0 comments on commit b21f103

Please sign in to comment.