Add that to the top of the sidebox ...
When $this_is_home_page is true then you do not want to show the sidebox ...
NOTE: this is already built into v1.3.6 and above ... so you will not need it in the sidebox when you upgrade ...
the /includes/modules/sideboxes/featured.php already has in it:
// test if box should display
$show_featured= true;
When $show_featured is true the sidebox shows ...
NOTE: there is a second check following the select of the featured products for whether or not there is "something" to show ... you only care if you are on the main page, from there the sidebox can run normally ...
So below the
$show_featured = true;
You could add the code:
$this_is_home_page = ($current_page=='index' && (!isset($_GET['cPath'])) && (!isset($_GET['manufacturers_id'])) && (!isset($_GET['typefilter'])) );
$show_featured = $this_is_home_page;
NOTE: This is written in two lines so that you can find it easily in the future for upgrading ...
What this will do is turn on/off the featured sidebox based on if you are on the home page or not ...
Linda McGrath
If you have to think ... you haven't been zenned ...
**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!