Just as the read me statesOriginally Posted by navido
1) edit images/templates.txt; put in your templates for switching
Just as the read me statesOriginally Posted by navido
1) edit images/templates.txt; put in your templates for switching
Zen-Venom Get Bitten
Thanks for answering, but i still dont get it, in your templates for switching it says..but where in your template? in what folder?1) edit images/templates.txt; put in your templates for switching![]()
Anyone else having problem with this? As one of the users wrote in the beginning of this thread i also get the classic view, and i cannot switch to other templates in my admin
I have 1.3.8a off course, and i have enabled the templateswitch sidebox to "Yes" for all of my templates.
The templates.txt file is put into www/images/
but still no work.
Anyone please??
I deleted the "init_templates.php" from included/init_includes/overrides and now my template is ok and i can switch between the templates in my admin.
But off course the file init_tempaltes.php should not be deleted..is it maybe supposed to be in the " included/init_includes" folder?
Anyone please?![]()
I have a temporary solution that worked for me. Find your file includes\init_includes\overrides\init_templates.php. On that file find the following code on line 41:
and change it to:PHP Code:
$template_dir = 'classic';
if(isset($_GET['template_switch_id'])){
zen_setcookie("zctemplate", $_GET['template_switch_id'], time()+(60*60*24*365));
$template_dir = $_GET['template_switch_id'];
} else {
if(isset($_COOKIE["zctemplate"])){
$template_dir = $_COOKIE["zctemplate"];
zen_setcookie("zctemplate", $_COOKIE["zctemplate"], time()+(60*60*24*365));
}
}
the only problem with this solution is that the chosen template will not be stored in a cookie for future visits.PHP Code:
$template_dir = 'classic';
if(isset($_GET['template_switch_id'])){
zen_setcookie("zctemplate", $_GET['template_switch_id'], time()+(60*60*24*365));
$template_dir = $_GET['template_switch_id'];
}
I have this addon installed in one of my websites and works fine. I installed the same files on a different website and ran into the same problem you did.
If I find a better solution I'll post it here.
Would this work with different size of header, columns, and boxes if they are fixed?
IDEAS Girl
IDEAS Creative Group = Your image... our business!
I installed this mod and now find that the buttons are a little issue. If I set a template to use css buttons then when switching between templates the other templates will also have to use the css buttons. For some templates I would like to have css buttons turned off.
If I have css buttons turned on in admin settings, is there a file I can override on a per template basis to hardcode turning off css buttons?
one way could be to change the database-entry IMAGE_USE_CSS_BUTTONSthis files make use from the constant IMAGE_USE_CSS_BUTTONSCode:UPDATE configuration SET configuration_key = 'IMAGE_USE_CSS_BUTTONS_' WHERE configuration_key = 'IMAGE_USE_CSS_BUTTONS' LIMIT 1;you have now to create or modify the file includes\templates\YOUR_TEMPLATE\common\main_template_vars.phpCode:includes\functions\html_output.php (267:20) includes\functions\html_output.php (293:20) includes\templates\template_default\sideboxes\tpl_search.php (17:18) includes\templates\template_default\sideboxes\tpl_search_header.php (16:18)
add a line withyou can see itCode:define('IMAGE_USE_CSS_BUTTONS', 'no')
- http://demo.zen-cart.at/index.php?ma..._switch_id=css == CSS buttons
http://demo.zen-cart.at/index.php?ma...witch_id=XAJAX == image buttons
Bookmarks