What would the correct IF statement to Disable left & right columns on category listing pages?
when I say category listing pages I mean listings of categories only, not the product listing pages.
Thanks in advance.
Phil
What would the correct IF statement to Disable left & right columns on category listing pages?
when I say category listing pages I mean listings of categories only, not the product listing pages.
Thanks in advance.
Phil
Phil Rogers
A problem shared is a problem solved.
You could use something like this :
I thought about using if cPath > 0 , but that would work on every page , and not what you want.Code:if ($cPath == '2' or $cPath == '3') { $flag_disable_right = true; $flag_disable_left = true; }
The best way would be if you have alot of cats is to make the cat listing into an array. and call that array to disable the side columns
Various Zen cart sites !
You could use this code fragment to cause the left and right columns to be disabled in a category listing page, but displayed on a product listing page:
Code:if ($_GET['main_page'] == FILENAME_DEFAULT && zen_not_null($category_depth) && $category_depth != 'products') { $flag_disable_left = true; $flag_disable_right = true; }