Page 3 of 6 FirstFirst 12345 ... LastLast
Results 21 to 30 of 58
  1. #21
    Join Date
    Aug 2005
    Posts
    26,067
    Plugin Contributions
    9

    Default Re: template switch

    Quote Originally Posted by navido
    In which path is this templates.txt file uploaded to?
    Just as the read me states
    1) edit images/templates.txt; put in your templates for switching
    Zen-Venom Get Bitten
    Get Your Business Found

  2. #22
    Join Date
    Sep 2008
    Posts
    176
    Plugin Contributions
    0

    Default Re: template switch

    1) edit images/templates.txt; put in your templates for switching
    Thanks for answering, but i still dont get it, in your templates for switching it says..but where in your template? in what folder?

  3. #23
    Join Date
    Apr 2004
    Location
    vienna
    Posts
    201
    Plugin Contributions
    9

    Default Re: template switch

    Quote Originally Posted by navido View Post
    Thanks for answering, but i still dont get it, in your templates for switching it says..but where in your template? in what folder?
    edit SHOP_ROOT/images/templates.txt file
    or goto admin > tools > templateSwitcher & the file will be generated ( if you have write permissions fot the images-folder )

  4. #24
    Join Date
    Sep 2008
    Posts
    176
    Plugin Contributions
    0

    Default Re: template switch

    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??

  5. #25
    Join Date
    Sep 2008
    Posts
    176
    Plugin Contributions
    0

    Default Re: template switch

    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?

  6. #26
    Join Date
    Sep 2008
    Posts
    176
    Plugin Contributions
    0

    Default Re: template switch

    Anyone please?

  7. #27
    Join Date
    Jun 2008
    Location
    Fort Carson, CO
    Posts
    85
    Plugin Contributions
    10

    Default Re: template switch

    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:

    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)); 
          }
      } 
    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'];
      } 
    the only problem with this solution is that the chosen template will not be stored in a cookie for future visits.

    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.

  8. #28
    Join Date
    Aug 2005
    Location
    San Juan, Puerto Rico
    Posts
    1,260
    Plugin Contributions
    7

    Default Re: template switch addon

    Would this work with different size of header, columns, and boxes if they are fixed?
    IDEAS Girl
    IDEAS Creative Group
    = Your image... our business!
    My contributions: SophyBlue / Sophy Blue-Grey / Mistik / The Bookshelf / Dynamic Sideboxes

  9. #29
    Join Date
    Nov 2009
    Posts
    6
    Plugin Contributions
    0

    Default Re: template switch addon

    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?

  10. #30
    Join Date
    Apr 2004
    Location
    vienna
    Posts
    201
    Plugin Contributions
    9

    Default Re: template switch addon

    Quote Originally Posted by MyDigitalFixation View Post
    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_BUTTONS
    Code:
    UPDATE configuration SET configuration_key = 'IMAGE_USE_CSS_BUTTONS_' WHERE configuration_key = 'IMAGE_USE_CSS_BUTTONS' LIMIT 1;
    this files make use from the constant IMAGE_USE_CSS_BUTTONS
    Code:
    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)
    you have now to create or modify the file includes\templates\YOUR_TEMPLATE\common\main_template_vars.php

    add a line with
    Code:
    define('IMAGE_USE_CSS_BUTTONS', 'no')
    you can see it
    - 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

 

 
Page 3 of 6 FirstFirst 12345 ... LastLast

Similar Threads

  1. URGENT HELP ME PLEASE!!!! Site broke after template switch?
    By linnx in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 6 Jun 2009, 06:42 AM
  2. Template switch -- and now i get no analitics data?
    By lieven23 in forum Addon Templates
    Replies: 0
    Last Post: 2 May 2009, 01:37 PM
  3. Cant switch side search box off? [Apple Zen Template]
    By backinthesaddle in forum Addon Templates
    Replies: 2
    Last Post: 6 Mar 2009, 09:04 PM
  4. Switch from English to Spanish changes Template - why?
    By Mevaser in forum Addon Language Packs
    Replies: 2
    Last Post: 24 Aug 2007, 08:39 PM
  5. Fatal Error in UK Switch/Maesto cc_uk addon
    By hutting in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 16 May 2006, 10:02 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •