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

Controller for the first step of the cart checkout process, which is to ask the customer to login, register, or checkout anonymously.



(static) LoginForm

Form handler for the login form.


(static) Start

Selects the type of checkout: returning, guest, or create account. The first step in the checkout process.



(inner) showLoginForm()

Form handler for the login form. Handles the following actions:

  • login - Calls the Login controller Process function. If this returns successfully, calls the COShipping controller Start function.
  • register - Calls the Account controller StartRegister function.
  • unregistered - Calls the COShipping controller Start function.

(inner) start()

First step of the checkout is to choose the checkout type: returning, guest or create account checkout. Prepares the checkout initially: removes all payment instruments from the basket and clears all forms used in the checkout process, when the customer enters the checkout. The single steps (shipping, billing etc.) may not contain the form clearing, in order to support navigating forth and back in the checkout steps without losing already entered form values.


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.