Browse - Category Detail Page

Tease the contents of the category and get the customer excited. Learn how to display language specific content via dynamic properties.

 


Relevant APIs

 

 

UCommerce.Runtime
SiteContext.Current.CatalogContext
CurrentCategory
UCommerce.EntitiesV2.Category
.ImageId
UCommerce.Extensions
Category.DynamicProperty()
Category.DisplayName()
Category.Description()

Hands-on

Find the “CategoryController”The method “Index” renders the view “/views/category.cshtml” with the categoryViewModelMap “CurrentCategory” to the categoryViewModel with

  • Name
  • Description

 


Bonus

Display category images using Sitecore APIs. Figure out if there’s a suitable property you can use, or you need to extend the CategoryViewModel with a property to hold the image.

 

 

{{lineitem.ProductName}}

{{lineitem.VariantName}} - {{lineitem.Quantity}} x {{lineitem.FormattedPrice}} {{lineitem.FormattedPrice}}

Your cart is empty ;(
Total {{basket.FormattedProductsTotal}}
Checkout