Difference between revisions of "Featured products page"

From Zen Cart(tm) Wiki
Jump to: navigation, search
m (Reverted edits by Torke (Talk); changed back to last version by Yboy)
Line 1: Line 1:
The '''Featured_products page''' is explained here.
 
  
 
 
 
 
== Configuration options ==
 
This table below shows most of the configuration options including language text for the ''Featured_products 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 
 
|  'Featured Products' 
 
| Edit language file<b> featured_products.php</b> near line 24 in the directory ''includes\languages\english\YOUR_TEMPLATE'' 
 
|-
 
| PRODUCT_FEATURED_LISTING_MULTIPLE_ADD_TO_CART 
 
| 3 
 
| Change this in ADMIN<br /><b>Configuration --> Featured Listing --> [[Admin - Configuration - Featured Listing#Display Multiple Products Qty Box Status and Set Button Location|Display Multiple Products Qty Box Status and Set Button Location]].</b><br /><br />Do you want to display Add Multiple Products Qty Box and Set Button Location?<br />0= off<br />1= Top<br />2= Bottom<br />3= Both 
 
|-
 
| BUTTON_IMAGE_ADD_PRODUCTS_TO_CART 
 
| [[Image:button_add_selected.gif]] 
 
| Edit button image file<b> 'button_add_selected.gif'</b> in the directory ''includes\templates\YOUR_TEMPLATE\buttons\english\'' with a graphic tool 
 
|-
 
| BUTTON_ADD_PRODUCTS_TO_CART_ALT 
 
| 'Add Selected Products to Cart' 
 
| Edit button names file<b> button_names.php</b> near line 66 in the directory ''includes\languages\english\YOUR_TEMPLATE''. <br />Note: This text will be visible when your hover over this button. 
 
|-
 
| PREV_NEXT_BAR_LOCATION 
 
| 3 
 
| Change this in ADMIN<br /><b>Configuration --> Product Listing --> [[Admin - Configuration - Product Listing#Prev/Next Split Page Navigation (1-top, 2-bottom, 3-both)|Prev/Next Split Page Navigation (1-top, 2-bottom, 3-both)]].</b><br /><br />Sets the location of the Prev/Next Split Page Navigation 
 
|-
 
| TEXT_DISPLAY_NUMBER_OF_PRODUCTS_FEATURED_PRODUCTS 
 
|  'Displaying <strong>%d</strong> to <strong>%d</strong> (of <strong>%d</strong> featured products)' 
 
| Edit language file<b> english.php</b> near line 268 in the directory ''includes\languages\YOUR_TEMPLATE'' 
 
|-
 
| TEXT_RESULT_PAGE 
 
|  '' 
 
| Edit language file<b> english.php</b> near line 262 in the directory ''includes\languages\YOUR_TEMPLATE'' 
 
|-
 
| MAX_DISPLAY_PAGE_LINKS 
 
| 5 
 
| Change this in ADMIN<br /><b>Configuration --> Maximum Values --> [[Admin - Configuration - Maximum Values#Prev/Next Navigation Page Links|Prev/Next Navigation Page Links]].</b><br /><br />Number of 'number' links use for page-sets 
 
|-
 
| NAVBAR_TITLE 
 
|  'Featured Products' 
 
| Edit language file<b> featured_products.php</b> near line 23 in the directory ''includes\languages\english\YOUR_TEMPLATE'' 
 
|-
 
| PRODUCT_FEATURED_LIST_SORT_DEFAULT 
 
| 1 
 
| Change this in ADMIN<br /><b>Configuration --> Featured Listing --> [[Admin - Configuration - Featured Listing#Display Product Display - Default Sort Order|Display Product Display - Default Sort Order]].</b><br /><br />What Sort Order Default should be used for Featured Product Display?<br />Default= 1 for Product Name<br /><br />1= Products Name<br />2= Products Name Desc<br />3= Price low to high, Products Name<br />4= Price high to low, Products Name<br />5= Model<br />6= Date Added desc<br />7= Date Added<br />8= Product Sort Order 
 
|-
 
| MAX_DISPLAY_PRODUCTS_FEATURED_PRODUCTS 
 
| 10 
 
| Change this in ADMIN<br /><b>Configuration --> Maximum Values --> [[Admin - Configuration - Maximum Values#Maximum Display of Featured Products Page|Maximum Display of Featured Products Page]].</b><br /><br />Number of featured products to list per screen 
 
|-
 
| SHOW_PRODUCTS_SOLD_OUT_IMAGE 
 
| 1 
 
| Change this in ADMIN<br /><b>Configuration --> Stock --> [[Admin - Configuration - Stock#Show Sold Out Image in place of Add to Cart|Show Sold Out Image in place of Add to Cart]].</b><br /><br />Show Sold Out Image instead of Add to Cart Button<br /><br />0= off<br />1= on 
 
|}
 
 
NOTE:
 
This table is made by looking for used defines in the following files:
 
* includes\modules\pages\featured_products\header_php.php
 
* includes\templates\template_default\templates\tpl_featured_products_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\featured_products.php
 
Product type configuration option are ignored
 
Shipping, payment and Order Total module configuration option are also ignored
 

Revision as of 00:37, 5 December 2007