Address format for different countries
-
Hello,
Is there a way to make the plugin adopt the Woocommerce custom formats for how addresses are displayed for different countries. For example, at the moment postcodes for danish addresses are displayed after the city (it should be before) on the invoice.
I am using the below standard WooCommerce code to control the formats of different countries as they appear in order e-mails and on the my account page and I guess my question more specififally is if it is possible to make the plugin read and implement this code, just like the order email customizer plugin I am using does?
Kind regards,
Rikkeadd_filter('woocommerce_localisation_address_formats','custom_woocommerce_localisation_address_formats'); function custom_woocommerce_localisation_address_formats($formats) { //$formats['default']="{name}\n{company}\n{address_1}\n{address_2}\n{postcode} {city}\n{state}\n{country}"; $formats['DK']="{company}\n{name}\n{address_1}, {address_2}\n{postcode} {city}\n{country}"; $formats['PT']="{company}\n{name}\n{address_1}\n{address_2}\n{postcode} {city}\n{state}\n{country}"; $formats['US']="{company}\n{name}\n{address_1}\n{address_2}\n{city}, {state_code} {postcode}\n{country}"; $formats['UK']="{company}\n{name}\n {address_2}\n{address_1}\n{city},{postcode}\n{country}"; $formats['DE']="{company}\n{name}\n{address_1}{address_2}\n{postcode} {city}\n{country}"; $formats['AU']="{company}\n{name}\n{address_2}\n{address_1}\n{city} {state_code} {postcode}\n{country}"; return $formats; }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Address format for different countries’ is closed to new replies.