Zen Cart Forum Forum Index Zen Cart Forum
The Independent Zen Cart Support Resource
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Zen Cart Store
Custom Templates Template

 
Post new topic   Reply to topic    Zen Cart Forum Forum Index -> Templates/Over-rides
View previous topic :: View next topic  
Author Message
iceman3479



Joined: 03 Apr 2006
Posts: 1

PostPosted: Mon Apr 03, 2006 6:23 pm    Post subject: Custom Templates Template Reply with quote

Hey guys,

First off, I am new to Zen Cart (as well as these forums). I just installed Zen Cart and so far everything works great. Now I am in need to create a custom template. I have an idea in my head, however I don't know which files to modify. Here is a rough idea of the template I want to create.

Code:

+------------------------------------------+
|                                          |
|               Fancy Header               |
|                                          |
+-------------------------------+----------+
|                               |          |
|        Featured               |  Info    |
|           Product             |    Menu  |
|                               |          |
+----------+--------------------+----------+
|          |                    |          |
|  Left    |     Main           |  Right   |
|    Bar   |       Content      |     Bar  |
|          |                    |          |
|          |                    |          |
|          |                    |          |
|          |                    |          |
|          |                    |          |
|          |                    |          |
|          |                    |          |
|          |                    |          |
|          |                    |          |
|          |                    |          |
|          |                    |          |
|          |                    |          |
+----------+--------------------+----------+
|               Fancy Footer               |
+------------------------------------------+


The fancy header would consist of an Adobe ImageReady map with rollovers for certain things, and the featured product would be a simple jpeg for the featured product/sale/etc.

Please let me know where I should start, I am experienced in PHP/MySQL, however I am new to Zen Cart. Also, is there an "API" type document to let me know what all of the define() statements are (without using the Development Kit in the Admin Panel). Designing custom template documents seem to be limited online, anyone have any resources (I did buy this book, but it's in the mail Smile ). Any advice will be helpful. Thank you for your time.

Chris Caspanello
Back to top
View user's profile Send private message
immunecology



Joined: 09 May 2006
Posts: 12
Location: Arizona

PostPosted: Mon Jun 05, 2006 3:03 pm    Post subject: What is the simple diagram of what code renders a Page layu? Reply with quote

Matthew wrote:
Finally, have a look at /includes/templates/template_default/tpl_main_page.php as well as tpl_header.php


The big question remains. What do you do after you have looked at those pages? Modify them? Modify some other page to override them? Where are override pages hidden?

A simple diagram that would take the page layout Chris presented and mapped the directory locations of the pages to modify or where to put over-ride pages to implement each section of his layout would do wonders to make the arcane customization/'template' system more usable by someone who did not write OSCommerce/ZenCart to begin with.

Larry
Back to top
View user's profile Send private message AIM Address
immunecology



Joined: 09 May 2006
Posts: 12
Location: Arizona

PostPosted: Mon Jun 05, 2006 4:25 pm    Post subject: Why bother tlook at the forest when you can study each tree? Reply with quote

Yes.

I can crawl around like an ant with a magnifying glass and reverse engineer the code. Time honored tradition.

Or I could read a map and get right where I am going.

And the question lingers. Do I modify the exact page I am looking at or create some clone of it in some other directory and modify that so that when I upload a new rev of ZenCart, I don's smash all my little mods?

I don't think you get the gestalt of my query.
Back to top
View user's profile Send private message AIM Address
immunecology



Joined: 09 May 2006
Posts: 12
Location: Arizona

PostPosted: Mon Jun 05, 2006 4:43 pm    Post subject: Reply with quote

Thanks
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    Zen Cart Forum Forum Index -> Templates/Over-rides All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Zen Cart Store


Powered by phpBB © 2001, 2005 phpBB Group