As the people that work at the company change and replace pages, we've ended up with a few empty categories which I don't notice.
So, I thought it would be better to first check if the category has items, then produce the heading and link list.
The code I've started with so far, is:
Code: Select all
{products_getcategory category='2015-YachtRacing-WholeBoatCaribbeanRacing' assign='tmp'}
{if tmp !=''}
<h2>Caribbean Racing (Whole Boat)</h2>
{Products category='2015-YachtRacing-WholeBoatCaribbeanRacing' sortby='weight'}
{/if}
What do I need to do to make it effectively check if that category has items, and only produce the following code if it does?
Cheers!
Jim