Discount coupon page

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

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


Name Default value How to change
HEADING_TITLE 'Discount Coupon' Edit language file discount_coupon.php near line 24 in the directory includes\languages\english\YOUR_TEMPLATE
DEFINE_DISCOUNT_COUPON_STATUS 1 Change this in ADMIN
Configuration --> Define Page Status --> Define Discount Coupon.

Enable the Defined Discount Coupon Link/Text?
0= Link ON, Define Text OFF
1= Link ON, Define Text ON
2= Link OFF, Define Text ON
3= Link OFF, Define Text OFF
TEXT_DISCOUNT_COUPON_ID_INFO 'Look-up Discount Coupon ... ' Edit language file discount_coupon.php near line 52 in the directory includes\languages\english\YOUR_TEMPLATE
TEXT_DISCOUNT_COUPON_ID 'Your Code: ' Edit language file discount_coupon.php near line 53 in the directory includes\languages\english\YOUR_TEMPLATE
BUTTON_IMAGE_SEND File:Button send.gif Edit button image file 'button_send.gif' in the directory includes\templates\YOUR_TEMPLATE\buttons\english\ with a graphic tool
BUTTON_SEND_ALT 'Send Now' Edit button names file button_names.php near line 87 in the directory includes\languages\english\YOUR_TEMPLATE.
Note: This text will be visible when your hover over this button.
BUTTON_IMAGE_CANCEL File:Button cancel.gif Edit button image file 'button_cancel.gif' in the directory includes\templates\YOUR_TEMPLATE\buttons\english\ with a graphic tool
BUTTON_CANCEL_ALT 'Cancel' Edit button names file button_names.php near line 69 in the directory includes\languages\english\YOUR_TEMPLATE.
Note: This text will be visible when your hover over this button.
BUTTON_IMAGE_BACK File:Button back.gif Edit button image file 'button_back.gif' in the directory includes\templates\YOUR_TEMPLATE\buttons\english\ with a graphic tool
BUTTON_BACK_ALT 'Back' Edit button names file button_names.php near line 67 in the directory includes\languages\english\YOUR_TEMPLATE.
Note: This text will be visible when your hover over this button.
TEXT_COUPON_FAILED '%s does not appear to be a valid Coupon Redemption Code. Please try typing it in again.' Edit language file discount_coupon.php near line 27 in the directory includes\languages\english\YOUR_TEMPLATE
TEXT_COUPON_HELP_HEADER '

The Discount Coupon Redemption Code you have entered is for '

Edit language file discount_coupon.php near line 31 in the directory includes\languages\english\YOUR_TEMPLATE
TEXT_COUPON_HELP_NAME \%s'\.

'
Edit language file discount_coupon.php near line 32 in the directory includes\languages\english\YOUR_TEMPLATE
TEXT_COUPON_HELP_DESC '

Discount Offer: %s

Certain other restrictions may apply. Please see below for other details.

'
Edit language file discount_coupon.php near line 36 in the directory includes\languages\english\YOUR_TEMPLATE
TEXT_COUPON_HELP_FIXED Edit language file discount_coupon.php near line 33 in the directory includes\languages\english\YOUR_TEMPLATE
TEXT_COUPON_HELP_FREESHIP Edit language file discount_coupon.php near line 35 in the directory includes\languages\english\YOUR_TEMPLATE
TEXT_COUPON_HELP_MINORDER Edit language file discount_coupon.php near line 34 in the directory includes\languages\english\YOUR_TEMPLATE
TEXT_COUPON_HELP_DATE '

The coupon is valid between %s and %s

'
Edit language file discount_coupon.php near line 37 in the directory includes\languages\english\YOUR_TEMPLATE
TEXT_COUPON_HELP_RESTRICT '

Discount Coupon Restrictions

'
Edit language file discount_coupon.php near line 38 in the directory includes\languages\english\YOUR_TEMPLATE
TEXT_COUPON_HELP_CATEGORIES '

Category Restrictions:

'
Edit language file discount_coupon.php near line 39 in the directory includes\languages\english\YOUR_TEMPLATE
TEXT_CAT_ALLOWED ' (Valid for this category)' Edit language file discount_coupon.php near line 45 in the directory includes\languages\english\YOUR_TEMPLATE
TEXT_CAT_DENIED ' (Not allowed on this category)' Edit language file discount_coupon.php near line 46 in the directory includes\languages\english\YOUR_TEMPLATE
TEXT_NO_CAT_RESTRICTIONS '

This coupon is valid for all categories.

'
Edit language file discount_coupon.php near line 43 in the directory includes\languages\english\YOUR_TEMPLATE
TEXT_COUPON_HELP_PRODUCTS '

Product Restrictions:

'
Edit language file discount_coupon.php near line 40 in the directory includes\languages\english\YOUR_TEMPLATE
TEXT_PROD_ALLOWED ' (Valid for this product)' Edit language file discount_coupon.php near line 47 in the directory includes\languages\english\YOUR_TEMPLATE
TEXT_PROD_DENIED ' (Not allowed product)' Edit language file discount_coupon.php near line 48 in the directory includes\languages\english\YOUR_TEMPLATE
TEXT_NO_PROD_RESTRICTIONS '

This coupon is valid for all products.

'
Edit language file discount_coupon.php near line 44 in the directory includes\languages\english\YOUR_TEMPLATE
TEXT_COUPON_GV_RESTRICTION '

Discount Coupons may not be applied towards the purchase of ' . TEXT_GV_NAMES . '. Limit 1 coupon per order.

'
Edit language file discount_coupon.php near line 50 in the directory includes\languages\english\YOUR_TEMPLATE
FILENAME_DEFINE_DISCOUNT_COUPON

Discount Coupon Sample Text ...


This section of text is from the Define Pages Editor located under Tools in the Admin.


To remove this section of the text, delete it from the Define Pages Editor.

Edit define page file define_discount_coupon
(Tools --> Define Pages Editor)
NAVBAR_TITLE 'Discount Coupon' Edit language file discount_coupon.php 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