Page 1 of 1

Capitalising All Interspire Checkout Information

Posted: Sun Jul 29, 2012 3:51 pm
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.

Re: Capitalising All Interspire Checkout Information

Posted: Mon Jul 30, 2012 11:31 am
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.