It would be cool to add preset address formats for every country to the xy.inc files. We could start with what we have (and otherwise use the default format), and add the preset address format for other countries on request. I'm gonna take a look at this as well.
Comments
Comment #1
panchoTo start collecting:
us:
au:
br:
cn:
cz:
de:
hu:
it:
nl:
nz:
Comment #2
Phylock commenteddk:
we aint using the province parameter, didn't even know we had them until i was looking around in the module files.
Comment #3
VeeLin commentedThat would be great because creating a Canadian site and having to put up with "State / Province" isn't that great. I haven't edited Drupal code before although I'm somewhat familiar with PHP so if you wouldn't mind letting me know where I can edit this manually in the meantime that would be great.
V
Comment #4
Phylock commentedYou can do it in two places, if you only use a couple of themes put it in your theme "template.php" file. but if you use a lot of themes it might be easier to put it directly in the module /addresses/countries/[country code].inc
the function
where [country code] is replaced with the desired country code, example ca for Canada
the possible tokens are
hope it helps a little
Comment #5
brmassa commentedGuys,
thanks a lot. These data is now present on CVS. soon on the next release.
regards,
massa