| View previous topic :: View next topic |
| Author |
Message |
iceman3479
Joined: 03 Apr 2006 Posts: 1
|
Posted: Mon Apr 03, 2006 6:23 pm Post subject: Custom Templates Template |
|
|
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 ). Any advice will be helpful. Thank you for your time.
Chris Caspanello |
|
| Back to top |
|
 |
immunecology
Joined: 09 May 2006 Posts: 12 Location: Arizona
|
Posted: Mon Jun 05, 2006 3:03 pm Post subject: What is the simple diagram of what code renders a Page layu? |
|
|
| 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 |
|
 |
immunecology
Joined: 09 May 2006 Posts: 12 Location: Arizona
|
Posted: Mon Jun 05, 2006 4:25 pm Post subject: Why bother tlook at the forest when you can study each tree? |
|
|
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 |
|
 |
immunecology
Joined: 09 May 2006 Posts: 12 Location: Arizona
|
Posted: Mon Jun 05, 2006 4:43 pm Post subject: |
|
|
| Thanks |
|
| Back to top |
|
 |
|