I'm using Zencart 1.3.9h
I'm trying to hide three sideboxes on two specific EZ-Pages
As per the FAQ/Tutorials instructions:
I have added the conditional statements on each individual sideboxname.php in includes/modules/sideboxes saved them back to the server as includes/modules/sideboxes /MY_TEMPLATE
Here are the three differennt conditional statements from each page:
to remove 'categories' from Ez-pages 6 & 8
if (!isset($ezpage_id) || !in_array($ezpage_id,explode(",",'6,8'))){ // added conditional statement to remove off pages6 & 8
require($template->get_template_dir('tpl_categories.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_categories.php');
$title = BOX_HEADING_CATEGORIES;
$title_link = false;
require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
}
to remove 'information' from Ez-pages 6 & 8
if (!isset($ezpage_id) || !in_array($ezpage_id,explode(",",'6,8'))){ // added conditional statement to remove off certain pages
require($template->get_template_dir('tpl_information.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_information.php');
$title = BOX_HEADING_INFORMATION;
$title_link = false;
require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
}
Categories & information sideboxes haven't been removed from the two pages id's 6, 8
& reviews has been removed from all pages NOT just the two pages 6, 8
To remove 'reviews' there was a preceeding else statement already present so added accordingly:
elseif (!isset($ezpage_id) || !in_array($ezpage_id,explode(",",'6,8'))){ // added conditional statement to remove certain pages
// display 'no reviews' box
require($template->get_template_dir('tpl_reviews_none.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_reviews_none.php');
$title = BOX_HEADING_REVIEWS;
$title_link = FILENAME_REVIEWS;
require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
}
Could someone look at the conditional statement above and see where my error is in the code a curly bracket in the wrong place maybe?
Sorry I'm a novice at PHP
Cheers



