Deceased
- Join Date:
- Nov 2007
- Location:
- Sunny Coast, Australia
- Posts:
- 3,427
- Plugin Contributions:
- 2
Don't show some sideboxes on main page
I am trying to suppress the display of some sideboxes on the main page (home page), namely
currencies
information
more information
editable sidebox (heading "Shop with Confidence")
Currencies sidebox as example:
Using the tutorial https://www.zen-cart.com/tutorials/index.php?article=270 I added the following code to /includes/modules/sideboxes/MY_TEMPLATE/currencies.php
// test if box should display
$show_currencies = true;// do not show on home page
if ($this_is_home_page) {
$show_currencies = false;
}
This does not work for me.
Then tried this
if ((isset($_GET['main_page']) && $_GET['main_page'] == 'index') && (isset($_GET['cPath']) && ($_GET['cPath'] == '1' || $_GET['cPath'] == '2')))
{
$show_currencies = TRUE;
} else
{
$show_currencies = FALSE;
}
same result: no go!
I have used similar code on other sideboxes for SSL and NONSSL pages without problems but can't work out what I am doing wrong with these boxes.....:frusty:
URL https://www.frnt.org/personalnaturals
ZC 1.3.8.a with loads of add-ons
template cold_steel
Appreciate your help
Frank
NOTE: We are sorry that Frank is no longer with us.
We are grateful for all his contributions to the Zen Cart community.