My Cart
Log In
Register
an ASP.NET Open Source CMS & eCommerce platform
Search:
Home
Open Source Edition
DotShoppingCart Suite
Services
Support
Blog
Marketplace
Buy
Forums
Video Tutorials
Documentation
Premium Support
Submit Support Ticket
Home
>
DotShoppingCart Forums
>
Development
>
DotShoppingCart OpenSource Core
>
Suppress category with no prodcut linked to it
Suppress category with no prodcut linked to it
Last Post 5/11/2009 11:55:11 PM By lukezy. 3 replies.
5/8/2009 2:06:33 AM
rtao
Posts: 2
Joined: 5/8/2009
Suppress category with no prodcut linked to it
How can I suppress a category both main and sub, when there is no product linked to it?
Thx
5/8/2009 9:24:32 AM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
website
Re: Suppress category with no prodcut linked to it
Turn on the page editor and click "Edit" menu on the category list block and you will see the check box to display the numbers. Uncheck it.
DotShoppingCart Staff
5/10/2009 6:28:49 PM
rtao
Posts: 2
Joined: 5/8/2009
Re: Suppress category with no prodcut linked to it
That's only hide the count, isn't it?
I want to hide the category not the count
5/11/2009 11:55:11 PM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
website
Re: Suppress category with no prodcut linked to it
Ah, check web\store\blocks\categorylist.ascx.cs and search for variable "categories". You just need to filter out category property "Count" equals to 0 before binding.
DotShoppingCart Staff