Account orders template
Customer order list.
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.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.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.orders |
object | Orders data; check child fields before use. | When the parent is provided; check optional fields. |
viewModel.account.orders.emptyText |
string | Empty text value supplied for this context. | When the parent is provided; check optional fields. |
viewModel.account.orders.intro |
string | Intro value supplied for this context. | When the parent is provided; check optional fields. |
viewModel.account.orders.items |
array | Prepared items collection; may be empty. | When the parent is provided; check optional fields. |
viewModel.account.orders.pagination |
object | Pagination data; check child fields before use. | When the parent is provided; check optional fields. |
viewModel.account.orders.pagination.hasNext |
boolean | Whether next applies; use for display only. | When the parent is provided; check optional fields. |
viewModel.account.orders.pagination.hasPrevious |
boolean | Whether previous applies; use for display only. | When the parent is provided; check optional fields. |
viewModel.account.orders.pagination.nextPage |
number | Next page numeric value. | When the parent is provided; check optional fields. |
viewModel.account.orders.pagination.nextUrl |
string | Prepared next URL; use unchanged. | When the parent is provided; check optional fields. |
viewModel.account.orders.pagination.page |
number | Page numeric value. | When the parent is provided; check optional fields. |
viewModel.account.orders.pagination.perPage |
number | Per page numeric value. | When the parent is provided; check optional fields. |
viewModel.account.orders.pagination.previousPage |
number | Previous page numeric value. | When the parent is provided; check optional fields. |
viewModel.account.orders.pagination.previousUrl |
string | Prepared previous URL; use unchanged. | When the parent is provided; check optional fields. |
viewModel.account.orders.pagination.totalItems |
number | Total items numeric value. | When the parent is provided; check optional fields. |
viewModel.account.orders.pagination.totalPages |
number | Total pages numeric value. | When the parent is provided; check optional fields. |
viewModel.account.orders.title |
string | Title value supplied for this context. | When the parent is provided; check optional fields. |
viewModel.account.orders.totalItems |
number | Total items numeric value. | 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.