Miva Merchant 4 Module FAQs » Coupon Manager (DEN_COUPON)


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.

<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">

Last update: 2004-04-21 08:50
Author: Support
Revision: 1.0

Print this record Send FAQ to a friend Show this as PDF file
Please rate this FAQ:

Average rating: 0 out of 5 (0 Votes )

completely useless 1 2 3 4 5 most valuable

You cannot comment on this entry