Account company addresses template
Company address list and prepared address actions.
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.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.company |
object | Company data; check child fields before use. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.addresscustomfields |
array | Prepared addresscustomfields collection; may be empty. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.addresses |
array | Prepared addresses collection; may be empty. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.addresses[].addressLine2 |
string | Address line2 value supplied for this context. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.addresses[].addressType |
string | Address type value supplied for this context. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.addresses[].city |
string | City value supplied for this context. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.addresses[].company |
string | Company value supplied for this context. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.addresses[].countryId |
number | country identifier; do not load data with it. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.addresses[].countryIsoCode |
string | Country iso code value supplied for this context. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.addresses[].createdAt |
date or empty string | Database timestamp when available. This is not a localized display label. | Within an existing customer/company object; empty when no timestamp is available. |
viewModel.account.company.addresses[].customerCompanyAddressId |
number | customer company address identifier; do not load data with it. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.addresses[].customerCompanyId |
number | customer company identifier; do not load data with it. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.addresses[].customFields |
array | Prepared custom fields collection; may be empty. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.addresses[].email |
string | Email value supplied for this context. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.addresses[].firstName |
string | First name value supplied for this context. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.addresses[].isActive |
number | Is active numeric value. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.addresses[].isDefaultBilling |
number | Is default billing numeric value. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.addresses[].isDefaultShipping |
number | Is default shipping numeric value. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.addresses[].label |
string | Label value supplied for this context. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.addresses[].lastName |
string | Last name value supplied for this context. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.addresses[].mobile |
string | Mobile value supplied for this context. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.addresses[].phone |
string | Phone value supplied for this context. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.addresses[].postcode |
string | Postcode value supplied for this context. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.addresses[].salutation |
string | Salutation value supplied for this context. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.addresses[].salutationId |
number | salutation identifier; do not load data with it. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.addresses[].state |
string | State value supplied for this context. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.addresses[].street |
string | Street value supplied for this context. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.addresses[].streetNumber |
string | Street number value supplied for this context. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.addresses[].title |
string | Title value supplied for this context. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.addresses[].titleId |
number | title identifier; do not load data with it. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.addresses[].updatedAt |
date or empty string | Database timestamp when available. This is not a localized display label. | Within an existing customer/company object; empty when no timestamp is available. |
viewModel.account.company.assignedShopCount |
number | Assigned shop count numeric value. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.assignments |
array | Prepared assignments collection; may be empty. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.assignments[].isActive |
number | Is active numeric value. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.assignments[].isPrimary |
number | Is primary numeric value. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.assignments[].key |
string | Key value supplied for this context. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.assignments[].name |
string | Name value supplied for this context. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.assignments[].shopId |
number | shop identifier; do not load data with it. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.canOrder |
boolean | Whether order applies; use for display only. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.companyAddition |
string | Company addition value supplied for this context. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.companyNumber |
string | Company number value supplied for this context. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.createdAt |
date or empty string | Database timestamp when available. This is not a localized display label. | Within an existing customer/company object; empty when no timestamp is available. |
viewModel.account.company.customerCompanyId |
number | customer company identifier; do not load data with it. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.customerCompanyMemberId |
number | customer company member identifier; do not load data with it. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.customerGroupAmountType |
string | Customer group amount type value supplied for this context. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.customerGroupId |
number | customer group identifier; do not load data with it. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.customerGroupName |
string | Customer group name value supplied for this context. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.customerGroupPriceListId |
number | customer group price list identifier; do not load data with it. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.customerGroupPriceListName |
string | Customer group price list name value supplied for this context. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.customFields |
array | Prepared custom fields collection; may be empty. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.email |
string | Email value supplied for this context. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.isActive |
number | Is active numeric value. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.isPrimaryContact |
boolean | Whether primary contact applies; use for display only. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.members |
array | Prepared members collection; may be empty. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.members[].canOrder |
number | Can order numeric value. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.members[].customerCompanyId |
number | customer company identifier; do not load data with it. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.members[].customerCompanyMemberId |
number | customer company member identifier; do not load data with it. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.members[].customerId |
number | customer identifier; do not load data with it. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.members[].customerNumber |
string | Customer number value supplied for this context. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.members[].customerShopId |
number | customer shop identifier; do not load data with it. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.members[].displayName |
string | Display name value supplied for this context. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.members[].email |
string | Email value supplied for this context. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.members[].firstName |
string | First name value supplied for this context. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.members[].isCustomerActive |
number | Is customer active numeric value. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.members[].isGuest |
number | Is guest numeric value. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.members[].isPrimaryContact |
number | Is primary contact numeric value. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.members[].lastName |
string | Last name value supplied for this context. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.members[].memberCreatedAt |
string | member created timestamp; may be empty. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.members[].memberUpdatedAt |
string | member updated timestamp; may be empty. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.members[].role |
string | Role value supplied for this context. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.members[].salutation |
string | Salutation value supplied for this context. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.members[].salutationId |
number | salutation identifier; do not load data with it. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.members[].status |
string | Status value supplied for this context. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.members[].title |
string | Title value supplied for this context. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.members[].titleId |
number | title identifier; do not load data with it. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.name |
string | Name value supplied for this context. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.role |
string | Role value supplied for this context. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.shopId |
number | shop identifier; do not load data with it. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.shopIsActive |
number | Shop is active numeric value. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.shopIsPrimary |
number | Shop is primary numeric value. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.shopKey |
string | Shop key value supplied for this context. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.shopName |
string | Shop name value supplied for this context. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.status |
string | Status value supplied for this context. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.company.updatedAt |
date or empty string | Database timestamp when available. This is not a localized display label. | Within an existing customer/company object; empty when no timestamp is available. |
viewModel.account.company.vatId |
string | vat identifier; do not load data with it. | Use child fields only when account.hasCompany is true. Otherwise the company object can be empty. |
viewModel.account.companyAddresses |
object | Company addresses data; check child fields before use. | When the parent is provided; check optional fields. |
viewModel.account.companyAddresses.emptyText |
string | Empty text value supplied for this context. | When the parent is provided; check optional fields. |
viewModel.account.companyAddresses.intro |
string | Intro value supplied for this context. | When the parent is provided; check optional fields. |
viewModel.account.companyAddresses.items |
array | Prepared items collection; may be empty. | When the parent is provided; check optional fields. |
viewModel.account.companyAddresses.items[].actions |
object | Actions data; check child fields before use. | For each existing item; optional child fields depend on item type. |
viewModel.account.companyAddresses.items[].actions.defaultBilling |
string | Default billing value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.account.companyAddresses.items[].actions.defaultShipping |
string | Default shipping value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.account.companyAddresses.items[].actions.delete |
string | Delete value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.account.companyAddresses.items[].actions.edit |
string | Edit value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.account.companyAddresses.items[].addressLine2 |
string | Address line2 value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.account.companyAddresses.items[].addressType |
string | Address type value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.account.companyAddresses.items[].city |
string | City value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.account.companyAddresses.items[].company |
string | Company value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.account.companyAddresses.items[].countryId |
number | country identifier; do not load data with it. | For each existing item; optional child fields depend on item type. |
viewModel.account.companyAddresses.items[].countryIsoCode |
string | Country iso code value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.account.companyAddresses.items[].createdAt |
string | created timestamp; may be empty. | For each existing item; optional child fields depend on item type. |
viewModel.account.companyAddresses.items[].customerCompanyAddressId |
number | customer company address identifier; do not load data with it. | For each existing item; optional child fields depend on item type. |
viewModel.account.companyAddresses.items[].customerCompanyId |
number | customer company identifier; do not load data with it. | For each existing item; optional child fields depend on item type. |
viewModel.account.companyAddresses.items[].customFields |
array | Prepared custom fields collection; may be empty. | For each existing item; optional child fields depend on item type. |
viewModel.account.companyAddresses.items[].displayName |
string | Display name value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.account.companyAddresses.items[].email |
string | Email value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.account.companyAddresses.items[].firstName |
string | First name value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.account.companyAddresses.items[].heading |
string | Heading value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.account.companyAddresses.items[].isActive |
number | Is active numeric value. | For each existing item; optional child fields depend on item type. |
viewModel.account.companyAddresses.items[].isDefaultBilling |
number | Is default billing numeric value. | For each existing item; optional child fields depend on item type. |
viewModel.account.companyAddresses.items[].isDefaultShipping |
number | Is default shipping numeric value. | For each existing item; optional child fields depend on item type. |
viewModel.account.companyAddresses.items[].label |
string | Label value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.account.companyAddresses.items[].lastName |
string | Last name value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.account.companyAddresses.items[].mobile |
string | Mobile value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.account.companyAddresses.items[].phone |
string | Phone value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.account.companyAddresses.items[].postcode |
string | Postcode value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.account.companyAddresses.items[].salutation |
string | Salutation value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.account.companyAddresses.items[].salutationId |
number | salutation identifier; do not load data with it. | For each existing item; optional child fields depend on item type. |
viewModel.account.companyAddresses.items[].showDisplayName |
boolean | Whether display name applies; use for display only. | For each existing item; optional child fields depend on item type. |
viewModel.account.companyAddresses.items[].state |
string | State value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.account.companyAddresses.items[].street |
string | Street value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.account.companyAddresses.items[].streetNumber |
string | Street number value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.account.companyAddresses.items[].title |
string | Title value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.account.companyAddresses.items[].titleId |
number | title identifier; do not load data with it. | For each existing item; optional child fields depend on item type. |
viewModel.account.companyAddresses.items[].updatedAt |
string | updated timestamp; may be empty. | For each existing item; optional child fields depend on item type. |
viewModel.account.companyAddresses.title |
string | Title value supplied for this context. | When the parent is provided; check optional fields. |
viewModel.account.customer |
object | Customer data; check child fields before use. | When the parent is provided; check optional fields. |
viewModel.account.customer.addresscustomfields |
array | Prepared addresscustomfields collection; may be empty. | When the parent is provided; check optional fields. |
viewModel.account.customer.addresses |
array | Prepared addresses collection; may be empty. | When the parent is provided; check optional fields. |
viewModel.account.customer.assignedShopCount |
number | Assigned shop count numeric value. | When the parent is provided; check optional fields. |
viewModel.account.customer.assignments |
array | Prepared assignments collection; may be empty. | When the parent is provided; check optional fields. |
viewModel.account.customer.assignments[].addressCount |
number | Address count numeric value. | For each existing item; optional child fields depend on item type. |
viewModel.account.customer.assignments[].cartCount |
number | Cart count numeric value. | For each existing item; optional child fields depend on item type. |
viewModel.account.customer.assignments[].companyMembershipCount |
number | Company membership count numeric value. | For each existing item; optional child fields depend on item type. |
viewModel.account.customer.assignments[].currencyId |
number | currency identifier; do not load data with it. | For each existing item; optional child fields depend on item type. |
viewModel.account.customer.assignments[].customerGroupId |
number | customer group identifier; do not load data with it. | For each existing item; optional child fields depend on item type. |
viewModel.account.customer.assignments[].customerId |
number | customer identifier; do not load data with it. | For each existing item; optional child fields depend on item type. |
viewModel.account.customer.assignments[].customerShopId |
number | customer shop identifier; do not load data with it. | For each existing item; optional child fields depend on item type. |
viewModel.account.customer.assignments[].hasDependentData |
boolean | Whether dependent data applies; use for display only. | For each existing item; optional child fields depend on item type. |
viewModel.account.customer.assignments[].isPrimary |
number | Is primary numeric value. | For each existing item; optional child fields depend on item type. |
viewModel.account.customer.assignments[].key |
string | Key value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.account.customer.assignments[].languageId |
number | language identifier; do not load data with it. | For each existing item; optional child fields depend on item type. |
viewModel.account.customer.assignments[].name |
string | Name value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.account.customer.assignments[].orderCount |
number | Order count numeric value. | For each existing item; optional child fields depend on item type. |
viewModel.account.customer.assignments[].shopId |
number | shop identifier; do not load data with it. | For each existing item; optional child fields depend on item type. |
viewModel.account.customer.assignments[].status |
string | Status value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.account.customer.companies |
array | Prepared companies collection; may be empty. | When the parent is provided; check optional fields. |
viewModel.account.customer.companies[].assignedShopCount |
number | Assigned shop count numeric value. | For each existing item; optional child fields depend on item type. |
viewModel.account.customer.companies[].assignments |
array | Prepared assignments collection; may be empty. | For each existing item; optional child fields depend on item type. |
viewModel.account.customer.companies[].assignments[].isActive |
number | Is active numeric value. | For each existing item; optional child fields depend on item type. |
viewModel.account.customer.companies[].assignments[].isPrimary |
number | Is primary numeric value. | For each existing item; optional child fields depend on item type. |
viewModel.account.customer.companies[].assignments[].key |
string | Key value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.account.customer.companies[].assignments[].name |
string | Name value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.account.customer.companies[].assignments[].shopId |
number | shop identifier; do not load data with it. | For each existing item; optional child fields depend on item type. |
viewModel.account.customer.companies[].canOrder |
boolean | Whether order applies; use for display only. | For each existing item; optional child fields depend on item type. |
viewModel.account.customer.companies[].companyAddition |
string | Company addition value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.account.customer.companies[].companyNumber |
string | Company number value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.account.customer.companies[].createdAt |
date or empty string | Database timestamp when available. This is not a localized display label. | Within an existing customer/company object; empty when no timestamp is available. |
viewModel.account.customer.companies[].customerCompanyId |
number | customer company identifier; do not load data with it. | For each existing item; optional child fields depend on item type. |
viewModel.account.customer.companies[].customerCompanyMemberId |
number | customer company member identifier; do not load data with it. | For each existing item; optional child fields depend on item type. |
viewModel.account.customer.companies[].customerGroupAmountType |
string | Customer group amount type value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.account.customer.companies[].customerGroupId |
number | customer group identifier; do not load data with it. | For each existing item; optional child fields depend on item type. |
viewModel.account.customer.companies[].customerGroupName |
string | Customer group name value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.account.customer.companies[].customerGroupPriceListId |
number | customer group price list identifier; do not load data with it. | For each existing item; optional child fields depend on item type. |
viewModel.account.customer.companies[].customerGroupPriceListName |
string | Customer group price list name value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.account.customer.companies[].email |
string | Email value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.account.customer.companies[].isActive |
boolean | Whether active applies; use for display only. | For each existing item; optional child fields depend on item type. |
viewModel.account.customer.companies[].isPrimaryContact |
boolean | Whether primary contact applies; use for display only. | For each existing item; optional child fields depend on item type. |
viewModel.account.customer.companies[].memberCreatedAt |
string | member created timestamp; may be empty. | For each existing item; optional child fields depend on item type. |
viewModel.account.customer.companies[].memberUpdatedAt |
string | member updated timestamp; may be empty. | For each existing item; optional child fields depend on item type. |
viewModel.account.customer.companies[].name |
string | Name value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.account.customer.companies[].role |
string | Role value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.account.customer.companies[].shopId |
number | shop identifier; do not load data with it. | For each existing item; optional child fields depend on item type. |
viewModel.account.customer.companies[].shopIsActive |
number | Shop is active numeric value. | For each existing item; optional child fields depend on item type. |
viewModel.account.customer.companies[].shopIsPrimary |
number | Shop is primary numeric value. | For each existing item; optional child fields depend on item type. |
viewModel.account.customer.companies[].shopKey |
string | Shop key value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.account.customer.companies[].shopName |
string | Shop name value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.account.customer.companies[].status |
string | Status value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.account.customer.companies[].updatedAt |
date or empty string | Database timestamp when available. This is not a localized display label. | Within an existing customer/company object; empty when no timestamp is available. |
viewModel.account.customer.companies[].vatId |
string | vat identifier; do not load data with it. | For each existing item; optional child fields depend on item type. |
viewModel.account.customer.createdAt |
date or empty string | Database timestamp when available. This is not a localized display label. | Within an existing customer/company object; empty when no timestamp is available. |
viewModel.account.customer.currencyId |
number | currency identifier; do not load data with it. | When the parent is provided; check optional fields. |
viewModel.account.customer.customerGroupAmountType |
string | Customer group amount type value supplied for this context. | When the parent is provided; check optional fields. |
viewModel.account.customer.customerGroupId |
number | customer group identifier; do not load data with it. | When the parent is provided; check optional fields. |
viewModel.account.customer.customerGroupName |
string | Customer group name value supplied for this context. | When the parent is provided; check optional fields. |
viewModel.account.customer.customerGroupPriceListId |
number | customer group price list identifier; do not load data with it. | When the parent is provided; check optional fields. |
viewModel.account.customer.customerGroupPriceListName |
string | Customer group price list name value supplied for this context. | When the parent is provided; check optional fields. |
viewModel.account.customer.customerId |
number | customer identifier; do not load data with it. | When the parent is provided; check optional fields. |
viewModel.account.customer.customerNumber |
string | Customer number value supplied for this context. | When the parent is provided; check optional fields. |
viewModel.account.customer.customerShopId |
number | customer shop identifier; do not load data with it. | When the parent is provided; check optional fields. |
viewModel.account.customer.customFields |
array | Prepared custom fields collection; may be empty. | When the parent is provided; check optional fields. |
viewModel.account.customer.displayName |
string | Display name value supplied for this context. | When the parent is provided; check optional fields. |
viewModel.account.customer.email |
string | Email value supplied for this context. | When the parent is provided; check optional fields. |
viewModel.account.customer.firstName |
string | First name value supplied for this context. | When the parent is provided; check optional fields. |
viewModel.account.customer.isActive |
boolean | Whether active applies; use for display only. | When the parent is provided; check optional fields. |
viewModel.account.customer.isGuest |
boolean | Whether guest applies; use for display only. | When the parent is provided; check optional fields. |
viewModel.account.customer.languageId |
number | language identifier; do not load data with it. | When the parent is provided; check optional fields. |
viewModel.account.customer.lastLoginAt |
date or empty string | Database timestamp when available. This is not a localized display label. | Within an existing customer/company object; empty when no timestamp is available. |
viewModel.account.customer.lastName |
string | Last name value supplied for this context. | When the parent is provided; check optional fields. |
viewModel.account.customer.letterSalutation |
string | Letter salutation value supplied for this context. | When the parent is provided; check optional fields. |
viewModel.account.customer.passwordHash |
string | Password hash value supplied for this context. | When the parent is provided; check optional fields. |
viewModel.account.customer.salutation |
string | Salutation value supplied for this context. | When the parent is provided; check optional fields. |
viewModel.account.customer.salutationId |
number | salutation identifier; do not load data with it. | When the parent is provided; check optional fields. |
viewModel.account.customer.shopId |
number | shop identifier; do not load data with it. | When the parent is provided; check optional fields. |
viewModel.account.customer.shopLinkedAt |
date or empty string | Database timestamp when available. This is not a localized display label. | Within an existing customer/company object; empty when no timestamp is available. |
viewModel.account.customer.shopUpdatedAt |
date or empty string | Database timestamp when available. This is not a localized display label. | Within an existing customer/company object; empty when no timestamp is available. |
viewModel.account.customer.status |
string | Status value supplied for this context. | When the parent is provided; check optional fields. |
viewModel.account.customer.title |
string | Title value supplied for this context. | When the parent is provided; check optional fields. |
viewModel.account.customer.titleId |
number | title identifier; do not load data with it. | When the parent is provided; check optional fields. |
viewModel.account.customer.updatedAt |
date or empty string | Database timestamp when available. This is not a localized display label. | Within an existing customer/company object; empty when no timestamp is available. |
viewModel.account.errors |
array | Prepared errors collection; may be empty. | When the parent is provided; check optional fields. |
viewModel.account.formOptions |
object | Form options data; check child fields before use. | When the parent is provided; check optional fields. |
viewModel.account.formOptions.countries |
array | Prepared countries collection; may be empty. | When the parent is provided; check optional fields. |
viewModel.account.formOptions.countries[].countryId |
number | country identifier; do not load data with it. | For each existing item; optional child fields depend on item type. |
viewModel.account.formOptions.countries[].isoCode |
string | Iso code value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.account.formOptions.countries[].label |
string | Label value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.account.formOptions.countries[].name |
string | Name value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.account.formOptions.salutations |
array | Prepared salutations collection; may be empty. | When the parent is provided; check optional fields. |
viewModel.account.formOptions.salutations[].key |
string | Key value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.account.formOptions.salutations[].label |
string | Label value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.account.formOptions.salutations[].salutationId |
number | salutation identifier; do not load data with it. | For each existing item; optional child fields depend on item type. |
viewModel.account.formOptions.titles |
array | Prepared titles collection; may be empty. | When the parent is provided; check optional fields. |
viewModel.account.formOptions.titles[].key |
string | Key value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.account.formOptions.titles[].label |
string | Label value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.account.formOptions.titles[].titleId |
number | title identifier; do not load data with it. | For each existing item; optional child fields depend on item type. |
viewModel.account.hasCompany |
boolean | Whether company applies; use for display only. | When the parent is provided; check optional fields. |
viewModel.account.hasErrors |
boolean | Whether errors applies; use for display only. | When the parent is provided; check optional fields. |
viewModel.account.labels |
object | Labels data; check child fields before use. | When the parent is provided; check optional fields. |
viewModel.account.logoutLabel |
string | Prepared logout display text. | When the parent is provided; check optional fields. |
viewModel.account.logoutUrl |
string | Prepared logout URL; use unchanged. | When the parent is provided; check optional fields. |
viewModel.account.navigation |
array | Prepared navigation collection; may be empty. | When the parent is provided; check optional fields. |
viewModel.account.navigation[].isActive |
boolean | Whether active applies; use for display only. | For each existing item; optional child fields depend on item type. |
viewModel.account.navigation[].key |
string | Key value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.account.navigation[].label |
string | Label value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.account.navigation[].url |
string | Prepared url URL; use unchanged. | For each existing item; optional child fields depend on item type. |
viewModel.account.notice |
object | Notice data; check child fields before use. | When the parent is provided; check optional fields. |
viewModel.account.notice.message |
string | Message value supplied for this context. | When the parent is provided; check optional fields. |
viewModel.account.notice.type |
string | Type value supplied for this context. | When the parent is provided; check optional fields. |
viewModel.account.urls |
object | Urls data; check child fields before use. | When the parent is provided; check optional fields. |
viewModel.account.urls.addresses |
string | Addresses value supplied for this context. | When the parent is provided; check optional fields. |
viewModel.account.urls.addressNew |
string | Address new value supplied for this context. | When the parent is provided; check optional fields. |
viewModel.account.urls.addressSave |
string | Address save value supplied for this context. | When the parent is provided; check optional fields. |
viewModel.account.urls.company |
string | Company value supplied for this context. | When the parent is provided; check optional fields. |
viewModel.account.urls.companyAddresses |
string | Company addresses value supplied for this context. | When the parent is provided; check optional fields. |
viewModel.account.urls.companyAddressNew |
string | Company address new value supplied for this context. | When the parent is provided; check optional fields. |
viewModel.account.urls.companyAddressSave |
string | Company address save value supplied for this context. | When the parent is provided; check optional fields. |
viewModel.account.urls.dashboard |
string | Dashboard value supplied for this context. | When the parent is provided; check optional fields. |
viewModel.account.urls.orders |
string | Orders value supplied for this context. | When the parent is provided; check optional fields. |
viewModel.account.urls.passwordReset |
string | Password reset value supplied for this context. | When the parent is provided; check optional fields. |
viewModel.account.urls.profile |
string | Profile value supplied for this context. | When the parent is provided; check optional fields. |
viewModel.account.urls.wishlist |
string | Wishlist 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. |
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.