Can I add a redeem coupon form to the basket contents page?
In recent versions of Coupon Manager, you can embed a coupon form into any header/footer/etc. using tokens. The instructions below are for use in the basket contents header using OpenUI Tokens. You can use a similar approach with Other Page Templates, and adjust the hidden Screen form field for use on the storefront or other screens.
First, register a new token for Coupon Manager in your store settings. Use DEN_COUPON for the module code and token name. Once registered, the following code will display a coupon form, and handle the processing of the form and displaying an error message if an invalid coupon code is entered. Again, this is for the basket contents header.
%OUI%
%module|DEN_COUPON|redeem|%
%module|DEN_COUPON|error|%
<form method="post" action="%VAR(g.sessionurl)%">
<input type="hidden" name="Store_Code" value="%VAR(g.Store_Code)%">
<input type="hidden" name="Screen" value="BASK">
<input type="text" name="DEN_COUPON_Code" size="10">
<input type="submit" value="Redeem Coupon">
</form>
Last update: 2004-04-21 08:50
Author: Support
Revision: 1.0
You cannot comment on this entry
Most Recent FAQ Entries: 
- Alternate ways to display the product and attribute data ... (2008-09-02 18:40)
- Adding both "Add All to Basket" and "Add to ... (2008-09-01 09:46)
- When adding a product to the basket from an ... (2008-08-27 19:02)
- I have the module configured to add the key ... (2008-08-13 14:50)
- What is the format for the htaccess file if ... (2008-08-12 14:50)
Top 10 
- 2939 views:
Adding Tokens to Evaluate Expressions - 2867 views:
Is there a way to "Limit" the number of ... - 2791 views:
Why won't you call me for technical support? I ... - 2678 views:
Are license keys valid for more than one store? ... - 2577 views:
I'm trying to enter a license key and get ... - 2567 views:
How do I install a module? - 2409 views:
How do I check for a module upgrade? - 2372 views:
How can display and change the parameters of an ... - 2218 views:
The total on my checkout pages are not correct. ... - 2016 views:
I have select and radio type attributes in my ...
















