Zen Cheatsheet: Difference between revisions

From SWCP Support Wiki
Jump to navigationJump to search
No edit summary
No edit summary
 
(21 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Summary of where to change things in Zen Cart==
==Summary of where to change things in Zen Cart==
Once you've spent some time with Zen Cart you'll and you
Once you've spent some time with Zen Cart you'll
have an idea of how to change things from the Admin Panel,
have an idea of how to change things from the Admin Panel,
in the templates, and in the override system, if you're
in the templates, and in the override system, if you're
Line 16: Line 16:
! Default
! Default
|-
|-
| Number of items in a row in a category listing
| Email address to send orders to
| Admin Panel
| Admin Panel
| Configuration --> Maxium Values --> Categories to List per Row
| Configuration -> E-Mail Options -> Send Copy of E-Mail Order Confirmations To
| ''username''@swcp.com<br>account where Zen Cart was installed
|-
| Number of items<br>in a row<br>in a category listing
| Admin Panel
| Configuration --> Maximum Values --> Categories to List per Row
| 3
|-
| Number of items<br>in a row<br>in new products listing
| Admin Panel
| Configuration --> Index Listing --> New Products Columns per Row
| 3
| 3
|-
| TagLine/Sales Message
| includes/languages/ENGLISH/CUSTOM/header.php folder<sup>1</sup>
| define('HEADER_SALES_TEXT', 'TagLine Here');
| Tagline Here
|-
| Logo
| upload a new GIF file.
| includes/templates/CUSTOM/images/logo.gif<sup>2</sup>
|
|-
| Logo, size or type
| includes/languages/english/CUSTOM/header.php
| define('HEADER_LOGO_WIDTH', '192px')<br>define('HEADER_LOGO_HEIGHT', '64px')<br>define('HEADER_LOGO_IMAGE', 'logo.gif')
| 192x64px, logo.gif
|-
| Title Bar
| define('TITLE', 'Zen Cart!')<br>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<br>Colors<br>Borders
| Upload new CSS file(s)<sup>3</sup>
| includes/templates/CUSTOM/css/stylesheet.css<sup>2</sup>
|-
| Image sizes for product listings
| Admin Panel
| Configuration --> Images
| Small Image Width/Height<br>Subcatgory Image Width/Height<br>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 Javascript<sup>4</sup>
| Upload new file for tpl_header.php<br>New code in the logowrapper2 div.
| includes/templates/CUSTOM/common/tpl_header.php
| 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>2</sup>CUSTOM is your template name. Read about templates (also the override system).
<sup>3</sup>The css subdirectory may contain as many css files as you'd like, the will all be loaded.
<sup>4</sup>See [http://www.zen-cart.com/forum/showthread.php?t=121164&highlight=adding+javascript+header+section this article] for further insight.

Latest revision as of 12:11, 8 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
Email address to send orders to Admin Panel Configuration -> E-Mail Options -> Send Copy of E-Mail Order Confirmations To username@swcp.com
account where Zen Cart was installed
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.