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.
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.
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
ok I have restored my templates_default
Still can not get it to show up in the template selection dropdown box
Suggestion? TIA
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
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 $
*/
this is what my template includes:
css
images
template_info.php
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
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.
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?
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?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';
?>
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
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';
?>