Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2010
    Posts
    105
    Plugin Contributions
    0

    Default Can't get custom template to display - keeps using default

    Hi,

    New here, so TIA for any help!

    I'm setting up a store for a florist, and I've read the tutorials about using custom templates, but can't seem to get them to work.

    Within my includes/languages/ENGLISH folder, I've created a folder called FLOWERS. I copied the index.php file that I found in the /ENGLISH folder to my FLOWERS folder, replaced the 'Congratulations... etc' text with my own message, and saved the new folder and file to the server.

    However it is still using the original index.php file from the ENGLISH folder... what am I doing wrong??

    Thanks,
    J.

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Can't get custom template to display - keeps using default

    Did you actually create the FLOWERS template (including the template_info.php file) and select it in Admin - Tools - Template Selection ?

    Basic idea here:

    https://www.zen-cart.com/tutorials/i...hp?article=142

  3. #3
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Can't get custom template to display - keeps using default

    You need to follow the protocols of creating a custom template...

    1. Open each of these folders in turn, and DRILL down into all sub folders...

    includes/templates

    includes/languages

    includes/modules

    2. Now, you say you want a template called flowers ...

    3. As you drill down (step 1) wherever you see a folder called classic, create a folder called flowers - so that they exist at the same "level" as each other...

    NB: do not use UPPERCASE when naming your template...

    FLOWERS
    .... no
    flowers .... yes

    When you have done that, come back here to read my next post...
    20 years a Zencart User

  4. #4
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Can't get custom template to display - keeps using default

    Steve got there first ... read that tut...

    ... however, I did promise to spell it out a bit more, so here we go.
    20 years a Zencart User

  5. #5
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Can't get custom template to display - keeps using default

    It will help a lot if you have a local copy of the unzipped zencart software, so I am assuming you have a copy of the zencart software on your home (local) computer...

    Use your FTP program...

    In the left FTP frame (local machine), navigate to:

    includes/templates/classic/

    In there you will see:

    |_ css (folder)
    |_ images (folder)
    |_ template_info.php


    In the right ftp frame (remote server), navigate to:

    includes/templates/flowers/ (currently empty)

    Now from the LEFT FTP frame, select all these

    |_ css (folder)
    |_ images (folder)
    |_ template_info.php

    ... and send them to the right frame...

    When done, you will have:

    includes/templates/flowers/
    |_ css
    |_ images
    |_ template_info.php


    From the right ftp frame, open template_info.php for editing.

    As this is an exact copy of the classic template info file, you will now change it to suit your template.

    PHP Code:
    <?php
    /**
     * Template Information File
     *
     * @package templateSystem
     * @copyright Copyright 2003-2006 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: template_info.php 4226 2006-08-24 02:23:25Z drbyte $
     */
    $template_name 'flowers';
    $template_version 'Version 1.3.8';
    $template_author 'your name';
    $template_description 'Your description.';
    $template_screenshot 'if applicable - your screen image';
    ?>
    SAVE the file...

    Now... use the LEFT FTP FRAME to navigate to the original classic folders.

    In the RIGHT FRAME, navigate to all your flowers folders

    (We need to make sure that whatever is contained in the "unused" classic folders, is also in your new flowers folders.)

    So... navigate around, making sure that whatever is in the left frame classic folder, is copied across to your corresponding flowers folder.

    What you have done, basically, is create a CLONE of classic. When you install it, it will look exactly like classic template!

    you will think WHA....??? There's no change!

    ... not until you start customizing it...

    First thing I usually do is put a new LOGO image into the includes/templates/MY-TEMPLATE/images folder...

    This then shows up on the site, so I know that I am using the new template.
    20 years a Zencart User

  6. #6
    Join Date
    Jan 2010
    Posts
    105
    Plugin Contributions
    0

    Default Re: Can't get custom template to display - keeps using default

    Thank you so much guys!

    I had downloaded a template (zen-cart-v1.3.8a-full-fileset-12112007) to my local machine to use on the new site, but I don't actually have all the zencart software downloaded - but I've just now copied the 'includes' folder and all its contents onto my local machine - I guess that's all the the files I need?

    Within the languages, templates and modules folders, I've created a 'flowers' folder everywhere I saw a 'classic' folder, and selected my new flowers template in Admin. It all looked completely different to what I had been seeing, so I then copied all the files from the 'classic' folders (and the 'orange' folder, which is the template I was using) back up onto the server but into the 'flowers' folder instead. That all sound right?

    Aha, I've just refreshed my page and all is looking good!

    Thanks a mil, I'll keep going now and see how I get on - I'm sure I'll be back with plenty of questions (after checking the tutorials first of course! )

    J.

 

 

Similar Threads

  1. v150 Can't get Template Selection to display in admin
    By jspector106 in forum General Questions
    Replies: 11
    Last Post: 1 Jun 2014, 07:05 AM
  2. I want a custom template based on default - how?
    By pcmt in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 18 Oct 2006, 04:49 PM
  3. classic template, default template and custom..
    By zc-newbie in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 13 Aug 2006, 08:52 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