Difference between revisions of "Document product info page"

From Zen Cart(tm) Wiki
Jump to: navigation, search
(Initial version)
 
Line 1: Line 1:
The '''Document_product_info page''' is explained here.
 
  
 
 
 
 
== Configuration options ==
 
This table below shows most of the configuration options including language text for the ''Document_product_info 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 
 
|-
 
| PRODUCT_INFO_PREVIOUS_NEXT 
 
| 1 
 
| Change this in ADMIN<br /><b>Configuration --> Product Info --> [[Admin - Configuration - Product Info#Previous Next - Navigation Bar Position|Previous Next - Navigation Bar Position]].</b><br /><br />Location of Previous/Next Navigation Bar<br />0= off<br />1= Top of Page<br />2= Bottom of Page<br />3= Both Top and Bottom of Page 
 
|-
 
| TEXT_ONETIME_CHARGE_SYMBOL 
 
|  ' *' 
 
| Edit language file<b> document_product_info.php</b> near line 38 in the directory ''includes\languages\english\YOUR_TEMPLATE'' 
 
|-
 
| TEXT_ONETIME_CHARGE_DESCRIPTION 
 
|  ' One time charges may apply' 
 
| Edit language file<b> document_product_info.php</b> near line 39 in the directory ''includes\languages\english\YOUR_TEMPLATE'' 
 
|-
 
| TEXT_BASE_PRICE 
 
| 'Starting at: ' 
 
| Edit language file<b> english.php</b> near line 283 in the directory ''includes\languages\YOUR_TEMPLATE'' 
 
|-
 
| CUSTOMERS_APPROVAL 
 
| 0 
 
| Change this in ADMIN<br /><b>Configuration --> Customer Details --> [[Admin - Configuration - Customer Details#Customer Shop Status - View Shop and Prices|Customer Shop Status - View Shop and Prices]].</b><br /><br />Customer must be approved to shop<br />0= Not required<br />1= Must login to browse<br />2= May browse but no prices unless logged in<br />3= Showroom Only<br /><br />It is recommended that Option 2 be used for the purposes of Spiders if you wish customers to login to see prices. 
 
|-
 
| TEXT_LOGIN_FOR_PRICE_BUTTON_REPLACE_SHOWROOM 
 
| 'Show Room Only' 
 
| Edit language file<b> english.php</b> near line 491 in the directory ''includes\languages\YOUR_TEMPLATE'' 
 
|-
 
| PRODUCTS_ORDER_QTY_TEXT_IN_CART 
 
| 'Quantity in Cart: ' 
 
| Edit language file<b> english.php</b> near line 374 in the directory ''includes\languages\YOUR_TEMPLATE'' 
 
|-
 
| BUTTON_IMAGE_IN_CART 
 
| [[Image:button_in_cart.gif]] 
 
| Edit button image file<b>  'button_in_cart.gif'</b> in the directory ''includes\templates\YOUR_TEMPLATE\buttons\english\'' with a graphic tool 
 
|-
 
| BUTTON_IN_CART_ALT 
 
|  'Add to Cart' 
 
| Edit button names file<b> button_names.php</b> near line 79 in the directory ''includes\languages\english\YOUR_TEMPLATE''. <br />Note: This text will be visible when your hover over this button. 
 
|-
 
| PRODUCTS_ORDER_QTY_TEXT 
 
| 'Add to Cart: ' 
 
| Edit language file<b> english.php</b> near line 375 in the directory ''includes\languages\YOUR_TEMPLATE'' 
 
|-
 
| TEXT_PRODUCT_MODEL 
 
|  'Model: ' 
 
| Edit language file<b> document_product_info.php</b> near line 20 in the directory ''includes\languages\english\YOUR_TEMPLATE'' 
 
|-
 
| TEXT_PRODUCT_WEIGHT 
 
|  'Shipping Weight: ' 
 
| Edit language file<b> document_product_info.php</b> near line 18 in the directory ''includes\languages\english\YOUR_TEMPLATE'' 
 
|-
 
| TEXT_PRODUCT_WEIGHT_UNIT 
 
| 'lbs' 
 
| Edit language file<b> english.php</b> near line 377 in the directory ''includes\languages\YOUR_TEMPLATE'' 
 
|-
 
| TEXT_PRODUCT_QUANTITY 
 
|  ' Units in Stock' 
 
| Edit language file<b> document_product_info.php</b> near line 19 in the directory ''includes\languages\english\YOUR_TEMPLATE'' 
 
|-
 
| TEXT_PRODUCT_MANUFACTURER 
 
|  'Manufactured by: ' 
 
| Edit language file<b> document_product_info.php</b> near line 17 in the directory ''includes\languages\english\YOUR_TEMPLATE'' 
 
|-
 
| BUTTON_IMAGE_TELLAFRIEND 
 
| [[Image:button_TellAFriend.gif]] 
 
| Edit button image file<b>  'button_TellAFriend.gif'</b> in the directory ''includes\templates\YOUR_TEMPLATE\buttons\english\'' with a graphic tool 
 
|-
 
| BUTTON_TELLAFRIEND_ALT 
 
|  'Tell a Friend' 
 
| Edit button names file<b> button_names.php</b> near line 95 in the directory ''includes\languages\english\YOUR_TEMPLATE''. <br />Note: This text will be visible when your hover over this button. 
 
|-
 
| BUTTON_IMAGE_REVIEWS 
 
| [[Image:button_reviews.gif]] 
 
| Edit button image file<b>  'button_reviews.gif'</b> 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<b> button_names.php</b> near line 85 in the directory ''includes\languages\english\YOUR_TEMPLATE''. <br />Note: This text will be visible when your hover over this button. 
 
|-
 
| TEXT_CURRENT_REVIEWS 
 
|  'Current Reviews:' 
 
| Edit language file<b> document_product_info.php</b> near line 11 in the directory ''includes\languages\english\YOUR_TEMPLATE'' 
 
|-
 
| BUTTON_IMAGE_WRITE_REVIEW 
 
| [[Image:button_write_review.gif]] 
 
| Edit button image file<b>  'button_write_review.gif'</b> in the directory ''includes\templates\YOUR_TEMPLATE\buttons\english\'' with a graphic tool 
 
|-
 
| BUTTON_WRITE_REVIEW_ALT 
 
|  'Write Review' 
 
| Edit button names file<b> button_names.php</b> near line 99 in the directory ''includes\languages\english\YOUR_TEMPLATE''. <br />Note: This text will be visible when your hover over this button. 
 
|-
 
| TEXT_DATE_AVAILABLE 
 
|  'This product will be in stock on %s.' 
 
| Edit language file<b> document_product_info.php</b> near line 14 in the directory ''includes\languages\english\YOUR_TEMPLATE'' 
 
|-
 
| TEXT_DATE_ADDED 
 
|  'This product was added to our catalog on %s.' 
 
| Edit language file<b> document_product_info.php</b> near line 13 in the directory ''includes\languages\english\YOUR_TEMPLATE'' 
 
|-
 
| TEXT_MORE_INFORMATION 
 
|  'For more information, please visit this product'\s <a href="%s" target="_blank">webpage</a>.' 
 
| Edit language file<b> document_product_info.php</b> near line 12 in the directory ''includes\languages\english\YOUR_TEMPLATE'' 
 
|-
 
| PRODUCTS_IMAGE_NO_IMAGE_STATUS 
 
| 1 
 
| Change this in ADMIN<br /><b>Configuration --> Images --> [[Admin - Configuration - Images#Product Image - No Image Status|Product Image - No Image Status]].</b><br /><br />Use automatic No Image when none is added to product<br />0= off<br />1= On 
 
|-
 
| PRODUCTS_IMAGE_NO_IMAGE 
 
| no_picture.gif 
 
| Change this in ADMIN<br /><b>Configuration --> Images --> [[Admin - Configuration - Images#Product Image - No Image picture|Product Image - No Image picture]].</b><br /><br />Use automatic No Image when none is added to product<br />Default = no_picture.gif 
 
|-
 
| PRODUCT_INFO_CATEGORIES 
 
| 1 
 
| Change this in ADMIN<br /><b>Configuration --> Product Info --> [[Admin - Configuration - Product Info#Previous Next - Navigation Includes Category|Previous Next - Navigation Includes Category]].</b><br /><br />Product's Category Image and Name Alignment Above Previous/Next Navigation Bar<br />0= off<br />1= Align Left<br />2= Align Center<br />3= Align Right 
 
|}
 
 
NOTE:
 
This table is made by looking for used defines in the following files:
 
* includes\modules\pages\document_product_info\header_php.php
 
* includes\modules\pages\document_product_info\main_template_vars.php
 
* includes\templates\template_default\templates\tpl_document_product_info_display.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\document_product_info.php
 
Product type configuration option are ignored
 
Shipping, payment and Order Total module configuration option are also ignored
 

Revision as of 00:38, 5 December 2007