Hi all,
I have a unordered list that I want to show on all product pages under a certain sub-category, I'm using this if statement:
{if $current_category.parentid == 258 or $current_category.parentid == 259 or $current_category.parentid == 261 or $current_category.parentid == 262 or $current_category.parentid == 271 or $current_category.parentid == 272 or $current_category.parentid == 251 or $current_category.parentid == 306 or $current_category.parentid == 307 or $current_category.parentid == 308}
This works fine when targeting the sub-category, sub-sub-category & then product, but then I have to make a load more '$current_category.parentid' statements if I want to target sub-sub-sub-category products, and this will be quite a list with the amount of sub-sub-categorys I got!
Is there an easier way of doing this?
In a nutshell I want to be able to target all in red with one statement.
Tropical (ROOT)
-Tropical Fish (SUB-CATEGORY)
-African Cichlids (SUB-SUB-CATEGORY)
-Misc Cichlids (SUB-SUB-SUB-CATEGORY)
-Buttikoferi cichlid(PRODUCT)
-Nyererei cichlid(PRODUCT)
-Zebra obliquidens (PRODUCT)
-Tanganyikan Cichlids (SUB-SUB-SUB-CATEGORY)
-Malawi Cichlids (SUB-SUB-SUB-CATEGORY)
-American & New World Cichlids (SUB-SUB-CATEGORY)
-Tropical Invertebrates (ROOT)
-Plants (ROOT)
-Tropical Tank Cleaners (ROOT)
Thank you for your time and help,
Mark.
