From 8f72766115ebfc7ec35fea8b02a5203963a815f5 Mon Sep 17 00:00:00 2001 From: Edward Yang Date: Mon, 29 Aug 2022 17:00:03 +0800 Subject: [PATCH] fixed mini cart https://guangdagit.com/beike/beikeshop/issues/203 --- beike/Shop/Services/CartService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beike/Shop/Services/CartService.php b/beike/Shop/Services/CartService.php index 722c600d..4d60d43c 100644 --- a/beike/Shop/Services/CartService.php +++ b/beike/Shop/Services/CartService.php @@ -145,7 +145,7 @@ class CartService $carts = CartService::list(current_customer()); } - $selected = collect($carts)->where('selected', 1); + $selected = collect($carts); $quantity = $selected->sum('quantity'); $amount = $selected->sum('subtotal');