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

PropertyReturnsDescription
cartCartThe cart the checkout is being computed for.
purchaserProfileThe profile making the purchase.
ruleCustomCheckoutRuleThe checkout rule that this context is being evaluated for.
storeECommerceStoreThe 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.

To get full access to the Kademi Hub existing customers can login here, or new customers can register here.