Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / How to Edit Classic Template?

How to Edit Classic Template?

Views: 606

Results 1 to 2 of 2
12 Mar 2012, 5:44 PM
#1
kobra8 avatar

kobra8

Zen Follower

Join Date:
Mar 2009
Location:
Serbia
Posts:
350
Plugin Contributions:
0

How to Edit Classic Template?

Hi ZC user, I nead some tip of how to edit Templates. If some can help it will by great :smile:

Whan I install ZC I start to install plugin, and I install a loot plugin and edit Classic Templates.
Shop is on http://kavanali.com
My shop is on Serbian language.
Shop uses only the one, left column and site is fixed to 1000px

How can I edit Classic Templates and make Cassic Templates nice and modern Templates?

I think that are not worth it to buy Templates becouse for so many things need to edit, the plugin and language. Than is better to edit classic templates to by like modern Templates.

Thanks on any help :blush:

12 Mar 2012, 6:25 PM
#2
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: How to Edit Classic Template?

There are free templates for Zen Cart. You can see them at http://(sorry, site offline)/. They may help you understand the override system and give you a head start on creating the look you want.

This list is a bit outdated, but it'll give you an idea where to start to create a very basic custom template (you can build from there):

  • includes/languages/YOUR_TEMPLATE/english.php
  • includes/languages/english/YOUR_TEMPLATE/index.php
  • includes/languages/english/YOUR_TEMPLATE/meta_tags.php
  • includes/languages/english/YOUR_TEMPLATE/header.php (to change the logo and header text)
  • includes/templates/YOUR_TEMPLATE/template_info.php
  • includes/templates/YOUR_TEMPLATE/common/tpl_header.php <- may not be necessary
  • includes/templates/YOUR_TEMPLATE/common/tpl_footer.php <- may not be necessary
  • includes/templates/YOUR_TEMPLATE/images/logo.gif (or .jpg or .png)
  • includes/templates/YOUR_TEMPLATE/css/stylesheet.css

Anywhere you see a /classic/ folder, you can create a folder for your custom template. You can copy the necessary files from either the /classic/ folder, the /template_default/ folder or the parent folder.

Edit includes/templates/YOUR_TEMPLATE/template_info.php to give your template identifying information so you'll recognize it in the admin under tools->template selection.

Note: if you've changed the height of the logo in header.php, you may need to change it in your stylesheet as well:

#logoWrapper{
background-image: url(../images/header_bg.jpg);
background-repeat: repeat-x;
background-color: #ffffff;
height:75px; <-adjust this line if necessary
}