Page 3 of 7 FirstFirst 12345 ... LastLast
Results 21 to 30 of 62
  1. #21
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    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

  2. #22
    Join Date
    Sep 2008
    Posts
    220
    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
    198
    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
    220
    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
    220
    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
    220
    Plugin Contributions
    0

    Default Re: template switch

    Anyone please?

  7. #27
    Join Date
    Jun 2008
    Location
    Osprey, Florida
    Posts
    151
    Plugin Contributions
    14

    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,525
    Plugin Contributions
    9

    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
    198
    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 7 FirstFirst 12345 ... LastLast

Similar Threads

  1. v151 Title tag on my template pages missing - cannot switch to default template
    By mrcastle in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 6 Aug 2014, 12:00 AM
  2. Lose my template style when I switch to my URL
    By ak6000 in forum Upgrading to 1.5.x
    Replies: 2
    Last Post: 19 Jun 2012, 04:30 PM
  3. Template overide/switch for one category
    By Davx in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 12 Sep 2011, 06:15 PM
  4. trying to install and switch to another template
    By sdpamperin in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 7 Sep 2009, 09:32 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR