Announcement

Collapse
No announcement yet.

Case Sensitive Order Tracking

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

    Case Sensitive Order Tracking

    Had a look around, and couldn't find any solution to this.... But...

    Is there any way to stop the order tracking being case sensitive?

    It only seems to be the order number box that makes the difference, and as all order numbers are uppercase it seems a little pointless.

    Thanks

    Andrew

    #2
    Easiest solution I think would be to create a JS function to covert the entry made into capitals and then have an onchange call from the input to this function when they enter/change the order number within this field.

    Comment


      #3
      Here you go..

      Place the code below into your site (either: in the page source, external JS file or however you wish).

      Code:
      function DoCapitalizeString(string) {
      tmpStr = string.toUpperCase();
      return tmpStr;
      }
      Then, go into your 'My Account Bulk Area' layout and locate the line:

      Code:
      <input type="text" name="LOOKUP_ORDER_NUMBER" size="20" maxlength="60" />
      It should be around approx line 211.

      Add:

      Code:
       onchange="this.value = DoCapitalizeString(this.value)"
      So that you end up with something akin to:

      Code:
      <input type="text" name="LOOKUP_ORDER_NUMBER" size="20" maxlength="60" onchange="this.value = DoCapitalizeString(this.value)" />
      And that should do the trick.

      Comment

      Working...
      X