Totally Zenned
- Join Date:
- Apr 2005
- Posts:
- 853
- Plugin Contributions:
- 0
EZ pages sidebox exclusion doesn't seem to work
I am not sure what I am doing wrong. I followed the instructions from the FAQ section of the Zen Cart site, How can I vary which sideboxes are shown on each of my EZ-Pages?
https://www.zen-cart.com/tutorials/index.php?article=249
I am adding the code to the best sellers section of my site according to the instructions:
require($template->get_template_dir('tpl_best_sellers.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_best_sellers.php');
$title = BOX_HEADING_BESTSELLERS;
require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
This is what the code looks like after I added the code:
if (!isset($ez_page_id) || !in_array($ezpage_id,explode(",",'1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18'))) {
require($template->get_template_dir('tpl_best_sellers.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_best_sellers.php');
$title = BOX_HEADING_BESTSELLERS;
require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
}
I am wondering if I missed something.