Totally Zenned
- Join Date:
- Feb 2010
- Posts:
- 2,159
- Plugin Contributions:
- 10
Disable Right Column from index&cPath only
I am trying to disable the right column from product listing pages (index&cPath).
This is what I am doing:
I have inserted the following code in /includes/templates/CUSTOM_TEMPLATE/common/tpl_main_page.php
if (in_array($cPath,explode(",",'1,2,3,4,5')) ) {
$flag_disable_right = true;
this works great, however I have 18 top level categories & 700 sub-categories.
My question is, is their a way to disable all the cPath extensions without manually inserting them?