checkout: Holds the current checkout data.
globalModel: Holds global model data.
steps: Array of checkout steps.
activeStep: The currently active step in the checkout process.
customerData: Customer information.
checkoutData: Additional data for checkout.
shippingAddress: Address details for shipping.
token: Authentication token.
billingClass, shippingClass, reviewClass, paymentClass: CSS classes for checkout steps.
currency: Currency used for calculations.
dataLoaded: Flag indicating if data is loaded.
userLocale: User's locale.
buttonLoading: Flag indicating if the button is loading.
orderLoading, orderPlaced, isLoading: Flags related to order state.
errorCode, errorType, error, errorMessage: Error handling data.
settings: Checkout settings.
guestCheckout: Flag indicating if guest checkout is enabled.
discountFromPoints: Discount applied from points.
TotalVat: Total VAT amount.
TotalNet: Total net amount.
TotalAmount: Total amount including all charges.
TotalQuantity: Total quantity of items in the cart.
ExpenseAmount: Total expense amount.
CanCheckout: Determines if the user can proceed with checkout.
enableGuest(): Enables guest checkout and fetches checkout data.
onCheckoutSuccess(e): Handles successful checkout response.
onCheckOutError(status, e): Handles checkout errors.
calculateCurrency(price): Formats price according to the currency.
hasDiscount(item): Checks if the item has a discount.
prevStep(): Moves to the previous step.
nextStep(): Moves to the next step, validates the current step, and updates checkout data.
calculateSubTotal(): Calculates the subtotal of the cart items.
In the authenticated non-Retail order review, review displays each item's lineValue (the line amount after line discounts, excluding VAT), not the unit price. Quantity is shown separately. The struck-through amount, when discounted, is lineValue + discountValue, matching the non-Retail sidebar. This applies to bundles and regular products; reviewretail is unchanged.
Ensure all related components are properly imported and registered.
Customize the CSS classes and styles according to your application’s design requirements.
Handle different error codes and states according to your application's needs.