Results 1 to 9 of 9
  1. #1
    Join Date
    Jul 2006
    Posts
    125
    Plugin Contributions
    0

    Default I don't want to make global changes...

    A question regarding the CSS. I want to edit the tpl_header.php, but I only really want it to affect this skin. Is there anyway that I can copy all of the tpl_ files into a folder within the skin folder, and get the CSS to call to these instead.

    This is beacuse I am currently designing a few skins and I don't want the changes that I make to this tempalte to affect the other templates.

  2. #2
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: I don't want to make global changes...

    If you structure your overrides correctly, they will only affect the template you have active.

    http://www.zen-cart.com/forum/faq.ph...#faq_overrides

  3. #3
    Join Date
    Jul 2006
    Posts
    125
    Plugin Contributions
    0

    Default Re: I don't want to make global changes...

    Ok, well I read the FAQ, is it really just as simple to make a folder in my template called templates with the edited tpl files in. Surely I have to tell it somewhere to call to this one and not the existing tpl files? Maybe I missed something in the FAQ...

  4. #4
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: I don't want to make global changes...

    blue,

    if you want to have the tpl_header for this skin changed

    follow the steps to create a new template.

    inside the includes/template/YOUR TEMPLATE create a folder named common

    now in this folder place a copy of the tpl_header.php

    remember to turn on your new template in the admin-> tools section

    also make sure that you are not starting with the classic template as a base for your new template
    Zen cart PCI compliant Hosting

  5. #5
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: I don't want to make global changes...

    Nope- it is as simple as that- it is Zen Cart Magic! (as long as you use the correct directory structure)

  6. #6
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: I don't want to make global changes...

    To illustrate: One can have many templates that can be choosen from in the admin the base template directory/folder structure would look some thing like this where each folder would be a different templatethey would be in alpha order)

    Code:
    /templates
       /classic
       /template_default
       /spring
       /summer
       /fall
       /winter
       /red
       /any_other
    and in side each one of these there would be a template_info.php file edited to correspond to the template name, a css folder with the css for this template and so forth. All things pertinent to this template that are at this root folder level.

  7. #7
    Join Date
    Jul 2006
    Posts
    125
    Plugin Contributions
    0

    Default Re: I don't want to make global changes...

    So If I want to have a different header on one template I would use something like this...


    templates
    /new_template
    /common
    /tpl_header.php

    Is that right?

  8. #8
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: I don't want to make global changes...

    Right
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  9. #9
    Join Date
    Jul 2006
    Posts
    125
    Plugin Contributions
    0

    Default Re: I don't want to make global changes...

    Then the Zen Cart templating system is very impressive. Now all I have to do is work out how to edit the tpl_header.php and I'll be fine. lol

    Seriously though, thank you guys very much for your help, its very nice to have such great support. When my next student loan comes through I'll definately be visiting the donate page =)

 

 

Similar Threads

  1. I want to make changes in customer table
    By vishalon in forum General Questions
    Replies: 0
    Last Post: 1 Feb 2010, 03:56 PM
  2. Replies: 2
    Last Post: 25 Sep 2008, 12:30 PM
  3. global editing changes
    By traders in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 26 Jan 2008, 11:41 PM

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