View Categories

How can I Change the Address Format?

You can change how the address appears in your store listings by customizing the JSRender template. Instead of the default {{:address}}, use your own format with the specific fields you want (street, city, postal code, state, country, etc.).

Note: Since version 4.7.10, you should customize templates in the Customizer tab under ASL Settings, not by editing plugin files directly.


How to Apply a Custom Address Format #

  1. Go to: ASL Settings > Customizer.
  2. Open the template you want to edit (e.g., store listing or infobox).
  3. Find the current address field, usually: {{:address}}
  4. Replace it with the address format you need (examples below).
  5. Click Update File and refresh your Store Locator page to see the new format.

Template Variables You Can Use #

VariableMeaning
{{:street}}Street name & number
{{:city}}City or locality
{{:state}}State, province or region
{{:postal_code}}ZIP / postal code
{{:country}}Country

You can arrange them in any order to match local conventions.


Popular Address Formats #

USA (Domestic) #

{{:street}}
{{:city}}, {{:state}} {{:postal_code}}
{{:country}}

or shortened:

{{:street}}, {{:city}} {{:state}} {{:postal_code}}

US addresses typically place street first, then city, state, and ZIP code.


US (International Mail) #

{{:street}}
{{:city}}, {{:state}} {{:postal_code}}
UNITED STATES

When sending from abroad, write the country name in full on the last line.


Common European Formats #

European countries vary widely, but most follow this structure: street first, then postal code + city, and optionally country.

General EU Format #

{{:street}}
{{:postal_code}} {{:city}}
{{:country}}

France #

{{:street}}
{{:postal_code}} {{:city}}
FRANCE

Postal code goes before the city name.

Germany #

{{:street}}
{{:postal_code}} {{:city}}
GERMANY

UK #

{{:street}}
{{:city}}
{{:postal_code}}
UNITED KINGDOM

In several EU countries, the postal code often precedes city names.


Other International Formats #

Canada #

{{:street}}
{{:city}} {{:state}} {{:postal_code}}
CANADA

Australia #

{{:street}}
{{:city}} {{:state}} {{:postal_code}}
AUSTRALIA

Japan #

{{:postal_code}}
{{:state}}{{:city}}{{:street}}
JAPAN

General International (recommended for mail) #

{{:street}}
{{:city}} {{:state}} {{:postal_code}}
{{:country}}

Putting the country on the last line helps ensure correct routing by postal services
address format

How to change the address format?