Difference between revisions of "Index page"

From Zen Cart(tm) Wiki
Jump to: navigation, search
(removing TEXT_MAIN and TEXT_INFORMATION)
Line 1: Line 1:
The '''Index page''' is the homepage of your ZenCart store. When a customer browse to [http://www.zen-cart.com/wiki/index.php?title=Index_page www.yourshop.com] he will see this page.
 
  
 
 
 
 
== Configuration options ==
 
This table below shows most of the configuration options including language text for the ''Index page''.
 
It is based on a ZenCart 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]]
 
 
 
{| border="1" style="border-collapse:collapse;border:1px solid silver;width:100%;"
 
|- style="background:Lightblue;text-align:left;"
 
! | Name 
 
! | Default value 
 
! | How to change 
 
|-
 
| HEADING_TITLE 
 
|  'Available Products'<br /><b>OR</b><br /> 'Congratulations! You have successfully installed your Zen Cart� E-Commerce Solution.'<br /><b>OR</b><br /> 'Congratulations! You have successfully installed your Zen Cart� E-Commerce Solution.' 
 
| Edit language file<b> index.php</b> near line 32<b> OR </b>52<b> OR </b>56 in the directory ''includes\languages\english\YOUR_TEMPLATE'' 
 
|-
 
| SHOW_CUSTOMER_GREETING 
 
| 1 
 
| Change this in ADMIN<br /><b>Configuration --> Layout Settings --> [[Admin - Configuration - Layout Settings#Customer Greeting - Show on Index Page|Customer Greeting - Show on Index Page]].</b><br /><br />Always Show Customer Greeting on Index?<br />0= off<br />1= on 
 
|-
 
| DEFINE_MAIN_PAGE_STATUS 
 
| 1 
 
| Change this in ADMIN<br /><b>Configuration --> Define Page Status --> [[Admin - Configuration - Define Page Status#Define Main Page Status|Define Main Page Status]].</b><br /><br />Enable the Defined Main Page Link/Text?<br />0= Link ON, Define Text OFF<br />1= Link ON, Define Text ON<br />2= Link OFF, Define Text ON<br />3= Link OFF, Define Text OFF 
 
|-
 
| FILENAME_DEFINE_MAIN_PAGE 
 
| <p><strong>Main Page Sample Text ...</strong></p><br /><p>This section of text is from the Define Pages Editor located under Tools in the Admin.</p><br /><p>To remove this section of the text, delete it from the Define Pages Editor.</p> 
 
| Edit define page file<b> define_main_page</b> <br />(Tools --> [[Admin - Tools - Define Pages Editor|Define Pages Editor]]) 
 
|-
 
| SKIP_SINGLE_PRODUCT_CATEGORIES 
 
| True 
 
| Change this in ADMIN<br /><b>Configuration --> Layout Settings --> [[Admin - Configuration - Layout Settings#Skip 1-prod Categories|Skip 1-prod Categories]].</b><br /><br />Skip single-product categories<br />If this option is set to True, then if the customer clicks on a link to a category which only contains a single item, then Zen Cart will take them directly to that product-page, rather than present them with another link to click in order to see the product.<br />Default: True 
 
|-
 
| SHOW_PRODUCT_INFO_ALL_PRODUCTS 
 
| 1 
 
| Change this in ADMIN<br /><b>Configuration --> Index Listing --> [[Admin - Configuration - Index Listing#Filter Product Listing for Current Top Level Category When Enabled|Filter Product Listing for Current Top Level Category When Enabled]].</b><br /><br />Filter the products when Product Listing is enabled for current Main Category or show products from all categories?<br />0= Filter Off 1=Filter On 
 
|-
 
| PRODUCT_LIST_MODEL 
 
| 0 
 
| Change this in ADMIN<br /><b>Configuration --> Product Listing --> [[Admin - Configuration - Product Listing#Display Product Model|Display Product Model]].</b><br /><br />Do you want to display the Product Model? 
 
|-
 
| PRODUCT_LIST_NAME 
 
| 2 
 
| Change this in ADMIN<br /><b>Configuration --> Product Listing --> [[Admin - Configuration - Product Listing#Display Product Name|Display Product Name]].</b><br /><br />Do you want to display the Product Name? 
 
|-
 
| PRODUCT_LIST_MANUFACTURER 
 
| 0 
 
| Change this in ADMIN<br /><b>Configuration --> Product Listing --> [[Admin - Configuration - Product Listing#Display Product Manufacturer Name|Display Product Manufacturer Name]].</b><br /><br />Do you want to display the Product Manufacturer Name? 
 
|-
 
| PRODUCT_LIST_PRICE 
 
| 3 
 
| Change this in ADMIN<br /><b>Configuration --> Product Listing --> [[Admin - Configuration - Product Listing#Display Product Price/Add to Cart|Display Product Price/Add to Cart]].</b><br /><br />Do you want to display the Product Price/Add to Cart 
 
|-
 
| PRODUCT_LIST_QUANTITY 
 
| 0 
 
| Change this in ADMIN<br /><b>Configuration --> Product Listing --> [[Admin - Configuration - Product Listing#Display Product Quantity|Display Product Quantity]].</b><br /><br />Do you want to display the Product Quantity? 
 
|-
 
| PRODUCT_LIST_WEIGHT 
 
| 0 
 
| Change this in ADMIN<br /><b>Configuration --> Product Listing --> [[Admin - Configuration - Product Listing#Display Product Weight|Display Product Weight]].</b><br /><br />Do you want to display the Product Weight? 
 
|-
 
| PRODUCT_LIST_IMAGE 
 
| 1 
 
| Change this in ADMIN<br /><b>Configuration --> Product Listing --> [[Admin - Configuration - Product Listing#Display Product Image|Display Product Image]].</b><br /><br />Do you want to display the Product Image? 
 
|}
 
 
NOTE:
 
This table is made by looking for used defines in the following files:
 
* includes\modules\pages\index\header_php.php
 
* includes\modules\pages\index\main_template_vars.php
 
* includes\templates\template_default\templates\tpl_index_default.php
 
Defines (configuration options) are defined in:
 
* configuration table in the database
 
* includes\filenames.php
 
* includes\languages\english\index.php
 
Product type configuration option are ignored.
 
Shipping, payment and Order Total module configuration option are also ignored.
 
The default ''classic'' template is also ignored.
 

Revision as of 00:37, 5 December 2007