Capitalising All Interspire Checkout Information

Modules, Add-ons and custom code that's more than just a quick hack or Mod.
Post Reply
busi6292
Posts: 54
Joined: Thu Aug 13, 2009 1:27 am

Capitalising All Interspire Checkout Information

Post by busi6292 »

Why can't people have some pride and write their name CORRECTLY upon creating an account or on checkout! i.e write John Smith instead of john smith. Ditto for their address.

It's frustraing as it makes the postcode difficult to read, invoices unprofessional and when it comes to automatic emails and it says Hi john, it's not a good start.

I have the following code but I'm unsure of how the below can be 'actioned':

Code: Select all

<script type="text/javascript">
function CALL(str) 
{ 
    return str.replace(/\w\S*/g, function(txt){return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();}); 
} 

</script>
Does anyone have any ideas please. I'm guessing this would help most people who get more than a handful of orders a day.

Thanks in advance.
bart
Posts: 57
Joined: Wed Sep 08, 2010 5:40 pm
Location: UK

Re: Capitalising All Interspire Checkout Information

Post by bart »

I know what you mean. It would be a nice extra as it gives everything a tidy more professional look.

It however gets harder to implement when you have to consider names with two capitols such as McCloud or towns such as Stoke-on-Trent.

I'd just go with capitalising the title, town and postcode fields.

Not sure about implementing this though.
Post Reply