The user can create coupons by logging in to the admin program and navigating to:
Miscellaneous -> Coupons page.
The form to enter the coupon code should be placed on the normal cart view page, either as part of one of the HTML segments used to construct the page, or the cart template (if the site uses a cart template). The form should submit an action of coupon_submit and the coupon code should be entered into the code field. The following is a simple example of such a form:
<ww:form_header> <input type="text" name="code" /> <input type="submit" value="Add Coupon" /> <input type="hidden" name="action" value="coupon_submit" /> </form>