To get full access to the Kademi Hub existing customers can login here, or new customers can register here.
Base context passed to a checkout rule's JavaScript functions, carrying the rule, cart, purchaser and store that the function is operating on.
Group: E-commerce
Properties
| Property | Returns | Description |
|---|---|---|
| cart | Cart | The cart the checkout is being computed for. |
| purchaser | Profile | The profile making the purchase. |
| rule | CustomCheckoutRule | The checkout rule that this context is being evaluated for. |
| store | ECommerceStore | The e-commerce store the cart belongs to. |
Methods
getRule()
Returns: CustomCheckoutRule
The checkout rule that this context is being evaluated for.
getCart()
Returns: Cart
The cart the checkout is being computed for.
getPurchaser()
Returns: Profile
The profile making the purchase.
getStore()
Returns: ECommerceStore
The e-commerce store the cart belongs to.