
Originally Posted by
royaldave
Hi
I've worked out where the problem is - just don't know what it is.
This if statement in main_template_vars -
if (isset($_GET['typefilter'])) $typefilter = $_GET['typefilter'];
require(zen_get_index_filters_directory($typefilter . '_filter.php'));
////////////////////////////////////////////////////////////////////////////////////////////////////////////
$tpl_page_body = 'tpl_index_product_list.php';
////////////////////////////////////////////////////////////////////////////////////////////////////////////
} else {
////////////////////////////////////////////////////////////////////////////////////////////////////////////
$tpl_page_body = 'tpl_index_default.php';
////////////////////////////////////////////////////////////////////////////////////////////////////////////
}
SHOULD be setting $tpl_page_body to 'tpl_index_default' HOWEVER it's coming out with 'tpl_index_product_list' instead.
This is the result of changes made to init_category_path. I have no idea why.
I can workaround the problem by hardcoding -
$tpl_page_body = 'tpl_index_default.php';
underneath the if statement and everything works the way I want. Except that of course it ruins the rest of the site.
I do not need to modify config_sites at all.