Announcement

Collapse
No announcement yet.

Can I automatically capitalise the text that customers put into the Coupon Code field

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

    Can I automatically capitalise the text that customers put into the Coupon Code field

    If you enter all of your coupon codes into the software in capitals and want your customers to be able to add them into the coupon code field in any format then you can do the following to automatically capitalise the text in that field:

    * go to the 'Design' menu and select 'Library'
    * on the 'Layouts' tab, expand the 'Checkout Area' group (click the '+')
    * double-click on the 'Coupon Entry Field' layout to edit it
    * search for:

    <input type="text" name="COUPONCODE" size="20" maxlength="255" value="<Actinic:Variable Name="CouponCode"/>" />

    * change this to:

    <input type="text" name="COUPONCODE" size="20" maxlength="255" value="<Actinic:Variable Name="CouponCode"/>" onblur="this.value=this.value.toUpperCase();" />

    * click 'OK'
    * then, in the Library, expand the 'Coupon Entry Field' group
    * make the following change to each of the three layouts in this group:

    search for:

    <input type="text" name="COUPONCODE" size="12" maxlength="255" value="<actinic:variable name='CouponCaption' />" onfocus="this.value='';" />

    change it to:

    <input type="text" name="COUPONCODE" size="12" maxlength="255" value="<actinic:variable name='CouponCaption' />" onfocus="this.value='';" onblur="this.value=this.value.toUpperCase();" />

    * click 'Apply'
    * update the site.

    With thanks to Graham Bradley for posting this solution on the SellerDeck Community.
Working...
X