I have solved my problem
after posting I found this
Code:
if (file_exists(DIR_WS_MODULES . 'pages/' . $current_page_base . '/main_template_vars.php')) {
$body_code = DIR_WS_MODULES . 'pages/' . $current_page_base . '/main_template_vars.php';
} else {
$body_code = $template->get_template_dir('tpl_' . preg_replace('/.php/', '',$_GET['main_page']) . '_default.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_' . $_GET['main_page'] . '_default.php';
}
in includes/templates/template_default/common/main_template_vars.php
by replacing that code with
Code:
if (file_exists(DIR_WS_MODULES. $template_dir .'/pages/' .$current_page_base . '/main_template_vars.php')) {
$body_code = DIR_WS_MODULES. $template_dir .'/pages/' .$current_page_base . '/main_template_vars.php';
} elseif (file_exists(DIR_WS_MODULES . 'pages/' . $current_page_base . '/main_template_vars.php')) {
$body_code = DIR_WS_MODULES . 'pages/' . $current_page_base . '/main_template_vars.php';
} else {
$body_code = $template->get_template_dir('tpl_' . preg_replace('/.php/', '',$_GET['main_page']) . '_default.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_' . $_GET['main_page'] . '_default.php';
}
it works for me.
I haven't tested it on other 'main_template_vars.php' files but this might answer this question
http://www.zen-cart.com/forum/showthread.php?t=67898
Bookmarks