This commit is contained in:
Edward Yang 2022-08-29 17:00:03 +08:00
parent 731faf5367
commit 8f72766115
1 changed files with 1 additions and 1 deletions

View File

@ -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');