I wanted to ideally turn off ALL columns EXCEPT for the product page. And using your code with my code worked!
http://www.prommart.com/b-dazzle-35422-p-980.html
So now only the product page has a column (right) insofar as I yet see. It even turned off the columns for the shipping, conditions, contact us pages, etc.
Thanks!
Here is what I have, in case anyone else wants this, all in common/tpl_main_page.php:
Turned off columns for homepage and my categories and subcategories (at top of tpl main page):
Code:
if ($this_is_home_page) {
$flag_disable_right = true;
$flag_disable_left = true;
}
if (in_array($cPath,explode(",",'1,33,32,10,13,29,9,16,7,3,3_18,3_23,16_17,3_5,29_30,29_31,7_28,13_25,13_26,13_27,3_21,13_14,10_11,3_4,10_15,7_8,10_12,7_24,1_2,19_20,1_6,19,')) ) {
$flag_disable_left = true;
$flag_disable_right = true;
}
But above also takes out the right column on my product page, which I wanted to leave.
So I then applied Lat9's code in the place he indicated, which now leaves the right column on for product pages only...what I was looking for:
Code:
if ($current_page_base == 'product_info') {
$flag_disable_left = true;
$flag_disable_right = false;
}
Lat9, thanks again!
Steve