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 “MasterClassCategoryController”.
The method “Index” renders the view “/views/category.cshtml” with the categoryViewModel.
Map “CurrentCategory” to the categoryViewModel with:

  • Name
  • Description

Bonus

Display category images using Umbraco APIs.
Figure out if there’s a suitable property you can use or if 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