Wishlist template
Saved product cards and removal 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.
| Field | Type | Meaning | Availability |
|---|---|---|---|
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.items[].badges |
array | Prepared badges collection; may be empty. | For each existing item; optional child fields depend on item type. |
viewModel.wishlist.items[].badges[].color |
string | Color value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.wishlist.items[].badges[].key |
string | Key value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.wishlist.items[].badges[].label |
string | Label value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.wishlist.items[].comparePriceLabel |
string | Prepared compare price display text. | For each existing item; optional child fields depend on item type. |
viewModel.wishlist.items[].hasImage |
boolean | Whether image applies; use for display only. | For each existing item; optional child fields depend on item type. |
viewModel.wishlist.items[].image |
object | Image data; check child fields before use. | For each existing item; optional child fields depend on item type. |
viewModel.wishlist.items[].image.alt |
string | Alt value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.wishlist.items[].image.mediaAssetId |
number | media asset identifier; do not load data with it. | For each existing item; optional child fields depend on item type. |
viewModel.wishlist.items[].image.thumbUrl |
string | Prepared thumb URL; use unchanged. | For each existing item; optional child fields depend on item type. |
viewModel.wishlist.items[].image.title |
string | Title value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.wishlist.items[].image.url |
string | Prepared url URL; use unchanged. | For each existing item; optional child fields depend on item type. |
viewModel.wishlist.items[].isDiscounted |
boolean | Whether discounted applies; use for display only. | For each existing item; optional child fields depend on item type. |
viewModel.wishlist.items[].manufacturerId |
number | manufacturer identifier; do not load data with it. | For each existing item; optional child fields depend on item type. |
viewModel.wishlist.items[].manufacturerName |
string | Manufacturer name value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.wishlist.items[].name |
string | Name value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.wishlist.items[].priceLabel |
string | Prepared price display text. | For each existing item; optional child fields depend on item type. |
viewModel.wishlist.items[].productId |
number | product identifier; do not load data with it. | For each existing item; optional child fields depend on item type. |
viewModel.wishlist.items[].shortDescription |
string | Short description value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.wishlist.items[].sku |
string | Sku value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.wishlist.items[].tagline |
string | Tagline value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.wishlist.items[].url |
string | Prepared url URL; use unchanged. | For each existing item; optional child fields depend on item type. |
viewModel.wishlist.items[].variantPreview |
object | Variant preview data; check child fields before use. | For each existing item; optional child fields depend on item type. |
viewModel.wishlist.items[].variantPreview.groups |
array | Prepared groups collection; may be empty. | For each existing item; optional child fields depend on item type. |
viewModel.wishlist.items[].variantPreview.groups[].items |
array | Prepared items collection; may be empty. | For each existing item; optional child fields depend on item type. |
viewModel.wishlist.items[].variantPreview.groups[].items[].color |
string | Color value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.wishlist.items[].variantPreview.groups[].items[].image |
object | Image data; check child fields before use. | For each existing item; optional child fields depend on item type. |
viewModel.wishlist.items[].variantPreview.groups[].items[].label |
string | Label value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.wishlist.items[].variantPreview.groups[].items[].type |
string | Type value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.wishlist.items[].variantPreview.groups[].items[].url |
string | Prepared url URL; use unchanged. | For each existing item; optional child fields depend on item type. |
viewModel.wishlist.items[].variantPreview.groups[].items[].value |
string | Value value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.wishlist.items[].variantPreview.groups[].label |
string | Label value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.wishlist.items[].variantPreview.groups[].remainingCount |
number | Remaining count numeric value. | For each existing item; optional child fields depend on item type. |
viewModel.wishlist.items[].variantPreview.groups[].type |
string | Type value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.wishlist.items[].variantPreview.groups[].variantGroupId |
number | variant group identifier; do not load data with it. | For each existing item; optional child fields depend on item type. |
viewModel.wishlist.items[].variantPreview.hasVariants |
boolean | Whether variants applies; use for display only. | For each existing item; optional child fields depend on item type. |
viewModel.wishlist.items[].variantPreview.items |
array | Prepared items collection; may be empty. | For each existing item; optional child fields depend on item type. |
viewModel.wishlist.items[].variantPreview.items[].color |
string | Color value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.wishlist.items[].variantPreview.items[].image |
object | Image data; check child fields before use. | For each existing item; optional child fields depend on item type. |
viewModel.wishlist.items[].variantPreview.items[].label |
string | Label value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.wishlist.items[].variantPreview.items[].type |
string | Type value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.wishlist.items[].variantPreview.items[].url |
string | Prepared url URL; use unchanged. | For each existing item; optional child fields depend on item type. |
viewModel.wishlist.items[].variantPreview.items[].value |
string | Value value supplied for this context. | For each existing item; optional child fields depend on item type. |
viewModel.wishlist.items[].variantPreview.remainingCount |
number | Remaining count numeric value. | For each existing item; optional child fields depend on item type. |
viewModel.wishlist.items[].wishlist |
object | Wishlist data; check child fields before use. | For each existing item; optional child fields depend on item type. |
viewModel.wishlist.items[].wishlist.isInWishlist |
boolean | Whether in wishlist applies; use for display only. | For each existing item; optional child fields depend on item type. |
viewModel.wishlist.productIdMap |
object | Product id map data; check child fields before use. | When the parent is provided; check optional fields. |
viewModel.wishlist.productIdMap.[id] |
boolean | Whether [id] applies; use for display only. | When an entry exists for the identifier. |
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 URLs and labels. Encode plain text and HTML attributes; preserve only explicitly prepared HTML.