fixed cart

This commit is contained in:
Edward Yang 2022-07-01 15:18:39 +08:00
parent 81da48f7b2
commit 2c9c2fc361
1 changed files with 3 additions and 3 deletions

View File

@ -30,12 +30,12 @@ class CheckoutService
$carts = CartService::reloadData($cartList); $carts = CartService::reloadData($cartList);
$data = [ $data = [
'addresses' => $addresses,
'shipments' => $shipments,
'country_id' => setting('country_id'), 'country_id' => setting('country_id'),
'customer_id' => $customer->id ?? null, 'customer_id' => $customer->id ?? null,
'countries' => CountryRepo::all(), 'countries' => CountryRepo::all(),
'payments' => $payments, 'addresses' => $addresses,
'shipping_methods' => $shipments,
'payment_methods' => $payments,
'carts' => $carts 'carts' => $carts
]; ];
return $data; return $data;