Account register template
Standalone customer registration form.
Output: page body inside the storefront layout.
Shared structures available in recorded contexts: shop, branding, theme, urls, page, navigation, languageSwitcher, currencySwitcher, headerActionContributions, labels, security, footer, cartPreview, accountHeader.
viewModel.account.register.labels uses the account-label structure.
| Field | Type | Meaning | Availability |
|---|---|---|---|
viewModel.account |
object | Account data; check child fields before use. | When the parent is provided; check optional fields. |
viewModel.account.register |
object | Register data; check child fields before use. | When the parent is provided; check optional fields. |
viewModel.account.register.canRegister |
boolean or 0/1 | Prepared registration or form-option flag. Use as a CFML condition; do not derive permission from shop settings. | When the authentication or registration model is provided. |
viewModel.account.register.companyCustomFieldGroups |
array | Prepared company custom field groups collection; may be empty. | When the parent is provided; check optional fields. |
viewModel.account.register.errors |
array | Prepared errors collection; may be empty. | When the parent is provided; check optional fields. |
viewModel.account.register.focusTarget |
string | Focus target value supplied for this context. | When the parent is provided; check optional fields. |
viewModel.account.register.form |
object | Form data; check child fields before use. | When the parent is provided; check optional fields. |
viewModel.account.register.form.companyName |
string | Company name value supplied for this context. | When the parent is provided; check optional fields. |
viewModel.account.register.form.email |
string | Email value supplied for this context. | When the parent is provided; check optional fields. |
viewModel.account.register.form.firstName |
string | First name value supplied for this context. | When the parent is provided; check optional fields. |
viewModel.account.register.form.lastName |
string | Last name value supplied for this context. | When the parent is provided; check optional fields. |
viewModel.account.register.form.newsletterOptIn |
boolean | Whether newsletter opt in applies; use for display only. | When the parent is provided; check optional fields. |
viewModel.account.register.form.registerAsCompany |
boolean | Whether register as company applies; use for display only. | When the parent is provided; check optional fields. |
viewModel.account.register.form.salutationId |
number | salutation identifier; do not load data with it. | When the parent is provided; check optional fields. |
viewModel.account.register.formAction |
string | Form action value supplied for this context. | When the parent is provided; check optional fields. |
viewModel.account.register.hasErrors |
boolean | Whether errors applies; use for display only. | When the parent is provided; check optional fields. |
viewModel.account.register.intro |
string | Intro value supplied for this context. | When the parent is provided; check optional fields. |
viewModel.account.register.labels |
object | Labels data; check child fields before use. | When the parent is provided; check optional fields. |
viewModel.account.register.salutationOptions |
array | Prepared salutation options collection; may be empty. | When the parent is provided; check optional fields. |
viewModel.account.register.salutationOptions[].label |
string | Label value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.account.register.salutationOptions[].salutationId |
number | salutation identifier; do not load data with it. | For each existing item; optional child fields depend on item type. |
viewModel.account.register.showCompanyRegistration |
boolean or 0/1 | Prepared registration or form-option flag. Use as a CFML condition; do not derive permission from shop settings. | When the authentication or registration model is provided. |
viewModel.account.register.showNewsletterOptIn |
boolean or 0/1 | Prepared registration or form-option flag. Use as a CFML condition; do not derive permission from shop settings. | When the authentication or registration model is provided. |
viewModel.account.register.title |
string | Title value supplied for this context. | When the parent is provided; check optional fields. |
viewModel.search |
object | Search data; check child fields before use. | When the parent is provided; check optional fields. |
viewModel.search.isEnabled |
boolean | Whether enabled applies; use for display only. | When the parent is provided; check optional fields. |
viewModel.wishlist |
object | Wishlist data; check child fields before use. | When the parent is provided; check optional fields. |
viewModel.wishlist.isEmpty |
boolean | Whether empty applies; use for display only. | When the parent is provided; check optional fields. |
viewModel.wishlist.itemCount |
number | Item count numeric value. | When the parent is provided; check optional fields. |
viewModel.wishlist.items |
array | Prepared items collection; may be empty. | When the parent is provided; check optional fields. |
viewModel.wishlist.productIdMap |
object | Product id map data; check child fields before use. | When the parent is provided; check optional fields. |
viewModel.wishlist.productIds |
array | Prepared product ids collection; may be empty. | When the parent is provided; check optional fields. |
viewModel.wishlist.wishlistId |
number | wishlist identifier; do not load data with it. | When the parent is provided; check optional fields. |
viewModel.wishlist.wishlistKey |
string | Wishlist key value supplied for this context. | When the parent is provided; check optional fields. |
Included templates
Section titled “Included templates”Assets
Section titled “Assets”The reference package uses its bundled theme CSS, Bootstrap and theme JavaScript. Account and checkout controls use the bundled checkout script. Partials use their caller’s resolved assets.
Example
Section titled “Example”<cfset viewModel = routeConfig.viewModel><cfoutput><h1>#encodeForHtml(viewModel.page.title)#</h1></cfoutput>Use the page-specific structures above for the remaining content.
Behaviour
Section titled “Behaviour”Use prepared form actions, field names and CSRF inputs from the reference implementation. Access checks, validation and commerce decisions remain outside the theme.