kilbot / WooCommerce-POS

:bangbang: All development now at https://github.com/wcpos.
http://wcpos.com
GNU General Public License v3.0
353 stars 125 forks source link

Address format issue in receipt.php #105

Closed divabanana closed 9 years ago

divabanana commented 9 years ago

In the receipt.php template {{formatAddress store.address}} returns city and postcode on the same line. Is this deliberate? Other fields of the store address show as expected (one field per line).

kilbot commented 9 years ago

Yes, it's deliberate. This is the common address format for Australia and the USA.

In the next version I can change the address format based on locale using the WooCommerce countries class. Would this solve the issue for you?

divabanana commented 9 years ago

No probs. If it's the standard layout for most of your potential customers then that's cool. Don't worry about spending time on coding a fix for specific countries, at least not on my account (I'm sure there are core functions you'd rather spend your time on) - it's easy to sort as it stands. I removed the postcode from the store details and as I'm editing the receipt template anyway, just added it in after the address with a line break, hard coded as it were.