Difference between revisions of "Reviews page"

From Zen Cart(tm) Wiki
Jump to: navigation, search
m (Reverted edits by Allcanadiansearch.ca (Talk); changed back to last version by Yboy)
 
Line 1: Line 1:
 +
The '''Reviews page''' is explained here.
  
 +
 +
 +
 +
 +
== Configuration options ==
 +
This table below shows most of the configuration options including language text for the ''Reviews 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 
 +
|-
 +
| 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_REVIEWS 
 +
|  'Displaying <strong>%d</strong> to <strong>%d</strong> (of <strong>%d</strong> reviews)' 
 +
| Edit language file<b> english.php</b> near line 265 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 
 +
|-
 +
| SMALL_IMAGE_WIDTH 
 +
| 100 
 +
| Change this in ADMIN<br /><b>Configuration --> Images --> [[Admin - Configuration - Images#Small Image Width|Small Image Width]].</b><br /><br />The pixel width of small images 
 +
|-
 +
| SMALL_IMAGE_HEIGHT 
 +
| 80 
 +
| Change this in ADMIN<br /><b>Configuration --> Images --> [[Admin - Configuration - Images#Small Image Height|Small Image Height]].</b><br /><br />The pixel height of small images 
 +
|-
 +
| BUTTON_IMAGE_READ_REVIEWS 
 +
| [[Image:button_read_reviews.gif]] 
 +
| Edit button image file<b>  'button_read_reviews.gif'</b> in the directory ''includes\templates\YOUR_TEMPLATE\buttons\english\'' with a graphic tool 
 +
|-
 +
| BUTTON_READ_REVIEWS_ALT 
 +
|  'Read the Review' 
 +
| Edit button names file<b> button_names.php</b> near line 100 in the directory ''includes\languages\english\YOUR_TEMPLATE''. <br />Note: This text will be visible when your hover over this button. 
 +
|-
 +
| BUTTON_IMAGE_GOTO_PROD_DETAILS 
 +
| [[Image:button_goto_prod_details.gif]] 
 +
| Edit button image file<b>  'button_goto_prod_details.gif'</b> in the directory ''includes\templates\YOUR_TEMPLATE\buttons\english\'' with a graphic tool 
 +
|-
 +
| BUTTON_GOTO_PROD_DETAILS_ALT 
 +
|  'Go To This Product'\s Detailed Information' 
 +
| Edit button names file<b> button_names.php</b> near line 101 in the directory ''includes\languages\english\YOUR_TEMPLATE''. <br />Note: This text will be visible when your hover over this button. 
 +
|-
 +
| TEXT_OF_5_STARS 
 +
|  '' 
 +
| Edit language file<b> reviews.php</b> near line 11 in the directory ''includes\languages\english\YOUR_TEMPLATE'' 
 +
|-
 +
| TEXT_REVIEW_DATE_ADDED 
 +
|  'Date Added: %s' 
 +
| Edit language file<b> english.php</b> near line 295 in the directory ''includes\languages\YOUR_TEMPLATE'' 
 +
|-
 +
| TEXT_REVIEW_BY 
 +
|  'by %s' 
 +
| Edit language file<b> english.php</b> near line 292 in the directory ''includes\languages\YOUR_TEMPLATE'' 
 +
|-
 +
| TEXT_NO_REVIEWS 
 +
|  'There are currently no product reviews.' 
 +
| Edit language file<b> english.php</b> near line 296 in the directory ''includes\languages\YOUR_TEMPLATE'' 
 +
|-
 +
| MAX_DISPLAY_NEW_REVIEWS 
 +
| 6 
 +
| Change this in ADMIN<br /><b>Configuration --> Maximum Values --> [[Admin - Configuration - Maximum Values#New Product Reviews Per Page|New Product Reviews Per Page]].</b><br /><br />Number of new reviews to display on each page 
 +
|-
 +
| NAVBAR_TITLE 
 +
|  'Reviews' 
 +
| Edit language file<b> reviews.php</b> near line 10 in the directory ''includes\languages\english\YOUR_TEMPLATE'' 
 +
|}
 +
 +
NOTE:
 +
This table is made by looking for used defines in the following files:
 +
* includes\modules\pages\reviews\header_php.php
 +
* includes\templates\template_default\templates\tpl_reviews_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\reviews.php
 +
Product type configuration option are ignored
 +
Shipping, payment and Order Total module configuration option are also ignored

Latest revision as of 02:25, 5 December 2007

The Reviews page is explained here.



Configuration options

This table below shows most of the configuration options including language text for the Reviews 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_REVIEWS 'Displaying %d to %d (of %d reviews)' Edit language file english.php near line 265 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
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
BUTTON_IMAGE_READ_REVIEWS File:Button read reviews.gif Edit button image file 'button_read_reviews.gif' in the directory includes\templates\YOUR_TEMPLATE\buttons\english\ with a graphic tool
BUTTON_READ_REVIEWS_ALT 'Read the Review' Edit button names file button_names.php near line 100 in the directory includes\languages\english\YOUR_TEMPLATE.
Note: This text will be visible when your hover over this button.
BUTTON_IMAGE_GOTO_PROD_DETAILS File:Button goto prod details.gif Edit button image file 'button_goto_prod_details.gif' in the directory includes\templates\YOUR_TEMPLATE\buttons\english\ with a graphic tool
BUTTON_GOTO_PROD_DETAILS_ALT 'Go To This Product'\s Detailed Information' Edit button names file button_names.php near line 101 in the directory includes\languages\english\YOUR_TEMPLATE.
Note: This text will be visible when your hover over this button.
TEXT_OF_5_STARS Edit language file reviews.php near line 11 in the directory includes\languages\english\YOUR_TEMPLATE
TEXT_REVIEW_DATE_ADDED 'Date Added: %s' Edit language file english.php near line 295 in the directory includes\languages\YOUR_TEMPLATE
TEXT_REVIEW_BY 'by %s' Edit language file english.php near line 292 in the directory includes\languages\YOUR_TEMPLATE
TEXT_NO_REVIEWS 'There are currently no product reviews.' Edit language file english.php near line 296 in the directory includes\languages\YOUR_TEMPLATE
MAX_DISPLAY_NEW_REVIEWS 6 Change this in ADMIN
Configuration --> Maximum Values --> New Product Reviews Per Page.

Number of new reviews to display on each page
NAVBAR_TITLE 'Reviews' Edit language file reviews.php near line 10 in the directory includes\languages\english\YOUR_TEMPLATE

NOTE: This table is made by looking for used defines in the following files:

  • includes\modules\pages\reviews\header_php.php
  • includes\templates\template_default\templates\tpl_reviews_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\reviews.php

Product type configuration option are ignored Shipping, payment and Order Total module configuration option are also ignored