SiteGenesis / Server-side JS / Module: controllers/ABTestEvent

Controller that reports to the Salesforce Commerce Cloud A/B test engine when a customer starts checkout in the storefront. This event is recorded only for the purposes of updating A/B test statistics and does not affect the basket. This controller does not ordinarily need to be customized.



(static) StartCheckout

Registers the 'start checkout' event for A/B testing. You must use GET to access the function via URL.



(inner) startCheckout()

Gets a CartModel object that wraps a Basket object. Registers a "start checkout" event for the specified basket. This event is tracked for A/B test statistics but otherwise has no effect on the basket. The system registers at most one checkout per basket per session.


X Privacy Update: We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used. By continuing to use this site you are giving us your consent to do this. Privacy Policy.