Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Commerce Server Catalog > Don't display e...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 680 of 763
Post > Topic >>

Don't display empty categories (no products)

by "briguy" <brian@[EMAIL PROTECTED] > Sep 27, 2006 at 09:31 AM

I am writing an shopping cart in CS2002 FP1 and I don't want my
subcategories to show up below any main category if no products exists
within those subcategories,

The only ways I've thought of is to do one of two things:

1) CS SQL stored procedure change (the one that GetChildCategories
calls).  This change would involve doing an inner join with the
corresponding products for each category.

2) modify DataSet (used to bind to DataList for displaying categories
on the web site) to remove category row after call function to find out
if each subcategory has no products.

Solution 1 would be more risky (changing a complicated stored
procedure) but less time costly on the server. Soution 2 would be less
risky but more taxing on the server (calling GetProducts for each
subcategory).  Does anyone have any other solutions or would recommend
which solution I should take?
 




 3 Posts in Topic:
Don't display empty categories (no products)
"briguy" <br  2006-09-27 09:31:14 
RE: Don't display empty categories (no products)
sudharag@[EMAIL PROTECTED  2006-09-27 17:09:34 
Re: Don't display empty categories (no products)
"Joseph Johnson"  2006-09-27 12:12:33 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Nov 23 6:41:50 CST 2008.