fixed checkout data
This commit is contained in:
parent
7e9a99c85a
commit
b982adf47b
|
|
@ -19,7 +19,7 @@ class CheckoutController extends Controller
|
|||
public function index(Request $request)
|
||||
{
|
||||
$data = CheckoutService::checkoutData();
|
||||
// dd($data);
|
||||
dd($data);
|
||||
return view('checkout', $data);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,6 +32,12 @@ class CheckoutService
|
|||
$carts = CartService::reloadData($cartList);
|
||||
|
||||
$data = [
|
||||
'current' => [
|
||||
'shipping_address_id' => 2,
|
||||
'payment_address_id' => 3,
|
||||
'shipping_method' => 'flat_shipping',
|
||||
'payment_method' => 'bk_stripe',
|
||||
],
|
||||
'country_id' => (int)setting('country_id'),
|
||||
'customer_id' => $customer->id ?? null,
|
||||
'countries' => CountryRepo::all(),
|
||||
|
|
|
|||
Loading…
Reference in New Issue