menu

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.

Source:

Members

(static) StartCheckout

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

Source:
See:

Methods

(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.

Source: