I am trying to disable the right column from product listing pages (index&cPath).
rbarbour
index&cPath is used to display all categories and sub-categories (same page) so the only way to disable("right or left") column $flag_disable_right or $flag_disable_left
for 1 individual category or sub-category page would be to insert
PHP Code:
if (in_array($cPath,explode(",",'1,2,3,4,5')) ) {
$flag_disable_right = true;
into your /includes/templates/CUSTOM_TEMPLATE/common/tpl_main_page.php
but to disable("right or left") column on all categories and sub-categories you would have to insert
PHP Code:
if ($current_page_base == 'index' and $cPath > 0) {
$flag_disable_right = true;
}
above code is different than earlier used code as I have been cleaning up my files.
I have never inserted the $flag_disable_right = true; on individual pages, always inserted in tpl_main_page.php
for pages within your shop you insert the following code in tpl_main_page.php
PHP Code:
if (in_array($current_page_base,explode(",",'products_new,advanced_search_result,products_all,shopping_cart')) ) {
$flag_disable_right = true;
}
I hope this helps!