From b21f103648d91bf35b7f140279b0f34ea993b126 Mon Sep 17 00:00:00 2001 From: Sinan Kaplan Date: Tue, 11 Jul 2023 12:45:42 +0300 Subject: [PATCH] return last adde item back in around plugin (#75) Co-authored-by: Sinan Kaplan --- Block/Checkout/Cart/Crosssell/Plugin.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Block/Checkout/Cart/Crosssell/Plugin.php b/Block/Checkout/Cart/Crosssell/Plugin.php index b8e138d5..37c8fa72 100644 --- a/Block/Checkout/Cart/Crosssell/Plugin.php +++ b/Block/Checkout/Cart/Crosssell/Plugin.php @@ -97,6 +97,8 @@ public function aroundGetLastAddedProduct(Crosssell $crossell, Closure $proceed) } } $this->lastAddedProduct = $product; + + return $this->lastAddedProduct; } /**