Developer forum

Forum » Ecommerce - Standard features » Hiding top level groups when sub level group is empty

Hiding top level groups when sub level group is empty

Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi there,

I am trying to write some XSLT that should remove a top level Ecom group from the menu (and thus also the sub groups), when none of the sub groups contain any elements.

However, I can't seem to make it work. When I do not set "Include Products" on the Navigation settings, the ChildCount of the sub group is always zero. When I do include the products, I am seeing odd behavior when sometimes products do, and sometimes don't show up after enabling and disabling products in the Ecommerce backend. This makes it impossible to count the children correctly and hide the main menu.

Any suggestions are highly appreciated!

Imar


Replies

 
Nuno Aguiar
Reply

Hi Imar,

 

As for the buggy "Include Products" I can't say anything apart that performance wise if bad. However there is hope:

http://developer.dynamicweb.com/forum/ecommerce-standard-features/ecommerce-standard-features/navigation-with-product-counter.aspx

 

Hopefully the bug will also be fixed by then as well.

 

Nuno

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Thanks Nuno!

Imar

 

You must be logged in to post in the forum