coupon code field

Discussion in 'Templates customization' started by pascalevdb, Oct 28, 2008.

  1. pascalevdb

    pascalevdb Member

    Joined:
    May 30, 2007
    Messages:
    41
    On my current sign up page, I have enabled the coupon code field.

    I would like to have the sign up page automatically add a specific coupon code in the field. Also, Customer could still delete coupon code to add their unique coupon code.

    The reason for this is many customers forget to add their coupon code, then once they get to the credit card page, and see it not discounted, they do not complete the payment page.

    If this isn't possible, maybe I could move the coupon code field to the top of the sign up page. Can someone tell me how to do this?

    thank you in advance.
  2. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    Maybe placing something like this at the top of the signup.php page:
    after the <?php

    if ($_REQUEST['coupon'] == "")
    { $_REQUEST['coupon'] = "couponcode"; }

    David
  3. pascalevdb

    pascalevdb Member

    Joined:
    May 30, 2007
    Messages:
    41
    Good evening and thank you for your response.

    Please help a woman who is completely clueless about programing understand your suggestion.

    if ($_REQUEST['coupon'] == "")
    { $_REQUEST['coupon'] = "couponcode"; }

    Would I put my coupon code number somewhere in those lines? Assuming my coupon code is ABCDE, where would the coupon code go?

    Thank you in advance.
  4. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    replace couponcode with your coupon code.

    if ($_REQUEST['coupon'] == "")
    { $_REQUEST['coupon'] = "ABCDE"; }

    David
  5. pascalevdb

    pascalevdb Member

    Joined:
    May 30, 2007
    Messages:
    41

Share This Page