Zen Cheatsheet

From SWCP Support Wiki
Revision as of 11:05, 8 May 2009 by Jamii (talk | contribs)
Jump to navigationJump to search

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
Remove tiny category image from Product listing Admin Panel Configuration --> Product Listing --> Include Product Listing Sub Categories Image true
Removing the request for customer's age Admin Panel Configuration -> Customer Details -> Date of Birth true
Remove category icon from Product Listing In CSS stylefile .categoryIcon { display: none; }
Customer header with Javascript4 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.

4See this article for further insight.