How can I integrate Coupon Manager with Other Page Templates?
Use one of the following methods for integrating Coupon Manager with Other Page Templates.
Method 1 (must be used if you wish to use free shipping coupons)
This approach allows Coupon Manager to work as it does normally, with a redeem coupon button that reloads the OSEL screen.
1) Register a new 3rd Party Token for Coupon Manager in Other Page Templates. Use DEN_COUPON for the module code and token name.
2) In the "Checkout: Shipping/Payment Selection" (OSEL) template, add the following directly BEFORE the %beginform|OSEL|% token:
<font color="red"><b>
%module|DEN_COUPON|error|%
</b></font>
<form method="post" action="%var|g.secure_sessionurl|%">
<input type="hidden" name="Store_Code" value="%var|g.Store_Code|%">
<input type="hidden" name="Screen" value="OSEL">
<input type="text" name="DEN_COUPON_Code" size="25" maxlength="35" value="%var|g.DEN_COUPON_Code|%">
<input type="submit" value="Redeem Coupon">
</form>
If you have uploaded a Redeem Coupon Button, replace:
<input type="submit" value="Redeem Coupon">
With:
<input type="image" src="http://path/to/your/image" title="some text" border="0">
3) In the same template, click on the "Process Hooks" tab. In the "Page Load" tokens field, add
%module|DEN_COUPON|redeem|%
4) In the "Shipping List" tokens field, add
%module|DEN_COUPON|freeship|%
Method 2 (does not work with free shipping coupons)
This approach does not use a redeem coupon button, but rather just adds a textbox to input a coupon which is processed when clicking next to proceed to the OPAY screen. It is not compatible with free shipping coupons, however.
1) Register a new 3rd Party Token for Coupon Manager in Other Page Templates. Use DEN_COUPON for the module code and token name.
2) In the "Checkout: Shipping/Payment Selection" (OSEL) template, add the following directly AFTER the %beginform|OSEL|% token:
%module|DEN_COUPON|display|%
3) In the "Checkout: Payment" (OPAY) template, click on the "Process Hooks" tab. In the "Page Load" tokens field, add
%module|DEN_COUPON|redeem|%
4) In the same template, add the following somewhere towards the top to display error messages when entering invalid coupons.
<font color="red"><b>
%module|DEN_COUPON|error|%
</b></font>
Last update: 2004-09-01 03:27
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 ... - 2566 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 ...
















