Adding category depth tag to Shopp 1.1.*
Problem: I needed to display sub categories of a category in category.php but only one level deep. Using: <?php if(shopp(’category’,'hascategories’)): ?> <?php while(shopp(’category’,'subcategories’)): ?> //display stuff <?php endwhile; ?> <?php endif; ?> …displays all subcast AND their subcats. Fix: I decided to add a new tag, called shopp(‘subcategory’, ‘depth’) that would return the category depth. [...]