View Single Post
  #7  
Old September 4th, 2014, 10:06 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi,

Yes, or you could hide categories based on product count. That will require changes to your "Categories" widgets.

To get the number of products in a specific category, you can use the PHP variable:

PHP Code:
$category->pc 
To get the total number of products in a category and its subcategories, you can use the PHP variable:

PHP Code:
$category->pct 
Then perform some conditional logic in your views to display or not display the categories.

Eric