From 6e376311279b9e1c0f7d390980a83f27743593ba Mon Sep 17 00:00:00 2001 From: martin chuka Date: Fri, 11 Oct 2024 21:12:23 +0100 Subject: [PATCH] Fix:empty quote items --- src/Model/Resolver/CartItems.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Resolver/CartItems.php b/src/Model/Resolver/CartItems.php index ca5c42e..565dcaa 100644 --- a/src/Model/Resolver/CartItems.php +++ b/src/Model/Resolver/CartItems.php @@ -179,7 +179,7 @@ public function resolve( */ public function getCartProductsData(Quote $cart, ResolveInfo $info): array { - $cartItems = $cart->getItems(); + $cartItems = $cart->getAllVisibleItems(); $products = $this->getCartProducts($cartItems); $productsData = [];