Index page with categories
From Zen Cart(tm) Wiki
The Index Page with categories is explained here.
Configuration options
This table below shows most of the configuration options including language text for the Index page with categories. 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
| Name | Default value | How to change |
|---|---|---|
| HEADING_TITLE | 'Available Products' OR 'Congratulations! You have successfully installed your Zen Cart� E-Commerce Solution.' OR 'Congratulations! You have successfully installed your Zen Cart� E-Commerce Solution.' | Edit language file index.php near line 32 OR 52 OR 56 in the directory includes\languages\english\YOUR_TEMPLATE |
| SHOW_CUSTOMER_GREETING | 1 | Change this in ADMIN Configuration --> Layout Settings --> Customer Greeting - Show on Index Page. Always Show Customer Greeting on Index? 0= off 1= on |
| DEFINE_MAIN_PAGE_STATUS | 1 | Change this in ADMIN Configuration --> Define Page Status --> Define Main Page Status. Enable the Defined Main Page Link/Text? 0= Link ON, Define Text OFF 1= Link ON, Define Text ON 2= Link OFF, Define Text ON 3= Link OFF, Define Text OFF |
| FILENAME_DEFINE_MAIN_PAGE | Main Page Sample Text ... This section of text is from the Define Pages Editor located under Tools in the Admin. To remove this section of the text, delete it from the Define Pages Editor. | Edit define page file define_main_page (Tools --> Define Pages Editor) |
| SKIP_SINGLE_PRODUCT_CATEGORIES | True | Change this in ADMIN Configuration --> Layout Settings --> Skip 1-prod Categories. Skip single-product categories 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. Default: True |
| SHOW_PRODUCT_INFO_ALL_PRODUCTS | 1 | Change this in ADMIN Configuration --> Index Listing --> Filter Product Listing for Current Top Level Category When Enabled. Filter the products when Product Listing is enabled for current Main Category or show products from all categories? 0= Filter Off 1=Filter On |
| PRODUCT_LIST_MODEL | 0 | Change this in ADMIN Configuration --> Product Listing --> Display Product Model. Do you want to display the Product Model? |
| PRODUCT_LIST_NAME | 2 | Change this in ADMIN Configuration --> Product Listing --> Display Product Name. Do you want to display the Product Name? |
| PRODUCT_LIST_MANUFACTURER | 0 | Change this in ADMIN Configuration --> Product Listing --> Display Product Manufacturer Name. Do you want to display the Product Manufacturer Name? |
| PRODUCT_LIST_PRICE | 3 | Change this in ADMIN Configuration --> Product Listing --> Display Product Price/Add to Cart. Do you want to display the Product Price/Add to Cart |
| PRODUCT_LIST_QUANTITY | 0 | Change this in ADMIN Configuration --> Product Listing --> Display Product Quantity. Do you want to display the Product Quantity? |
| PRODUCT_LIST_WEIGHT | 0 | Change this in ADMIN Configuration --> Product Listing --> Display Product Weight. Do you want to display the Product Weight? |
| PRODUCT_LIST_IMAGE | 1 | Change this in ADMIN Configuration --> Product Listing --> Display Product Image. 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_categories.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.
