The purchase confirmation dialog is displayed to a member when they click a 1-click purchase link indicating that they want to purchase a product using their card on file. 1-click purchase links are only supported if your site is configured to use an onsite payment method that supports card-on-file functionality. By default, the purchase confirmation message will look something like this:





You have complete control of the message that's displayed to the member on a product-by-product basis. This includes the ability to allow members to apply a coupon code.



How to Add a Coupon Code field:


  1. Go to Product Settings > Products and click the 'pencil' icon next to the Product you want to add a coupon code field for.

  2. Next, scroll down to the Purchase Confirmation Message area. Here you'll see that you have the ability to Insert a Template to 'Collect Shipping Info and Coupon Code'.



  3. Once you click on that link to insert the template, you'll see that you have three sections of information: Order Details; Shipping Information fields and Coupon Code fields.


    [MM_Form type='1clickPurchase']
    Product Name: [MM_Form_Data name='productName']<br/>
    Product Description: [MM_Form_Data name='productDescription']<br/>
    Product Price: [MM_Form_Data name='productPrice']<br/>
    Shipping Price: [MM_Form_Data name='shippingPrice']<br/>
    Discount: [MM_Form_Data name='discount']<br/>
    Total Price: [MM_Form_Data name='totalPrice']

    [MM_Form_Section type='shippingInfo']
    <br/><br/>
    Shipping Information<br/>
    Shipping Method: [MM_Form_Field name='shippingMethod']
    <br/><br/>
    Address: [MM_Form_Field name='shippingAddress']<br/>
    City: [MM_Form_Field name='shippingCity']<br/>
    State: [MM_Form_Field name='shippingState']<br/>
    Zip Code: [MM_Form_Field name='shippingZipCode']<br/>
    Country: [MM_Form_Field name='shippingCountry']
    [/MM_Form_Section]

    [MM_Form_Section type='coupon']
    <br/><br/>
    Coupon Code: [MM_Form_Field name='couponCode']
    <a href="[MM_Form_Button type='applyCoupon']">Apply Coupon</a><br/><br/>
    [MM_Form_Message type='couponSuccess']
    [MM_Form_Message type='couponError']
    [/MM_Form_Section]
    [/MM_Form]



  4. This information can be customized however you'd like. For example, if you only want to allow a coupon code to be applied, then you can remove the Order Details and Shipping form sections. You may also want to add a prompt up top that tells your member what they are about to purchase and the total price below. So your final code with a coupon code field could look like this:


    [MM_Form type='1clickpurchase']
    You're about to purchase [MM_Form_Data name='productName'].
    
    [MM_Form_Section type='coupon']
    <br/><br/>
    Have a Coupon Code?  [MM_Form_Field name='couponCode']
    <a href="[MM_Form_Button type='applyCoupon']">Apply Coupon</a><br/><br/>
    [MM_Form_Message type='couponSuccess']
    [MM_Form_Message type='couponError']
    [/MM_Form_Section]
    
    <br/><br/>
    Your card will be billed [MM_Form_Data name='totalPrice'].
    
    [/MM_Form]



  5. Once you're satisfied with your message, click 'Save Product'.

  6. (Optional) Depending on the amount of content you put in this field you may need to adjust the size of the purchase confirmation dialog. Read this article for instructions on how to change the size of the purchase confirmation dialog.