Hi Linda,
Thansk for responding. Well basically my page has 2 boxes. Box 1 shows the name of the category/subcategory. Box 2 shows the items. Now the key point here is that the Box 2 will show random products from that category's subcategories. These subcategories are listed in Box 1.
Now say I have 3 subcategories(A, B, C) in a category. If I don't have any products in subcategory C, if someone clicks on it, I want the Box 2 to say something like "no products available" instead of coming up as just blank.
If you remember you gave me a solution for customizing specials by looking at record count(). The reason was the same. If no specials, "display some text in the box" or execute any other function.
So hence I need some kind of flag to actually check the following -
-
Category has a subcategory or not.
-
If no subcategory, does it have any products or not.
-
If subcategories present, check each if it has products or not.
I hope I have been able to clearly explain my objective. Oh and this flag needs to work for the catalog side of the website not for the admin.
Thanks
callingrohit