Header

From Zen Cart(tm) Wiki
Jump to: navigation, search

The Header is explained here.

In Zen Cart™ 1.3 the header has the following structure. However through the magic of CSS, the different blocks can be arranged in a number of different ways. For some layouts it may be necessary to re-order these blocks in the source, but this is easy, simply copy from the <!-- bof --> begining of field comment tag to the <!-- eof --> end of field comment tag, and paste this where you want it.

</tr>
Main menu
  Search box
Logo Taglineoptional category tabs menu


Configuration options

This table below shows most of the configuration options including language text for the Header. It is based on a Zen Cart™ version 1.3.0. Before editing files copy the original file (if not done before) to YOUR_TEMPLATE directory.

Copy image and button files

  • from includes/templates/template_default/images/..... to includes/templates/YOUR_TEMPLATE/images/.....
  • from includes/templates/template_default/buttons/..... to includes/templates/YOUR_TEMPLATE/buttons/.....

Copy language files

  • from includes/language/..... to includes/language/YOUR_TEMPLATE/.....
  • from includes/language/english/..... to includes/language/english/YOUR_TEMPLATE/.....

See also: Customisation - Templates | How do I change the Header Image? | How do I add and position a new logo? | How do I Change the Sales message or Tagline?


Name Default value How to change
SHOW_BANNERS_GROUP_SET1 Change this in ADMIN
Configuration --> Layout Settings --> Banner Display Groups - Header Position 1.

The Banner Display Groups can be from 1 Banner Group or Multiple Banner Groups

For Multiple Banner Groups enter the Banner Group Name separated by a colon :

Example: Wide-Banners:SideBox-Banners

What Banner Group(s) do you want to use in the Header Position 1?
Leave blank for none
HEADER_TITLE_CATALOG 'Home' Edit language file header.php near line 16 in the directory includes\languages\english\YOUR_TEMPLATE\
HEADER_TITLE_LOGOFF 'Log Out' Edit language file header.php near line 17 in the directory includes\languages\english\YOUR_TEMPLATE\
HEADER_TITLE_MY_ACCOUNT 'My Account' Edit language file header.php near line 12 in the directory includes\languages\english\YOUR_TEMPLATE\
STORE_STATUS 0 Change this in ADMIN
Configuration --> My Store --> Store Status.

What is your Store Status
0= Normal Store
1= Showcase no prices
2= Showcase with prices
HEADER_TITLE_LOGIN 'Log In' Edit language file header.php near line 18 in the directory includes\languages\english\YOUR_TEMPLATE\
HEADER_TITLE_CART_CONTENTS 'Shopping Cart' Edit language file header.php near line 13 in the directory includes\languages\english\YOUR_TEMPLATE\
HEADER_TITLE_CHECKOUT 'Checkout' Edit language file header.php near line 14 in the directory includes\languages\english\YOUR_TEMPLATE\
HEADER_LOGO_IMAGE 'logo.gif' Edit language file header.php near line 25 in the directory includes\languages\english\YOUR_TEMPLATE\
HEADER_ALT_TEXT 'Powered by Zen Cart :: The Art of E-Commerce' Edit language file header.php near line 21 in the directory includes\languages\english\YOUR_TEMPLATE\
HEADER_SALES_TEXT 'TagLine Here' Edit language file header.php near line 22 in the directory includes\languages\english\YOUR_TEMPLATE\
SHOW_BANNERS_GROUP_SET2 Change this in ADMIN
Configuration --> Layout Settings --> Banner Display Groups - Header Position 2.

The Banner Display Groups can be from 1 Banner Group or Multiple Banner Groups

For Multiple Banner Groups enter the Banner Group Name separated by a colon :

Example: Wide-Banners:SideBox-Banners

What Banner Group(s) do you want to use in the Header Position 2?
Leave blank for none
CATEGORIES_TABS_STATUS 1 Change this in ADMIN
Configuration --> Layout Settings --> Categories-Tabs Menu ON/OFF.

Categories-Tabs
This enables the display of your store's categories as a menu across the top of your header. There are many potential creative uses for this.
0= Hide Categories Tabs
1= Show Categories Tabs
EZPAGES_STATUS_HEADER 1 Change this in ADMIN
Configuration --> EZ-Pages Settings --> EZ-Pages Display Status - HeaderBar.

Display of EZ-Pages content can be Globally enabled/disabled for the Header Bar
0 = Off
1 = On
2= On ADMIN IP ONLY located in Website Maintenance
NOTE: Warning only shows to the Admin and not to the public
EXCLUDE_ADMIN_IP_FOR_MAINTENANCE your IP (ADMIN) Change this in ADMIN
Configuration --> Website Maintenance --> Down For Maintenance (exclude this IP-Address).

This IP Address is able to access the website while it is Down For Maintenance (like webmaster)
To enter multiple IP Addresses, separate with a comma. If you do not know your IP Address, check in the Footer of your Shop.

NOTE: This table is made by looking for used defines in the following files:

  • \includes\templates\template_default\common\tpl_header.php
  • \includes\templates\template_default\common\tpl_main_page.php (header part)

Defines (configuration options) are defined in:

  • configuration table in the database
  • includes\filenames.php
  • includes\languages\english\header.php

Product type configuration option are ignored. Shipping, payment and Order Total module configuration option are also ignored. Tpl_module files are ignored The default classic template is also ignored. Functions in tpl_ files are ignored.