I managed to solve this in another way, detailed here.
However, s_t_e_v_e has also provided a very useful solution (untested) which corrects the wrong coding I was using avove:
tpl_main_page.php:
PHP Code:
if (in_array($current_page_base,explode(",",'login,checkout,account,create_account')) ) {
$flag_disable_left = true;
}
if (in_array($current_page_base,explode(",",'login,account')) ) {
$flag_disable_footer = true;
}
if (in_array($current_page_base,explode(",",'login')) ) {
$flag_disable_header = true;
}
if ($current_page_base == 'shopping_cart' && $_SESSION['cart']->count_contents() > 0 ) {
$flag_disable_left = true;
}
Knowing s_t_e_v_e this is 99.999999999999999999% sure to work. However, needs testing.
Bookmarks