Difference between revisions of "Discount coupon page"

From Zen Cart(tm) Wiki
Jump to: navigation, search
(Initial version)
 
Line 1: Line 1:
The '''Discount_coupon page''' is explained here.
 
  
 
 
 
 
== Configuration options ==
 
This table below shows most of the configuration options including language text for the ''Discount_coupon 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 
 
|  'Discount Coupon' 
 
| Edit language file<b> discount_coupon.php</b> near line 24 in the directory ''includes\languages\english\YOUR_TEMPLATE'' 
 
|-
 
| DEFINE_DISCOUNT_COUPON_STATUS 
 
| 1 
 
| Change this in ADMIN<br /><b>Configuration --> Define Page Status --> [[Admin - Configuration - Define Page Status#Define Discount Coupon|Define Discount Coupon]].</b><br /><br />Enable the Defined Discount Coupon Link/Text?<br />0= Link ON, Define Text OFF<br />1= Link ON, Define Text ON<br />2= Link OFF, Define Text ON<br />3= Link OFF, Define Text OFF 
 
|-
 
| TEXT_DISCOUNT_COUPON_ID_INFO 
 
|  'Look-up Discount Coupon ... ' 
 
| Edit language file<b> discount_coupon.php</b> near line 52 in the directory ''includes\languages\english\YOUR_TEMPLATE'' 
 
|-
 
| TEXT_DISCOUNT_COUPON_ID 
 
|  'Your Code: ' 
 
| Edit language file<b> discount_coupon.php</b> near line 53 in the directory ''includes\languages\english\YOUR_TEMPLATE'' 
 
|-
 
| BUTTON_IMAGE_SEND 
 
| [[Image:button_send.gif]] 
 
| Edit button image file<b>  'button_send.gif'</b> in the directory ''includes\templates\YOUR_TEMPLATE\buttons\english\'' with a graphic tool 
 
|-
 
| BUTTON_SEND_ALT 
 
|  'Send Now' 
 
| Edit button names file<b> button_names.php</b> near line 87 in the directory ''includes\languages\english\YOUR_TEMPLATE''. <br />Note: This text will be visible when your hover over this button. 
 
|-
 
| BUTTON_IMAGE_CANCEL 
 
| [[Image:button_cancel.gif]] 
 
| Edit button image file<b>  'button_cancel.gif'</b> in the directory ''includes\templates\YOUR_TEMPLATE\buttons\english\'' with a graphic tool 
 
|-
 
| BUTTON_CANCEL_ALT 
 
|  'Cancel' 
 
| Edit button names file<b> button_names.php</b> near line 69 in the directory ''includes\languages\english\YOUR_TEMPLATE''. <br />Note: This text will be visible when your hover over this button. 
 
|-
 
| BUTTON_IMAGE_BACK 
 
| [[Image:button_back.gif]] 
 
| Edit button image file<b>  'button_back.gif'</b> in the directory ''includes\templates\YOUR_TEMPLATE\buttons\english\'' with a graphic tool 
 
|-
 
| BUTTON_BACK_ALT 
 
|  'Back' 
 
| Edit button names file<b> button_names.php</b> near line 67 in the directory ''includes\languages\english\YOUR_TEMPLATE''. <br />Note: This text will be visible when your hover over this button. 
 
|-
 
| TEXT_COUPON_FAILED 
 
|  '<span class="alert important">%s</span> does not appear to be a valid Coupon Redemption Code. Please try typing it in again.' 
 
| Edit language file<b> discount_coupon.php</b> near line 27 in the directory ''includes\languages\english\YOUR_TEMPLATE'' 
 
|-
 
| TEXT_COUPON_HELP_HEADER 
 
|  '<p class="bold">The Discount Coupon Redemption Code you have entered is for ' 
 
| Edit language file<b> discount_coupon.php</b> near line 31 in the directory ''includes\languages\english\YOUR_TEMPLATE'' 
 
|-
 
| TEXT_COUPON_HELP_NAME 
 
|  ''\%s'\. </p>' 
 
| Edit language file<b> discount_coupon.php</b> near line 32 in the directory ''includes\languages\english\YOUR_TEMPLATE'' 
 
|-
 
| TEXT_COUPON_HELP_DESC 
 
|  '<p><span class="bold">Discount Offer:</span> %s</p><p class="smallText">Certain other restrictions may apply. Please see below for other details.</p>' 
 
| Edit language file<b> discount_coupon.php</b> near line 36 in the directory ''includes\languages\english\YOUR_TEMPLATE'' 
 
|-
 
| TEXT_COUPON_HELP_FIXED 
 
|  '' 
 
| Edit language file<b> discount_coupon.php</b> near line 33 in the directory ''includes\languages\english\YOUR_TEMPLATE'' 
 
|-
 
| TEXT_COUPON_HELP_FREESHIP 
 
|  '' 
 
| Edit language file<b> discount_coupon.php</b> near line 35 in the directory ''includes\languages\english\YOUR_TEMPLATE'' 
 
|-
 
| TEXT_COUPON_HELP_MINORDER 
 
|  '' 
 
| Edit language file<b> discount_coupon.php</b> near line 34 in the directory ''includes\languages\english\YOUR_TEMPLATE'' 
 
|-
 
| TEXT_COUPON_HELP_DATE 
 
|  '<p>The coupon is valid between %s and %s</p>' 
 
| Edit language file<b> discount_coupon.php</b> near line 37 in the directory ''includes\languages\english\YOUR_TEMPLATE'' 
 
|-
 
| TEXT_COUPON_HELP_RESTRICT 
 
|  '<p class="biggerText bold">Discount Coupon Restrictions</p>' 
 
| Edit language file<b> discount_coupon.php</b> near line 38 in the directory ''includes\languages\english\YOUR_TEMPLATE'' 
 
|-
 
| TEXT_COUPON_HELP_CATEGORIES 
 
|  '<p class="bold">Category Restrictions:</p>' 
 
| Edit language file<b> discount_coupon.php</b> near line 39 in the directory ''includes\languages\english\YOUR_TEMPLATE'' 
 
|-
 
| TEXT_CAT_ALLOWED 
 
|  ' (Valid for this category)' 
 
| Edit language file<b> discount_coupon.php</b> near line 45 in the directory ''includes\languages\english\YOUR_TEMPLATE'' 
 
|-
 
| TEXT_CAT_DENIED 
 
|  ' (Not allowed on this category)' 
 
| Edit language file<b> discount_coupon.php</b> near line 46 in the directory ''includes\languages\english\YOUR_TEMPLATE'' 
 
|-
 
| TEXT_NO_CAT_RESTRICTIONS 
 
|  '<p>This coupon is valid for all categories.</p>' 
 
| Edit language file<b> discount_coupon.php</b> near line 43 in the directory ''includes\languages\english\YOUR_TEMPLATE'' 
 
|-
 
| TEXT_COUPON_HELP_PRODUCTS 
 
|  '<p class="bold">Product Restrictions:</p>' 
 
| Edit language file<b> discount_coupon.php</b> near line 40 in the directory ''includes\languages\english\YOUR_TEMPLATE'' 
 
|-
 
| TEXT_PROD_ALLOWED 
 
|  ' (Valid for this product)' 
 
| Edit language file<b> discount_coupon.php</b> near line 47 in the directory ''includes\languages\english\YOUR_TEMPLATE'' 
 
|-
 
| TEXT_PROD_DENIED 
 
|  ' (Not allowed product)' 
 
| Edit language file<b> discount_coupon.php</b> near line 48 in the directory ''includes\languages\english\YOUR_TEMPLATE'' 
 
|-
 
| TEXT_NO_PROD_RESTRICTIONS 
 
|  '<p>This coupon is valid for all products.</p>' 
 
| Edit language file<b> discount_coupon.php</b> near line 44 in the directory ''includes\languages\english\YOUR_TEMPLATE'' 
 
|-
 
| TEXT_COUPON_GV_RESTRICTION 
 
| '<p class="smallText">Discount Coupons may not be applied towards the purchase of ' . TEXT_GV_NAMES . '. Limit 1 coupon per order.</p>' 
 
| Edit language file<b> discount_coupon.php</b> near line 50 in the directory ''includes\languages\english\YOUR_TEMPLATE'' 
 
|-
 
| FILENAME_DEFINE_DISCOUNT_COUPON 
 
| <p><strong>Discount Coupon Sample Text ...</strong></p><br /><p>This section of text is from the Define Pages Editor located under Tools in the Admin.</p><br /><p>To remove this section of the text, delete it from the Define Pages Editor.</p> 
 
| Edit define page file<b> define_discount_coupon</b> <br />(Tools --> [[Admin - Tools - Define Pages Editor|Define Pages Editor]]) 
 
|-
 
| NAVBAR_TITLE 
 
|  'Discount Coupon' 
 
| Edit language file<b> discount_coupon.php</b> near line 23 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\discount_coupon\header_php.php
 
* includes\templates\template_default\templates\tpl_discount_coupon_default.php
 
Defines (configuration options) are defined in:
 
* configuration table in the database
 
* includes\filenames.php
 
* includes\languages\english\button_names.php
 
* includes\languages\english\discount_coupon.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