Browse - Category Detail Page

Tease the contents of the category and get the customer excited.

 


Relevant APIs

 

UCommerce.Runtime
SiteContext.Current.CatalogContext
CurrentCategory

UCommerce.EntitiesV2.Category
.ImageId

UCommerce.Extensions
Category.DynamicProperty()
Category.DisplayName()
Category.Description()

Hands-on

Find the “Category.aspx.cs”. The method “Page_Load” needs to populate the CategoryProductModel, which is then used to bind data to the view Category.aspx. Map “CurrentCategory” to the CategoryProductModel with:

  • Name
  • Description

Bonus

Display category images using Kentico APIs. Figure out if there’s a suitable property you can use or if you need to extend the CategoryProductModel with a property to hold the image. You would need to make use of the ImageService.

{{lineitem.ProductName}}

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

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