GJH42, Thanks for the help
gjh42:
To clarify, by "all subcategories of $cPath == 45_1180_108850"
did you mean all subcategories of top cat 45? Or all subcats of sub-subcat 108850? (The second would be trickier.)
I could see using both methods but originally I was asking for all subcats of subcat 108850.
However your below method works great for me at this point. Ideally I would like to be able to just have a field in the Categories table designating the layout, but I need to crawl before I run. Thanks again GJH42 as this will get me through this hurdle.
gjh42:
if (PRODUCT_LISTING_LAYOUT_STYLE == 'columns' AND (!in_array($current_category_id, explode(',','114450,2260')))) { //you can add more categories to the array
For anyone using GJH42's suggestion I have quoted, please note the following are the two required peices of text
if (PRODUCT_LISTING_LAYOUT_STYLE == 'rows' OR (in_array($current_category_id, explode(',','104150,2260')))) {
if (PRODUCT_LISTING_LAYOUT_STYLE == 'columns' AND (!in_array($current_category_id, explode(',','104150,2260')))) {
I will also point out for rookies such as myself, do NOT overlook the ! in the column statement or else you will confuse the crap out of your computer. Leaving it out or accidently copying it into the rows statement will make both statements return the same result.
ZC 1.5.5
Add ons: - Column/Grid 1.3.8 - Dual pricing 1.7 - ImageHandler3