Zen Cheatsheet: Difference between revisions

From SWCP Support Wiki
Jump to navigationJump to search
Line 62: Line 62:
| Upload new file for tpl_header.php<br>New code in the logowrapper2 div.
| Upload new file for tpl_header.php<br>New code in the logowrapper2 div.
| includes/templates/CUSTOM/common/tpl_header.php
| includes/templates/CUSTOM/common/tpl_header.php
| See includes/templates/template_defaults/common
| See includes/templates/template_default/common
|}
|}
<sup>1</sup>CUSTOM is your template name, ENGLISH is your language (usually english). Read the Zen Cart documentation on the override system.
<sup>1</sup>CUSTOM is your template name, ENGLISH is your language (usually english). Read the Zen Cart documentation on the override system.

Revision as of 16:21, 7 May 2009

Summary of where to change things in Zen Cart

Once you've spent some time with Zen Cart you'll have an idea of how to change things from the Admin Panel, in the templates, and in the override system, if you're like me you forget where you changed a thing. This is a summary of things you might want to change and where to find them. Please read Zen Basics and play around with your installation to get a feel for how templates work, etc before just launching into this page.

Item to Change Method to Change Where it's located Default
Number of items
in a row
in a category listing
Admin Panel Configuration --> Maximum Values --> Categories to List per Row 3
Number of items
in a row
in new products listing
Admin Panel Configuration --> Index Listing --> New Products Columns per Row 3
TagLine/Sales Message includes/languages/ENGLISH/CUSTOM/header.php folder1 define('HEADER_SALES_TEXT', 'TagLine Here'); Tagline Here
Logo upload a new GIF file. includes/templates/CUSTOM/images/logo.gif2
Logo, size or type includes/languages/english/CUSTOM/header.php define('HEADER_LOGO_WIDTH', '192px')
define('HEADER_LOGO_HEIGHT', '64px')
define('HEADER_LOGO_IMAGE', 'logo.gif')
192x64px, logo.gif
Title Bar define('TITLE', 'Zen Cart!')
define('SITE_TAGLINE', 'The Art of E-commerce')
includes/languages/english/CUSTOM/meta_tags.php Zen Cart! The Art of E-commerce
Meta Tags define('CUSTOM_KEYWORDS', 'ecommerce, open source, shop, online shopping') includes/languages/english/CUSTOM/meta_tags.php
Fonts, font sizes
Colors
Borders
Upload new CSS file(s)3 includes/templates/CUSTOM/css/stylesheet.css2
Image sizes for product listings Admin Panel Configuration --> Images Small Image Width/Height
Subcatgory Image Width/Height
Product Info Image Width/Height
Customer header with Javascript Upload new file for tpl_header.php
New code in the logowrapper2 div.
includes/templates/CUSTOM/common/tpl_header.php See includes/templates/template_default/common

1CUSTOM is your template name, ENGLISH is your language (usually english). Read the Zen Cart documentation on the override system.

2CUSTOM is your template name. Read about templates (also the override system).

3The css subdirectory may contain as many css files as you'd like, the will all be loaded.