New Zenner
- Join Date:
- Feb 2015
- Location:
- Gloucestershire
- Posts:
- 24
- Plugin Contributions:
- 0
Post #1 by matthew_kin
Hi
I am trying to turn off the left sidebox for all pages apart from the categories-product page, i have a sidebox on this which needs to be on to filter results.
At the minute i have the below code in the main page to turn off the sidebox on the main page and the product info page.
if ($_GET['main_page'] == 'index' and $current_category_id=='') {
$flag_disable_left = true;
}
if ($current_page_base == 'product_info') {
$flag_disable_left = true;
}
I could re-write this loads of times to include every page barring the categories product page. However this will be painstaking and no doubt will mean i miss some.
Is there a way to turn the sidebox off in admin but then have a similar statement as above to turn it on, only when on the category-product page?