Developer forum

Forum » Ecommerce - Standard features » Navigation with product counter

Navigation with product counter

Jakob Westhausen
Reply

Is it somehow possible to access the product counter tag from a navigation?

@RenderNavigation(new {
      template = "categories.xslt",
      expandmode = "all",
      id = "categories"
})
 

Best regards.

Jakob


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Jakob

There is no product count, but on 8.5+ you have the option to include products in the navigation XML (edit ecommerce navigation settings on page properties) and that will add products to the navigation XML. (see settings in MC on attached screen dump).

If you enable that, you can do the count in XSLT, but this will of course perform badly if you have many products...

BR Nicolai

Capture.PNG
 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

I've added the request to the product backlog. It will maybe make it for 8.6.1

Votes for this answer: 1

 

You must be logged in to post in the forum