Announcement

Collapse
No announcement yet.

Upper case/capitals in Postcode and Town

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

    Upper case/capitals in Postcode and Town

    I want the Postcode and Town when the customer enters their invoice and delivery address to be automatically converted to upper case/capitals. I have successfully done this following Norman's suggestion in an old posting -
    <input type="text" style="text-transform:capitalize" . However, when the orders come into Actinic and into Sage, the town and postcode are in lower case. The system seems to record what the customer typed, not what it converted to. This makes it detrimental, as the customer will think they have typed in caps when they haven't. Any suggestions as to how the capitals can be maintained, preferably without doing the javascript route?

    Sarah

    #2
    That text-transform idea didn't work. I'm pretty sure that the suggestion was made in the middle of a thread and corrected later.

    If you search you should find a choice of solutions, one JavaScript and another via Perl patches.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Dear Sarah,

      I have implemented the solution here:-

      http://community.actinic.com/showthread.php?t=11364

      which works perfectly excluding if the customer ships to a seperate address, then for some reason the delivery postcode remains in whatever format the customer types in. However, having run it for a good while now I am finding only 1 in a 100 or so orders need reformatted. Most people, it would appear, do type their postcode in CAPS.

      Dave
      Cheers

      David
      Located in Edinburgh UK

      http://twitter.com/mcfinster

      Comment


        #4
        Sorted

        Thanks Dave and Norman. I have this running successfully, using the javascript in the Act_PrimaryCheckout template and the code in the input tags in the Order01 template. It may not change when the customer types, but it comes in correct in Actinic and Sage - brilliant. Next task is to get rid of the United Kingdom bit.

        Sarah

        Comment


          #5
          Great. You could always add the text-transform bit of CSS in too as this would let the customers see what you'll get.
          Norman - www.drillpine.biz
          Edinburgh, U K / Bitez, Turkey

          Comment

          Working...
          X