Totally Zenned
- Join Date:
- Nov 2006
- Posts:
- 505
- Plugin Contributions:
- 0
Turn Off All sideboxes except shopping cart sidebox during checkout pages
I use 8 sideboxes sitewide, but wanted to turn off all of them except the shopping cart sidebox during the following checkout pages:
login page
checkout shipping page
checkout payment page
checkout confirmation page
to turn off:
sideboxes/search_header.php
sideboxes/categories.php
sideboxes/manufacturers.php
sideboxes/whats_new.php
sideboxes/featured.php
sideboxes/specials.php
sideboxes/currencies.php
I have found this link with code to turn off one sidebox on the main page, but am unsure how to do the same thing for so many pages and sideboxes.
As the code I assume must be different for each sidebox, I am not sure what code to use or even what to call the pages in code example:
// test if box should display
$show_whats_new= true;
$this_is_checkout_shipping_page? = ($current_page=='index' && (!isset($_GET['cPath'])) && (!isset($_GET['?manufacturers_id'])) && (!isset($_GET['typefilter'])) );
$show_featured = checkout_shipping_page?;
Zencart 1.3.9h - PHP 5.2.13 - My SQL 5.0.84 - Apache 1.3.41