Checkout Flow
The checkout process handles converting a cart into an order. Depending on the configuration, it may be a single-page checkout or multi-step checkout.
Checkout Address
URL: /checkout/address
Template: Modules/Payment/resources/views/index/checkout-address.blade.php
This is the primary checkout template where users enter or select their billing and shipping addresses, choose a shipping method, and proceed to payment.
Page Variables
| Variable | Type | Description |
|---|---|---|
$page->misc->address_list |
array |
List of the user's saved addresses |
$page->misc->shipping_methods |
array |
Available shipping methods based on cart |
$page->misc->cart |
object |
The current cart object |
Form Considerations
The checkout form typically submits via AJAX to an endpoint that calculates shipping and tax, then proceeds to the payment gateway. The exact form implementation depends heavily on the configured payment modules (e.g., Stripe, PayPal, Authorize.net) which often inject their own Javascript.
Ensure that:
1. CSRF tokens are present in all forms via @csrf
2. You provide clear IDs for billing/shipping input fields so the system JavaScript can bind to them correctly.