Announcement

Collapse
No announcement yet.

Coupon code case

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Coupon code case

    Can I ask for a change in the coupon operation online? It would be nice if the coupon could be made case insensitive. Currently the user must enter the coupon exactly as we specify, but it would be good to allow them to enter it any way that makes sense. Thus "COUPON" could be entered as "Coupon" or "coupon". Using upper case looks better in text, but it is less easy for the user to type.

    Thanks!
    Matthew

    #2
    Hello

    I had this problem and added to the form submission:

    if (document.forms[0].COUPONCODE.value.toUpperCase() == "YOURCOUPONCODE"){

    //accept form and submit - document.forms[0].submit

    }

    else {

    alert('Wrong code');
    }

    Solved the issue.
    http://www.johnsons-seeds.com - Actinic plugins, remote add to cart and custom CMS
    http://www.dtbrownseeds.co.uk - More seeds and plants....
    http://www.mr-fothergills.co.uk - Well it used to be Actinic...

    Comment


      #3
      Thanks - I may implement that. Would be nice to have it supported though!
      Matthew

      Comment


        #4
        I have also implimented a similar fix -- in this case adding a snippet of javascript to the coupon text field tag itself to turn the code into uppercase as soon as the shopper clicks off or hits submit:

        Code:
        onblur="this.value=this.value.toUpperCase();"
        This should of course be coupled with only ever using all-uppercase coupons!
        Martin Cutbill

        Amazingly using Actinic to sell Absinthe since V2

        Comment

        Working...
        X