ProductList
Tags, loops and template examples related to listing and displaying products in Ecommerce.
Available tags
Ecom:CatalogPublishing.ProductLineCount
Returns the number of different products in the Catalog publishing list.
@GetInteger("Ecom:CatalogPublishing.ProductLineCount")
Ecom:CatalogPublishing.TotalProductCount
Returns the total number of products in the Catalog publishing list.
@GetInteger("Ecom:CatalogPublishing.TotalProductCount")
Ecom:CatalogPublishing.UseCatalogPublishing
Returns True if Catalog Publishing is enabled in module settings.
@GetBoolean("Ecom:CatalogPublishing.UseCatalogPublishing")
Ecom:Group.Category.FieldsCount
Returns the number of product category fields in the product category.
@GetInteger("Ecom:Group.Category.FieldsCount")
Ecom:Group.Category.ID
Returns the ID of the product category assigned to the products in the group.
@GetString("Ecom:Group.Category.ID")
Ecom:Group.Category.Name
Returns the name of the product category that is assigned to the products in the group.
@GetString("Ecom:Group.Category.Name")
Ecom:Group.Clickable
Returns True if the group is clickable in the navigation.
@GetBoolean("Ecom:Group.Clickable")
Ecom:Group.Description
Returns the description of the group.
@GetString("Ecom:Group.Description")
Ecom:Group.IDUrlEncoded
Returns the URL encoded ID of the group.
@GetString("Ecom:Group.IDUrlEncoded")
Ecom:Group.LargeImage
Returns the path to the large image for the group.
@GetString("Ecom:Group.LargeImage")
Ecom:Group.Link.Clean.PID
Returns an URL (incl. the paragraph ID) to the group .
@GetString("Ecom:Group.Link.Clean.PID")
Ecom:Group.Link.PID
Returns a link (incl. the paragraph ID) to the group.
@GetString("Ecom:Group.Link.PID")
Ecom:Group.MetaDescription
Returns the meta description for the group.
@GetString("Ecom:Group.MetaDescription")
Ecom:Group.MetaKeyWords
Returns the meta keywords for the group.
@GetString("Ecom:Group.MetaKeyWords")
Ecom:Group.MetaUrl
Returns the meta URL name for the group.
Returns the URL name that is used to give the page file name another name, if customized URLs is enabled.
It is also used to give your group detail link in the group list a title – viewed with mouse over.
@GetString("Ecom:Group.MetaUrl")
Ecom:Group.ProductCount
Returns the number of products in the group.
@GetInteger("Ecom:Group.ProductCount")
Ecom:Group.ShowInMenu
Returns True if the group is enabled to be visible in the navigation.
@GetBoolean("Ecom:Group.ShowInMenu")
Ecom:Group.ShowInSiteMap
Returns True if the group is enabled to be visible in the sitemap.
@GetBoolean("Ecom:Group.ShowInSiteMap")
Ecom:Group.SmallImage
Returns the path to the small image for a group.
@GetString("Ecom:Group.SmallImage")
Ecom:Group:Field.[TempateTag]
The Ecom:Group:Field
tags let you display information about product group fields.
@GetString("Ecom:Group:Field.[TempateTag]")
Ecom:LastAddedProduct.ID
Returns the ID of the product that is last added to the shopping cart.
@GetString("Ecom:LastAddedProduct.ID")
Ecom:LastAddedProduct.ImageLarge
Returns a large image for the last added product.
@GetString("Ecom:LastAddedProduct.ImageLarge")
Ecom:LastAddedProduct.ImageLarge.Clean
Returns an URL for the image for the last added product.
@GetString("Ecom:LastAddedProduct.ImageLarge.Clean")
Ecom:LastAddedProduct.ImageLarge.Default
Returns the large (default) image for the latest added product.
@GetString("Ecom:LastAddedProduct.ImageLarge.Default ")
Ecom:LastAddedProduct.ImageLarge.Default.Clean
Returns an URL for the large (default) image for the last added product.
@GetString("Ecom:LastAddedProduct.ImageLarge.Default.Clean")
Ecom:LastAddedProduct.ImageMedium
Returns the medium size image for the last added product.
@GetString("Ecom:LastAddedProduct.ImageMedium")
Ecom:LastAddedProduct.ImageMedium.Clean
Returns an URL for the medium size image for the last added product.
@GetString("Ecom:LastAddedProduct.ImageMedium.Clean")
Ecom:LastAddedProduct.ImageMedium.Default
Returns a medium (default) image for the last added product.
@GetString("Ecom:LastAddedProduct.ImageMedium.Default")
Ecom:LastAddedProduct.ImageMedium.Default.Clean
Returns an URL for the medium (default) image for the last added product.
@GetString("Ecom:LastAddedProduct.ImageMedium.Default.Clean")
Ecom:LastAddedProduct.ImageSmall
Returns the small image for the last added product.
@GetString("Ecom:LastAddedProduct.ImageSmall")
Ecom:LastAddedProduct.ImageSmall.Clean
Returns an URL for the small image for the product.
@GetString("Ecom:LastAddedProduct.ImageSmall.Clean")
Ecom:LastAddedProduct.ImageSmall.Default
Returns a small (default) image for the last added product.
@GetString("Ecom:LastAddedProduct.ImageSmall.Default")
Ecom:LastAddedProduct.ImageSmall.Default.Clean
Returns an URL for the small (default) image for the product.
@GetString("Ecom:LastAddedProduct.ImageSmall.Default.Clean")
Ecom:LastAddedProduct.Name
Returns the name of the product that is last added to the shopping cart.
@GetString("Ecom:LastAddedProduct.Name")
Ecom:LastAddedProduct.Price
Returns the price of the product that is last added to the shopping cart.
@GetPrice("Ecom:LastAddedProduct.Price")
Ecom:LastAddedProduct.VariantID
Returns the variant ID for the last added product variant.
@GetString("Ecom:LastAddedProduct.VariantID")
Ecom:ProductList.CurrentPage
Returns the number of the current page of the frontend view.
@GetInteger("Ecom:ProductList.CurrentPage")
Ecom:ProductList.NextPage
Returns the link to the next product (if it exists) in the following form:
/Default.aspx?ID=1760&GroupID=&PageNum=2
@GetString("Ecom:ProductList.NextPage")
Ecom:ProductList.NextPage.Clean
Returns the link to the next product (if it exists) in the following form:
/Default.aspx?ID=1760&GroupID=&PageNum=2
@GetString("Ecom:ProductList.NextPage.Clean")
Ecom:ProductList.PageProdCnt
Returns the total number of products in the product list.
@GetInteger("Ecom:ProductList.PageProdCnt")
Ecom:ProductList.Pages[X].EndsWithLastPage
Returns True
if the current range ends with last product.
@GetBoolean("Ecom:ProductList.Pages[X].EndsWithLastPage")
Ecom:ProductList.Pages[X].Size
Returns the size of the range (3, 5, 7, etc.).
@GetInteger("Ecom:ProductList.Pages[X].Size")
Ecom:ProductList.Pages[X].StartsWithFirstPage
Returns True
if the current range starts with first product.
@GetBoolean("Ecom:ProductList.Pages[X].StartsWithFirstPage")
Ecom:ProductList.PageSize
Returns the number of products per page.
@GetString("Ecom:ProductList.PageSize")
Ecom:ProductList.PrevPage
Returns the link to the previous page (if it exists) in the following form:
/Default.aspx?ID=1760&GroupID=&PageNum=1
@GetString("Ecom:ProductList.PrevPage")
Ecom:ProductList.PrevPage.Clean
Returns the link to the previous page (if it exists) in the following form:
/Default.aspx?ID=1760&GroupID=&PageNum=1
@GetString("Ecom:ProductList.PrevPage.Clean")
Ecom:ProductList.TotalPages
Returns the total number of pages in the list.
@GetDouble("Ecom:ProductList.TotalPages")
Ecom:ProductList:Page.GroupID
Returns the product group ID.
@GetString("Ecom:ProductList:Page.GroupID")
Ecom:ProductList:Page.GroupName
Returrns the name of the product group.
@GetString("Ecom:ProductList:Page.GroupName")
Ecom:ProductList:Page.PID
Returns the ID of paragraph with the product details.
@GetInteger("Ecom:ProductList:Page.PID")
Ecom:ProductList:Search.Query
Returns query text of the search done in the product list.
@GetString("Ecom:ProductList:Search.Query")
eCom:Related.CustomersWhoBoughtThisItemAlsoBought.Count
Returns the number products in the CustomersWhoBoughtThisItemAlsoBought list.
@GetInteger("eCom:Related.CustomersWhoBoughtThisItemAlsoBought.Count")
eCom:Related.CustomersWhoSawThisAlsoSaw.Count
Returns the number products in the CustomersWhoSawThisAlsoSaw list.
@GetInteger("eCom:Related.CustomersWhoSawThisAlsoSaw.Count")
eCom:Related.MostPopularProducts.Count
Returns the number products in the MostPopularProducts list.
@GetInteger("eCom:Related.MostPopularProducts.Count")
eCom:Related.ProductSmartSearches.Count
Returns the number products in the ProductSmartSearches list.
@GetInteger("eCom:Related.ProductSmartSearches.Count")
eCom:Related.SavedForLater.Count
Returns the number products in the SavedForLater list.
@GetInteger("eCom:Related.SavedForLater.Count")
eCom:Related.SavedForLater.Count
Returns the number products in the SavedForLater list.
@GetInteger("eCom:Related.SavedForLater.Count")
eCom:Related.WhatAboutTheseProducts.Count
Returns the number products in the WhatAboutTheseProducts list.
@GetInteger("eCom:Related.WhatAboutTheseProducts.Count")
eCom:Related.WhatAboutTheseProducts.Count
Returns the number products in the WhatAboutTheseProducts list.
@GetInteger("eCom:Related.WhatAboutTheseProducts.Count")
eCom:Related.YouHaveSeenTheseProducts.Count
Returns the number products in the YouHaveSeenTheseProducts list.
@GetInteger("eCom:Related.YouHaveSeenTheseProducts.Count")
eCom:Related.YouHaveSeenTheseProducts.Count
Returns the number products in the YouHaveSeenTheseProducts list.
@GetInteger("eCom:Related.YouHaveSeenTheseProducts.Count")
Available loops
Childgroups
The Childgroups
loop lets you display various information about the subgroups in the product group.
@foreach (LoopItem item in GetLoop("Childgroups")){ <p>@item.GetValue("TagName")</p> }
CustomFieldList
The CustomFieldList loop lets you display information about custom product fields.
@foreach (LoopItem item in GetLoop("CustomFieldList")){ <p>@item.GetValue("TagName")</p> }
CustomFieldValues
The CustomFieldValues loop lets you display a list of the custom product fields includs value of the field.
@foreach (LoopItem item in GetLoop("CustomFieldValues")){ <p>@item.GetValue("TagName")</p> }
CustomGroupFields
The CustomgroupFields loop lets you display custom fields for a group.
@foreach (LoopItem item in GetLoop("CustomGroupFields")){ <p>@item.GetValue("TagName")</p> }
CustomGroupFields
The CustomGroupFields
loop lets you display custom group fields for a group.
@foreach (LoopItem item in GetLoop("CustomGroupFields")){ <p>@item.GetValue("TagName")</p> }
Ecom:ProductList.PagesX
The Ecom:ProductList.Pages loop lets you display various information about the paging for the product list.
The available paging loop and tags make it possible to do things like this:
@foreach (LoopItem item in GetLoop("Ecom:ProductList.PagesX")){ <p>@item.GetValue("TagName")</p> }
eCom:Related.CustomersWhoBoughtThisItemAlsoBought
The eCom:Related.CustomersWhoBoughtThisItemAlsoBought
loop lets you display various information about products that have been bought by the same customers as the actual product.
@foreach (LoopItem item in GetLoop("eCom:Related.CustomersWhoBoughtThisItemAlsoBought")){ <p>@item.GetValue("TagName")</p> }
eCom:Related.CustomersWhoSawThisAlsoSaw
The eCom:Related.CustomersWhoSawThisAlsoSaw
loop lets you display various information about products that have been seen by the same customers as the actual product.
@foreach (LoopItem item in GetLoop("eCom:Related.CustomersWhoSawThisAlsoSaw")){ <p>@item.GetValue("TagName")</p> }
eCom:Related.MoreFromSameManufacturer
The eCom:Related.MoreFromSameManufacturer loop returns 12 products from the same manufacturer excluding the current product.
@foreach (LoopItem item in GetLoop("eCom:Related.MoreFromSameManufacturer")){ <p>@item.GetValue("TagName")</p> }
eCom:Related.MostPopularProducts
The eCom:Related.MostPopularProducts
loop lets you display various information about the top ten most sold products.
@foreach (LoopItem item in GetLoop("eCom:Related.MostPopularProducts")){ <p>@item.GetValue("TagName")</p> }
eCom:Related.ProductSmartSearches
The eCom:Related.ProductSmartSearches loop lets you display various information about products in the smart search that is selected as related smart search in product edit.
@foreach (LoopItem item in GetLoop("eCom:Related.ProductSmartSearches")){ <p>@item.GetValue("TagName")</p> }
eCom:Related.SavedForLater
The eCom:Related.SavedForLater loop lets you display various information about the products that is removed from the cart and added to a saved for later list that is saved for a configurable number of days - in a setting in Management center - eCommerce - Advanced - Shopping cart - Saved for later valid time (days)).
@foreach (LoopItem item in GetLoop("eCom:Related.SavedForLater")){ <p>@item.GetValue("TagName")</p> }
eCom:Related.WhatAboutTheseProducts
The eCom:Related.WhatAboutTheseProducts
loop lets you display various information about more expensive products in the same group.
@foreach (LoopItem item in GetLoop("eCom:Related.WhatAboutTheseProducts")){ <p>@item.GetValue("TagName")</p> }
eCom:Related.YouHaveSeenTheseProducts
The eCom:Related.YouHaveSeenTheseProducts
loop lets you display various information about the products that the current user have visited in the same session.
@foreach (LoopItem item in GetLoop("eCom:Related.YouHaveSeenTheseProducts")){ <p>@item.GetValue("TagName")</p> }
FacetGroups
The FacetGroups
loop lets you display various information about all facet's groups.
@foreach (LoopItem item in GetLoop("FacetGroups")){ <p>@item.GetValue("TagName")</p> }
GroupCategoryFields
The GroupCategoryFields
loop lets you display information about all fields belongs to the group category.
@foreach (LoopItem item in GetLoop("GroupCategoryFields")){ <p>@item.GetValue("TagName")</p> }
GroupCategoryFields
The GroupCategoryFields
loop lets you display various information about the product categories fields that you can enable on a group
@foreach (LoopItem item in GetLoop("GroupCategoryFields")){ <p>@item.GetValue("TagName")</p> }
ProductGroups
The ProductsGroups loop lets you display information about product groups.
@foreach (LoopItem item in GetLoop("ProductGroups")){ <p>@item.GetValue("TagName")</p> }
Products
The Products loop lets you display information about products.
@foreach (LoopItem item in GetLoop("Products")){ <p>@item.GetValue("TagName")</p> }
Query.Parameters
Returns the...
@foreach (LoopItem item in GetLoop("Query.Parameters")){ <p>@item.GetValue("TagName")</p> }
Subgroups
The Subgroups loop lets you display various information about the subgroups in the product group. The Subgroups loop is used when you have GroupID in your querystring.
@foreach (LoopItem item in GetLoop("Subgroups")){ <p>@item.GetValue("TagName")</p> }