Specials page
From Zen Cart(tm) Wiki
The Specials page is explained here.
Configuration options
This table below shows most of the configuration options including language text for the Specials 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
| Name | Default value | How to change |
|---|---|---|
| PREV_NEXT_BAR_LOCATION | 3 | Change this in ADMIN Configuration --> Product Listing --> Prev/Next Split Page Navigation (1-top, 2-bottom, 3-both). Sets the location of the Prev/Next Split Page Navigation |
| TEXT_DISPLAY_NUMBER_OF_SPECIALS | 'Displaying %d to %d (of %d specials)' | Edit language file english.php near line 267 in the directory includes\languages\YOUR_TEMPLATE |
| TEXT_RESULT_PAGE | Edit language file english.php near line 262 in the directory includes\languages\YOUR_TEMPLATE | |
| MAX_DISPLAY_PAGE_LINKS | 5 | Change this in ADMIN Configuration --> Maximum Values --> Prev/Next Navigation Page Links. Number of 'number' links use for page-sets |
| BUTTON_IMAGE_BACK | File:Button back.gif | Edit button image file 'button_back.gif' in the directory includes\templates\YOUR_TEMPLATE\buttons\english\ with a graphic tool |
| BUTTON_BACK_ALT | 'Back' | Edit button names file button_names.php near line 67 in the directory includes\languages\english\YOUR_TEMPLATE. Note: This text will be visible when your hover over this button. |
| NAVBAR_TITLE | 'Specials' | Edit language file specials.php near line 23 in the directory includes\languages\english\YOUR_TEMPLATE |
| MAX_DISPLAY_SPECIAL_PRODUCTS | 9 | Change this in ADMIN Configuration --> Maximum Values --> Products on Special . Number of products on special to display |
| SHOW_PRODUCT_INFO_COLUMNS_SPECIALS_PRODUCTS | 3 | Change this in ADMIN Configuration --> Index Listing --> Special Products Columns per Row. Special Products Columns per Row |
| SMALL_IMAGE_WIDTH | 100 | Change this in ADMIN Configuration --> Images --> Small Image Width. The pixel width of small images |
| SMALL_IMAGE_HEIGHT | 80 | Change this in ADMIN Configuration --> Images --> Small Image Height. The pixel height of small images |
NOTE: This table is made by looking for used defines in the following files:
- includes\modules\pages\specials\header_php.php
- includes\modules\pages\specials\main_template_vars.php
- includes\templates\template_default\templates\tpl_specials_default.php
Defines (configuration options) are defined in:
- configuration table in the database
- includes\languages\english.php
- includes\languages\english\button_names.php
- includes\languages\english\specials.php
Product type configuration option are ignored Shipping, payment and Order Total module configuration option are also ignored