Featured products page

From Zen Cart(tm) Wiki
Jump to: navigation, search

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


Name Default value How to change
HEADING_TITLE 'Featured Products' Edit language file featured_products.php near line 24 in the directory includes\languages\english\YOUR_TEMPLATE
PRODUCT_FEATURED_LISTING_MULTIPLE_ADD_TO_CART 3 Change this in ADMIN
Configuration --> Featured Listing --> Display Multiple Products Qty Box Status and Set Button Location.

Do you want to display Add Multiple Products Qty Box and Set Button Location?
0= off
1= Top
2= Bottom
3= Both
BUTTON_IMAGE_ADD_PRODUCTS_TO_CART File:Button add selected.gif Edit button image file 'button_add_selected.gif' 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 button_names.php near line 66 in the directory includes\languages\english\YOUR_TEMPLATE.
Note: This text will be visible when your hover over this button.
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_PRODUCTS_FEATURED_PRODUCTS 'Displaying %d to %d (of %d featured products)' Edit language file english.php near line 268 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
NAVBAR_TITLE 'Featured Products' Edit language file featured_products.php near line 23 in the directory includes\languages\english\YOUR_TEMPLATE
PRODUCT_FEATURED_LIST_SORT_DEFAULT 1 Change this in ADMIN
Configuration --> Featured Listing --> Display Product Display - Default Sort Order.

What Sort Order Default should be used for Featured Product Display?
Default= 1 for Product Name

1= Products Name
2= Products Name Desc
3= Price low to high, Products Name
4= Price high to low, Products Name
5= Model
6= Date Added desc
7= Date Added
8= Product Sort Order
MAX_DISPLAY_PRODUCTS_FEATURED_PRODUCTS 10 Change this in ADMIN
Configuration --> Maximum Values --> Maximum Display of Featured Products Page.

Number of featured products to list per screen
SHOW_PRODUCTS_SOLD_OUT_IMAGE 1 Change this in ADMIN
Configuration --> Stock --> Show Sold Out Image in place of Add to Cart.

Show Sold Out Image instead of Add to Cart Button

0= off
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