{docurl}
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
Records in this category
- I installed Coupon Manager, but the coupon prompt is not appearing.
- Once I enter a coupon it remains in the basket even if I leave and come back.
- MMUI Installation Instructions For Coupon Manager
- Installing Coupon Manager
- Can I add a redeem coupon form to the basket contents page?
- How can I integrate Coupon Manager with Other Page Templates?
- Can I generate a random coupon code using a token?
- Where do I find the coupon log file?
- Error Code: DEN_COUPON-0001














