{docurl}
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
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














