Max Posted December 10, 2013 Report Posted December 10, 2013 Address format displayed on invoices and elsewhere should be configurable by country. Some countries have zip code before city name, some have it after. Some expect state/province to be included, many do not. Quote
Trev Posted January 21, 2014 Report Posted January 21, 2014 +1 for this. At the very least the State/Province field should be optional and not displayed if left blank. Quote
velaware Posted January 21, 2014 Report Posted January 21, 2014 Worst case couldn't you edit the invoice template you use to reflect this? Quote
Trev Posted January 21, 2014 Report Posted January 21, 2014 Yes I have already done so but not everyone is comfortable editing php scripts. The address displayed on the client's dashboard will also look strange to them (the three letter state) so that would be another script to edit. Quote
Cody Posted January 25, 2014 Report Posted January 25, 2014 This is something we've had on our radar for a while. I definitely want to include something like this. We did some research on different address formats in the past, but couldn't find solid information on any particular country outside the US, CA, and GB. Ideally we'd like to include address profiles for most countries, so users don't have to put so much effort into configuration (having to define address formats for 200 countries sucks). Understandably, most users don't do business with most countries, but if we had a database of the top 30 or 40 countries that would be a big help in getting this done. Here are the different address components: First name Last name Company name Address line 1 Address line 2 City State/Province (local name, ISO 3166-2 subdivision code) Country (English name, local name, ISO 3166-1 2-char and ISO 3-char code) Zip/Postal code Some countries may not recognize ISO codes for province (I believe all do for Country), so it may be necessary to display province name instead of ISO code. These are all things that need to be decided on a per-country level (or perhaps even per province?). Michael 1 Quote
Trev Posted January 25, 2014 Report Posted January 25, 2014 This might point you in the right direction: http://bitboost.com/ref/international-address-formats.html#Formats Quote
Cody Posted January 28, 2014 Report Posted January 28, 2014 Added CORE-1008. Trev and Michael 2 Quote
tfcheng Posted January 28, 2015 Report Posted January 28, 2015 hi, sorry for bringing back this old thread. since i have been directed here, i guess it is alright to ask. i am second day into blesta, and i am not sure what is CORE-1008 or which files/settings can i edit to remove this state/province as it doesnt not apply to my country.t the link being suggested above is not working. Quote
Michael Posted January 28, 2015 Report Posted January 28, 2015 hi, sorry for bringing back this old thread. since i have been directed here, i guess it is alright to ask. i am second day into blesta, and i am not sure what is CORE-1008 or which files/settings can i edit to remove this state/province as it doesnt not apply to my country.t the link being suggested above is not working. CORE-1008 is the To-do list number. CORE => It's part of the CORE of Blesta. and the number is the ID in the http://dev.blesta.com/browse/CORE to-do list Quote
tfcheng Posted January 28, 2015 Report Posted January 28, 2015 hi, thanks for the link. so can i understand that the issue has not been resolved? is there any workaround? Quote
Cody Posted January 28, 2015 Report Posted January 28, 2015 hi, sorry for bringing back this old thread. since i have been directed here, i guess it is alright to ask. i am second day into blesta, and i am not sure what is CORE-1008 or which files/settings can i edit to remove this state/province as it doesnt not apply to my country.t the link being suggested above is not working. What is your country? Quote
tfcheng Posted January 30, 2015 Report Posted January 30, 2015 What is your country? hi cody, i'm in singapore. basically only address and postal code applies. Quote
Cody Posted January 30, 2015 Report Posted January 30, 2015 hi cody, i'm in singapore. basically only address and postal code applies. I see. So while Signapore does have ISO 3661-2 subdivisions codes, those codes are not used in addressing. Quote
Max Posted January 31, 2015 Author Report Posted January 31, 2015 I see. So while Signapore does have ISO 3661-2 subdivisions codes, those codes are not used in addressing. Same in most other countries outside of North America. That we have provinces has to do with politics and management, the mail man wouldn't care less. The ZIP codes of some countries include alphanumeric characters as well (1234 AB), and are used by the automated systems of the postal services to sort mail. Including strange unexpected and unrelated province codes in the address will get those systems confused, and is a good way for mail to get delayed... == A somewhat related feature request -that could potentially be added to the same "international address format configuration" admin interface- is the option to add regex validation rules by country, for zip, phone number and address line fields. http://www.blesta.com/forums/index.php?/topic/1624-internationalization-regex-checks-on-address-fields-depending-on-country/ Quote
tfcheng Posted February 2, 2015 Report Posted February 2, 2015 Same in most other countries outside of North America. That we have provinces has to do with politics and management, the mail man wouldn't care less. The ZIP codes of some countries include alphanumeric characters as well (1234 AB), and are used by the automated systems of the postal services to sort mail. Including strange unexpected and unrelated province codes in the address will get those systems confused, and is a good way for mail to get delayed... == A somewhat related feature request -that could potentially be added to the same "international address format configuration" admin interface- is the option to add regex validation rules by country, for zip, phone number and address line fields. http://www.blesta.com/forums/index.php?/topic/1624-internationalization-regex-checks-on-address-fields-depending-on-country/ hi max, thanks for the explanation. while i know the mail man wouldnt care much, but i am not sending out by snail mail, hence whether or not the mail man cares isnt much of a concern, it just doesnt look too right with the additional (and unnecessary) information on my document. you know, you want important documents like this to look nice and right (how everybody else does it locally) before it reaches to your client. so back to my question again, is there a workaround or can i do any modification to the php files, like just removing that variable? Quote
tfcheng Posted February 4, 2015 Report Posted February 4, 2015 hi guys, i managed to "fix" this by editing components/invoice_templates/default_invoice/default_invoice_pdf.php, line 492, leaving only $address .= $this->invoice->billing->city . " " . $this->invoice->billing->zip; thanks guys! Quote
ahmadshamli Posted October 25, 2020 Report Posted October 25, 2020 how about to make it as an option, which user/admin can choose how to display them. either to display states or country as name, number or iso codes, or not display at all. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.