Difference between revisions of "Header"

From Zen Cart(tm) Wiki
Jump to: navigation, search
m (Reverted edits by Aw8Fpz (Talk); changed back to last version by DrByte)
Line 1: Line 1:
The '''Header''' is explained here.
 
  
In Zen Cart&trade; 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 <code><nowiki><!-- bof --></nowiki></code> begining of field comment tag to the <code><nowiki><!-- eof --></nowiki></code> end of field comment tag, and paste this where you want it.
 
 
<table width="80%" border="1" style="background-color:Cornsilk;border-collapse:collapse;border:1px solid silver;">
 
<tr>
 
<th colspan="4" style="height:30px;">Main menu</th></tr>
 
<tr>
 
<tr>
 
<th colspan="3" style="height:20px;">&nbsp;</th>
 
<th colspan="1" style="height:20px; text-align:right;">Search box</th></tr>
 
<th colspan="2" style="height:50px;">Logo</th>
 
<th colspan="2" style="height:50px;">Tagline</th></tr>
 
<th colspan="4" style="height:30px;">optional category tabs menu</th>
 
</table>
 
 
 
 
== Configuration options ==
 
This table below shows most of the configuration options including language text for the ''Header''.
 
It is based on a Zen Cart&trade; 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]] | [[Top_10_questions#How_do_I_change_the_Header_Image.3F|How do I change the Header Image?]] | [[Top_10_questions#How_do_I_add_and_position_a_new_logo.3F|How do I add and position a new logo?]] | [[Top_10_questions#How_do_I_Change_the_Sales_message_or_Tagline.3F|How do I Change the Sales message or Tagline?]]
 
 
 
{| border="1" style="border-collapse:collapse;border:1px solid silver;width:100%;"
 
|- style="background:Lightblue;text-align:left;"
 
! | Name 
 
! | Default value 
 
! | How to change 
 
|-
 
| SHOW_BANNERS_GROUP_SET1 
 
 
| Change this in ADMIN<br /><b>Configuration --> Layout Settings --> [[Admin - Configuration - Layout Settings#Banner Display Groups - Header Position 1|Banner Display Groups - Header Position 1]].</b><br /><br />The Banner Display Groups can be from 1 Banner Group or Multiple Banner Groups<br /><br />For Multiple Banner Groups enter the Banner Group Name separated by a colon <strong>:</strong><br /><br />Example: Wide-Banners:SideBox-Banners<br /><br />What Banner Group(s) do you want to use in the Header Position 1?<br />Leave blank for none 
 
|-
 
| HEADER_TITLE_CATALOG 
 
|  'Home' 
 
| Edit language file<b> header.php</b> near line 16 in the directory ''includes\languages\english\YOUR_TEMPLATE\'' 
 
|-
 
| HEADER_TITLE_LOGOFF 
 
|  'Log Out' 
 
| Edit language file<b> header.php</b> near line 17 in the directory ''includes\languages\english\YOUR_TEMPLATE\'' 
 
|-
 
| HEADER_TITLE_MY_ACCOUNT 
 
|  'My Account' 
 
| Edit language file<b> header.php</b> near line 12 in the directory ''includes\languages\english\YOUR_TEMPLATE\'' 
 
|-
 
| STORE_STATUS 
 
| 0 
 
| Change this in ADMIN<br /><b>Configuration --> My Store --> [[Admin - Configuration - My Store#Store Status|Store Status]].</b><br /><br />What is your Store Status<br />0= Normal Store<br />1= Showcase no prices<br />2= Showcase with prices 
 
|-
 
| HEADER_TITLE_LOGIN 
 
|  'Log In' 
 
| Edit language file<b> header.php</b> near line 18 in the directory ''includes\languages\english\YOUR_TEMPLATE\'' 
 
|-
 
| HEADER_TITLE_CART_CONTENTS 
 
|  'Shopping Cart' 
 
| Edit language file<b> header.php</b> near line 13 in the directory ''includes\languages\english\YOUR_TEMPLATE\'' 
 
|-
 
| HEADER_TITLE_CHECKOUT 
 
|  'Checkout' 
 
| Edit language file<b> header.php</b> near line 14 in the directory ''includes\languages\english\YOUR_TEMPLATE\'' 
 
|-
 
| HEADER_LOGO_IMAGE 
 
|  'logo.gif' 
 
| Edit language file<b> header.php</b> 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<b> header.php</b> near line 21 in the directory ''includes\languages\english\YOUR_TEMPLATE\'' 
 
|-
 
| HEADER_SALES_TEXT 
 
|  'TagLine Here' 
 
| Edit language file<b> header.php</b> near line 22 in the directory ''includes\languages\english\YOUR_TEMPLATE\'' 
 
|-
 
| SHOW_BANNERS_GROUP_SET2 
 
 
| Change this in ADMIN<br /><b>Configuration --> Layout Settings --> [[Admin - Configuration - Layout Settings#Banner Display Groups - Header Position 2|Banner Display Groups - Header Position 2]].</b><br /><br />The Banner Display Groups can be from 1 Banner Group or Multiple Banner Groups<br /><br />For Multiple Banner Groups enter the Banner Group Name separated by a colon <strong>:</strong><br /><br />Example: Wide-Banners:SideBox-Banners<br /><br />What Banner Group(s) do you want to use in the Header Position 2?<br />Leave blank for none 
 
|-
 
| CATEGORIES_TABS_STATUS 
 
| 1 
 
| Change this in ADMIN<br /><b>Configuration --> Layout Settings --> [[Admin - Configuration - Layout Settings#Categories-Tabs Menu ON/OFF|Categories-Tabs Menu ON/OFF]].</b><br /><br />Categories-Tabs<br />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.<br />0= Hide Categories Tabs<br />1= Show Categories Tabs 
 
|-
 
| EZPAGES_STATUS_HEADER 
 
| 1 
 
| Change this in ADMIN<br /><b>Configuration --> EZ-Pages Settings --> [[Admin - Configuration - EZ-Pages Settings#EZ-Pages Display Status - HeaderBar|EZ-Pages Display Status - HeaderBar]].</b><br /><br />Display of EZ-Pages content can be Globally enabled/disabled for the Header Bar<br />0 = Off<br />1 = On<br />2= On ADMIN IP ONLY located in Website Maintenance<br />NOTE: Warning only shows to the Admin and not to the public 
 
|-
 
| EXCLUDE_ADMIN_IP_FOR_MAINTENANCE 
 
| your IP (ADMIN) 
 
| Change this in ADMIN<br /><b>Configuration --> Website Maintenance --> [[Admin - Configuration - Website Maintenance#Down For Maintenance (exclude this IP-Address)|Down For Maintenance (exclude this IP-Address)]].</b><br /><br />This IP Address is able to access the website while it is Down For Maintenance (like webmaster)<br />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.
 

Revision as of 00:40, 5 December 2007