Page 1 of 2 12 LastLast
Results 1 to 10 of 20
  1. #1
    Join Date
    Jun 2009
    Location
    Des Moines, Iowa USA
    Posts
    609
    Plugin Contributions
    0

    Default template_default

    i attempting to create a new temple I believe I have deleted the default templete - still have the classic but I can not get it to activate the custome template I have created.

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

    Default Re: template_default

    Restore the template_default directories.
    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

  3. #3
    Join Date
    Jun 2009
    Location
    Des Moines, Iowa USA
    Posts
    609
    Plugin Contributions
    0

    Default Re: template_default

    ok I have restored my templates_default

    Still can not get it to show up in the template selection dropdown box
    Suggestion? TIA

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

    Default Re: template_default

    Does your custom template have a includes/templates/YOUR_TEMPLATE/template_info.php file? That's what identifies your custom template to Zen Cart and lists it in the pull down in the admin.
    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
    Jun 2009
    Location
    Des Moines, Iowa USA
    Posts
    609
    Plugin Contributions
    0

    Default Re: template_default

    yes I made the following adjustments as instructed in the manual

    /**
    * Main CSS Stylesheet
    *
    * @package templateSystem
    * @copyright Copyright 2009 Stitch 'n Frame
    * @copyright Portions Copyright 2009 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: stylesheet.css 5952 2007-03-03 06:18:46Z drbyte $
    */

  6. #6
    Join Date
    Jun 2009
    Location
    Des Moines, Iowa USA
    Posts
    609
    Plugin Contributions
    0

    Default Re: template_default

    this is what my template includes:

    css
    images
    template_info.php

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

    Default Re: template_default

    So you have the following structure (where YOUR_TEMPLATE represents the name you've given your custom template):

    • includes/templates/YOUR_TEMPLATE/template_info.php
    • includes/templates/YOUR_TEMPLATE/images/
    • includes/templates/YOUR_TEMPLATE/css/stylesheet.css
    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

  8. #8
    Join Date
    Jun 2009
    Location
    Des Moines, Iowa USA
    Posts
    609
    Plugin Contributions
    0

    Default Re: template_default

    yes that is what is in the folder - tha is all that is in that folder - which is my understanding that anything in that folder will override the other folder and if it is not then it will not.

    But I have continued to try things and I can not get the template selection to recognise the my shop template in the drop down.

  9. #9
    Join Date
    Oct 2006
    Posts
    624
    Plugin Contributions
    0

    Default Re: template_default

    Sorry for asking again but I'd like to confirm some things.

    Assuming your custom template name is 'magic', you have something similar to the following directory structure in your includes directory?

    • includes/templates/magic/template_info.php
    • includes/templates/magic/images/
    • includes/templates/magic/css/stylesheet.css

    The contents of your "includes/templates/magic/template_info.php" is something like that?

    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 'Magic Template';
    $template_version 'Version 1.3.8a';
    $template_author 'stitchnkitty';
    $template_description 'My customized template';
    $template_screenshot 'scr_template_default.jpg';
    ?>
    Assuming everything's set up that way, what do you see on your Tools > Template Selection screen? Could you provide a screen shot like that shown on pg 273, step 1 of the book?

    Thanks.
    Goh Koon Hoek, author of "e-Start Your Web Store with Zen Cart".
    Printed book: www.lulu.com/content/10576284
    Electronic book and Errata: www.cucumbermedia.com/store

  10. #10
    Join Date
    Jun 2009
    Location
    Des Moines, Iowa USA
    Posts
    609
    Plugin Contributions
    0

    Default Re: template_default

    Hi Canopy
    I have pretty much exactly like that!
    here is my php in template_info.php

    I know that every little thing when editing matters so I have been careful not to eleminate ' or ; or anything like that. I dont htink I have.

    <?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 = 'Stitchnframe classic';
    $template_version = 'Version 1.0.0';
    $template_author = 'Vicki Cheri 2009';
    $template_description = 'This template set is designed to be a store front';
    $template_screenshot = 'scr_template_default.jpg';
    ?>

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. template_default
    By wingc3 in forum Upgrading from 1.3.x to 1.3.9
    Replies: 13
    Last Post: 30 Sep 2010, 09:26 PM
  2. Confused about template_default
    By Alex123 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 20 Jun 2008, 01:34 PM
  3. Need template_default file
    By coucho in forum General Questions
    Replies: 7
    Last Post: 10 Jan 2008, 09:43 PM
  4. Converting to Template_Default
    By ZZZZZeeeennn in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 31 May 2006, 08:04 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