PDA

View Full Version : Address - USA states format: zones



ozdunker
06-19-2012, 12:07 PM
Hi

I have a question in relation to the way the States in the USA are presented.

On the emailed invoice the show up as the 2 letter short version of the State ie CA = California.

On the packaging slips and in the Admin section it shows the long version.

The State details are captured using a drop down list with the full state name.

So I would assume that this information is coming from zones.pho and therefore is an option of displaying the State name in either the long or short format.

Can someone please advise how I could change this in the admin and also on the packaging slips, invoice pdf etc.

At the same time I would be very happy if I could also put a space between the city and state eg "Greenville,South Carolina" which is what appears in the admin.
I would like it to show "Greenville SC"


Thank you

ozdunker
06-21-2012, 07:35 AM
/admin/includes/classes/orders.php
/admin/includes/functions/general.php

Had those files modified. Looks much tidier now.

pgmarshall
06-21-2012, 10:23 AM
I think you may find it easier and better to look at the address_format table in phpMyAdmin (or similar) to change the layout throughout your store.

I have never really understood why there isn't admin control for this ... perhaps there should be!

http://wiki.oscdox.com/countries#store_default_address_format

Regards,

ozdunker
06-22-2012, 05:23 AM
thanks for the advice