Results 1 to 6 of 6
  1. #1
    Join Date
    Jul 2007
    Posts
    12
    Plugin Contributions
    0

    help question Stupid question re templates

    This would seem to be an obvious question, easily answered, but I cannot find an answer in the wiki, the docs, the faqs, the knowledgebase or the forum (or my searching is terrible - draw your own conclusions!!).

    Here goes...

    If I download a template for Zen cart how do I get it to appear in the list in admin/tools/template selection

    I am using the latest zen cart. The template I downloaded is the free template from template monster (pithily named TN001) The template is uploaded into includes/templates (so I now have classic,template_default and YOUR_TEMPLATE as well as TN001 folders in that directory). I have tried moving TN001 to YOUR_TEMPLATE and to YOUR_TEMPLATE/templates, but it will not show up in Admin/Tools/Template Selection. The only template that shows up is classic.

    Anyone tell me what I'm doing wrong?

    Iain

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

    Default Re: Stupid question re templates

    First- before doing anything - search for Template Monster on the forum.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  3. #3
    Join Date
    Jan 2004
    Posts
    66,445
    Plugin Contributions
    81

    Default Re: Stupid question re templates

    ... and then when you go to build your own template, this FAQ may help:
    https://www.zen-cart.com/tutorials/i...hp?article=142

    ... along with these:
    How do I setup template overrides?
    https://www.zen-cart.com/tutorials/index.php?article=36

    Template files- what are they and how are they used?
    https://www.zen-cart.com/tutorials/i...hp?article=232

    The override system really simplified
    https://www.zen-cart.com/tutorials/i...hp?article=143

    Understanding the override system
    https://www.zen-cart.com/tutorials/i...hp?article=230
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: Stupid question re templates

    Most templates require that files be uploaded to various directories, not just one.

    To create a very basic custom template (you can build from there), you need:
    • includes/languages/YOUR_TEMPLATE/english.php
    • includes/languages/english/YOUR_TEMPLATE/index.php
    • includes/languages/english/YOUR_TEMPLATE/header.php (to change the logo)
    • includes/templates/YOUR_TEMPLATE/template_info.php
    • includes/templates/YOUR_TEMPLATE/common/tpl_header.php
    • includes/templates/YOUR_TEMPLATE/common/tpl_footer.php
    • includes/templates/YOUR_TEMPLATE/images/logo.gif
    • includes/templates/YOUR_TEMPLATE/css/stylesheet.css


    Any where you see a /classic/ folder, you can create a folder for your custom template. Copy the files you need from /classic/, /template_default/ or the parent directory.

    Edit includes/templates/YOUR_TEMPLATE/template_info.php to give your template identifying info (you'll understand when you open the file).

    Always use a text editor like Notepad or Crimson Editor to edit php files.

    Once you've built your template, go into your admin under tools->template selection and select it from the pull down menu.
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  5. #5
    Join Date
    Jul 2007
    Posts
    12
    Plugin Contributions
    0

    Default Re: Stupid question re templates

    Thanks for your help guys.

    I'm gathering the following;-

    1) Template monster templates are worse then useless. Shooting yourself repeatedy in the foot is preferable.

    2) Zen tempates don't work the same way as most templates (most templateable php software allows you to drop a new template in a directory and then select it). Haven't really found an explanation for the template selection tool yet.

    Iain

  6. #6
    Join Date
    Jan 2004
    Posts
    66,445
    Plugin Contributions
    81

    Default Re: Stupid question re templates

    Quote Originally Posted by idcowden View Post
    (most templateable php software allows you to drop a new template in a directory and then select it).
    That is indeed how a Zen Cart template can work.

    - upload the files to your site
    - open your admin area
    - go to Tools->Template Select
    - click Edit, choose your new template. Click save.
    - go to the storefront and refresh your browser
    - *poof* it's new.
    - customize the placement of your sideboxes to suit your tastes via the Layout Boxes Controller in Admin->Tools menu.

    If a given template hasn't been designed properly, there may be glitches in that process.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. Stupid Question
    By Maldoror in forum Basic Configuration
    Replies: 2
    Last Post: 7 Jun 2010, 01:10 PM
  2. stupid question...
    By c-howdy in forum General Questions
    Replies: 2
    Last Post: 8 Dec 2007, 02:29 AM
  3. Stupid question
    By dareu2forget in forum General Questions
    Replies: 2
    Last Post: 7 Dec 2006, 05:53 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