...
Install voucher plugin
Installing the voucher plugin is required for the use of enhanced vouchers. When deploying, make sure the the json (plugins config with all the necessary files) is included. When configuring your vouchers make sure the plugin is enabled following the steps below. This will both allow the voucher banner to be displayed and show/enable the voucher widget on the product setup.Configuration > Local Plugins >
Scroll to Group: “Aspenware Commerce” Plugin info: “Vouchers”
Ensure the following plugin is installed and enabled
Add voucher banner plugin-html widget
This plugin-html widget creates the voucher banner. Once installed and made visible admins can enable and disable the banner via the voucher banner settings in “All Settings”Nop-Templates > Plugins > Html Widgets > Manage
Add New html widget
Name: Voucher (this name is customizable)
Select Tools dropdown and select “<> Source Code”
Enter: <validate-code></validate-code>
Save
Select Edit (on newly added plugin)
Select “Widget Zones” Tab
Select Add New Record
From dropdown select content_before
Select “Update”
Save
Review the voucher banner setting
Once the plugin is installed, check that the voucher banner setting exists and use it to enable and disable the voucher banner across the site. The voucher banner will display on all pages on desktop but only on category pages (and not pdps) on mobile.Configuration > Settings > All Settings
Scroll to bottom
Find Setting: vouchersettings.showbanner
Value: True (if you would like to show the banner)
Value: False (if you would not like to show the banner)
Add Review voucher language strings
Configuration > Languages > Edit
Use the table below to add view and modify the string resource and value by filling in the information and selecting “Add New Record” (see below for example)searching for the appropriate string and verifying/replacing values as desired
Description | String Resource | Current Value | Placement |
Page Banner | voucher.plugin.cta.text | GOT A BUDDY PASS? OR OTHER VOUCHER TO REDEEM? DO IT IN ONE CLICK HERE: | Across the top of page beneath menu |
Page Banner Input Box | voucher.plugin.input.text | YOUR VOUCHER NUMBER | Inside text entry box in banner |
Voucher Popup | voucher.plugin.modalheader.text | Voucher Validation | Title of voucher popup |
Voucher Popup | voucher.plugin.validationwait.text | Please wait while we validate your voucher code. | Appears within popup if validation is not immediate. |
Voucher Popup | voucher.plugin.validationsuccess.text | Voucher code successfully verified. Click redeem to continue. | Appears within popup once code successfully verified. |
Voucher Popup | voucher.plugin.invalidcode.text | Voucher code is invalid. | Appears within popup if code is invalid or other error occurs. |
Voucher Popup | voucher.plugin.continuebutton.text | Redeem | Appears within popup - button |
Voucher Popup | voucher.plugin.button.label | confirm voucher | Appears within banner- button |
...