Developer forum

Forum » Development » ecom meny

Reply

I don't want to show product groups in the menu that don't have any products.

How can I do this?


Replies

 
Reply

Hi Paul,

 

Go into the Control Panel, and check the General and Prices option. You'll find options there for products only.

 

For product groups, try manipulating through javascript

 

Nuno

 
Reply
nuno wrote:

Hi Paul,

 

Go into the Control Panel, and check the General and Prices option. You'll find options there for products only.

 

For product groups, try manipulating through javascript

 

Nuno


 

I'm using xslt to create the menu.

Can't you do this without using java?

Isn't there a way to use count to see if a goup has any products.

 

The problem is that I don't know how to get the products from the groups. 

 
Reply

Unfortunately information about the number of products in a group is not provided in the XML output.

 
Reply
Sorensen wrote:

Unfortunately information about the number of products in a group is not provided in the XML output.


 

Is there another way to get hold of the product count in a group?

 
Reply

If you've seen the videos from the pretech review(if not, you can watch them here: http://developer.dynamicweb.dk/Tech-Review-2008-2-28453.aspx), you've probably noticed the new ProductList notification subscribers. Using those you can access the collection of products and also the Products.Count property.

 

I don't know if this helps, but there's a beta available that you can do some experimenting with, if you want to.

 

You must be logged in to post in the forum