Product reviews write page
From Zen Cart(tm) Wiki
The Product_reviews_write page is explained here.
[edit]
Configuration options
This table below shows most of the configuration options including language text for the Product_reviews_write 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 |
|---|---|---|
| BUTTON_IMAGE_GOTO_PROD_DETAILS | Image: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. |
| BUTTON_IMAGE_REVIEWS | Image:Button reviews.gif | Edit button image file 'button_reviews.gif' in the directory includes\templates\YOUR_TEMPLATE\buttons\english\ with a graphic tool |
| BUTTON_REVIEWS_ALT | 'Go to the Reviews Page' | Edit button names file button_names.php near line 85 in the directory includes\languages\english\YOUR_TEMPLATE. Note: This text will be visible when your hover over this button. |
| SUB_TITLE_FROM | 'Written by:' | Edit language file product_reviews_write.php near line 12 in the directory includes\languages\english\YOUR_TEMPLATE |
| SUB_TITLE_RATING | 'Choose a ranking for this item. 1 star is the worst and 5 stars is the best.' | Edit language file product_reviews_write.php near line 14 in the directory includes\languages\english\YOUR_TEMPLATE |
| OTHER_IMAGE_REVIEWS_RATING_STARS_ONE | Image:Stars 1 small.gif | Edit other image file 'stars_1_small.gif' in the directory includes\templates\YOUR_TEMPLATE\images\ with a graphic tool |
| OTHER_REVIEWS_RATING_STARS_ONE_ALT | 'One Star' | Edit other names file other_images_names.php near line 45 in the directory includes\languages\english\YOUR_TEMPLATE |
| OTHER_IMAGE_REVIEWS_RATING_STARS_TWO | Image:Stars 2 small.gif | Edit other image file 'stars_2_small.gif' in the directory includes\templates\YOUR_TEMPLATE\images\ with a graphic tool |
| OTHER_REVIEWS_RATING_STARS_TWO_ALT | 'Two Stars' | Edit other names file other_images_names.php near line 44 in the directory includes\languages\english\YOUR_TEMPLATE |
| OTHER_IMAGE_REVIEWS_RATING_STARS_THREE | Image:Stars 3 small.gif | Edit other image file 'stars_3_small.gif' in the directory includes\templates\YOUR_TEMPLATE\images\ with a graphic tool |
| OTHER_REVIEWS_RATING_STARS_THREE_ALT | 'Three Stars' | Edit other names file other_images_names.php near line 43 in the directory includes\languages\english\YOUR_TEMPLATE |
| OTHER_IMAGE_REVIEWS_RATING_STARS_FOUR | Image:Stars 4 small.gif | Edit other image file 'stars_4_small.gif' in the directory includes\templates\YOUR_TEMPLATE\images\ with a graphic tool |
| OTHER_REVIEWS_RATING_STARS_FOUR_ALT | 'Four Stars' | Edit other names file other_images_names.php near line 42 in the directory includes\languages\english\YOUR_TEMPLATE |
| OTHER_IMAGE_REVIEWS_RATING_STARS_FIVE | Image:Stars 5 small.gif | Edit other image file 'stars_5_small.gif' in the directory includes\templates\YOUR_TEMPLATE\images\ with a graphic tool |
| OTHER_REVIEWS_RATING_STARS_FIVE_ALT | 'Five Stars' | Edit other names file other_images_names.php near line 41 in the directory includes\languages\english\YOUR_TEMPLATE |
| SUB_TITLE_REVIEW | 'Please tell us what you think and share your opinions with others. Be sure to focus your comments on the product.' | Edit language file product_reviews_write.php near line 13 in the directory includes\languages\english\YOUR_TEMPLATE |
| BUTTON_IMAGE_SUBMIT | Image:Button submit.gif | Edit button image file 'button_submit.gif' in the directory includes\templates\YOUR_TEMPLATE\buttons\english\ with a graphic tool |
| BUTTON_SUBMIT_ALT | 'Submit the Information' | Edit button names file button_names.php near line 93 in the directory includes\languages\english\YOUR_TEMPLATE. Note: This text will be visible when your hover over this button. |
| TEXT_NO_HTML | 'NOTE: HTML tags are not allowed.' | Edit language file product_reviews_write.php near line 16 in the directory includes\languages\english\YOUR_TEMPLATE |
| REVIEWS_APPROVAL | 1 | Change this in ADMIN Configuration --> Product Info --> Product Reviews Require Approval. Do product reviews require approval? Note: When Review Status is off, it will also not show 0= off 1= on |
| TEXT_APPROVAL_REQUIRED | 'NOTE: Reviews require prior approval before they will be displayed' | Edit language file product_reviews_write.php near line 21 in the directory includes\languages\english\YOUR_TEMPLATE |
| REVIEW_TEXT_MIN_LENGTH | 50 | Change this in ADMIN Configuration --> Minimum Values --> Product Review Text. Minimum length of product review text |
| JS_REVIEW_TEXT | '* Please add a few more words to your comments. The review needs to have at least ' . REVIEW_TEXT_MIN_LENGTH . ' characters.' | Edit language file english.php near line 167 in the directory includes\languages\YOUR_TEMPLATE |
| JS_REVIEW_RATING | '* Please choose a rating for this item.' | Edit language file english.php near line 168 in the directory includes\languages\YOUR_TEMPLATE |
| SEND_EXTRA_REVIEW_NOTIFICATION_EMAILS_TO_STATUS | 0 | Change this in ADMIN Configuration --> E-Mail Options --> Send Copy of Pending Reviews Emails To - Status. Send copy of Pending Reviews Status 0= off 1= on |
| SEND_EXTRA_REVIEW_NOTIFICATION_EMAILS_TO | test@test.nl | Change this in ADMIN Configuration --> E-Mail Options --> Send Copy of Pending Reviews Emails To. Send copy of Pending Reviews emails to the following email addresses, in this format: Name 1 <email@address1>, Name 2 <email@address2> |
| EMAIL_PRODUCT_REVIEW_CONTENT_INTRO | 'A Product Review for %s has been submitted and requires your approval.'."n\n\" | Edit language file product_reviews_write.php near line 24 in the directory includes\languages\english\YOUR_TEMPLATE |
| EMAIL_PRODUCT_REVIEW_CONTENT_DETAILS | 'Review Details: %s' | Edit language file product_reviews_write.php near line 25 in the directory includes\languages\english\YOUR_TEMPLATE |
| EMAIL_REVIEW_PENDING_SUBJECT | 'Product Review Pending Approval: %s' | Edit language file product_reviews_write.php near line 23 in the directory includes\languages\english\YOUR_TEMPLATE |
| STORE_NAME | test300 | Change this in ADMIN Configuration --> My Store --> Store Name. The name of my store |
| EMAIL_FROM | test@test.nl | Change this in ADMIN Configuration --> E-Mail Options --> Email Address (sent FROM). Address from which email messages will be "sent" by default. Can be over-ridden at compose-time in admin modules. |
| PRODUCTS_IMAGE_NO_IMAGE_STATUS | 1 | Change this in ADMIN Configuration --> Images --> Product Image - No Image Status. Use automatic No Image when none is added to product 0= off 1= On |
| PRODUCTS_IMAGE_NO_IMAGE | no_picture.gif | Change this in ADMIN Configuration --> Images --> Product Image - No Image picture. Use automatic No Image when none is added to product Default = no_picture.gif |
| NAVBAR_TITLE | 'Reviews' | Edit language file product_reviews_write.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\product_reviews_write\header_php.php
- includes\templates\template_default\templates\tpl_product_reviews_write_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\other_images_names.php
- includes\languages\english\product_reviews_write.php
Product type configuration option are ignored Shipping, payment and Order Total module configuration option are also ignored
