WooCommerce Multiple Addresses

Themehigh
4 min readJan 15, 2019

--

In today’s world, where online shopping is the rule rather than the exception, the necessity of storing multiple addresses in a profile/account is becoming more and more the norm. The WooCommerce Multiple Addresses Pro plugin helps you achieve this by allowing your shoppers to save multiple customer addresses to their My Account page. Made to be highly integrated with WordPress, WooCommerce and other development best practices, the WooCommerce Multiple Addresses Pro for multiple billing and shipping addresses is one of ThemeHigh’s highly robust and flexible plugins. The plugin comes with the best and proven customer support services. As it is fully compatible with other highly rated plugins from ThemeHigh, you can thus build a robust and elegant checkout form.

In the advanced settings tab, the following are available:

  1. Address Autofill: This option allows you to enable the billing address autofill with the help of a Google Maps API Key. A checkbox is provided to enable or disable autofill anytime.
  2. Address Format Override: With the address format overrides option, you can rearrange the address fields according to your comfort.
  3. Backup & Import Settings: This option allows you to copy the current plugin settings and import them to the plugin in another WordPress site.

Address Autofill

Using the address autofill option, you can autofill the billing address fields. When you start typing in the address field, the plugin will display a list of existing addresses from Google Maps, from which you can choose one.

To set up the autofill option,

  1. Click on Click here to get your API Key » and follow Google’s instructions to purchase your API key. If you already own an API key, skip this step.
  2. To enable the autofill option, tick the checkbox Enable Address Autofill for billing.
  3. Enter your API key in the Google Maps API Key field.
  4. Save the changes.

Address Format Override

WooCommerce has already provided a default format for the billing and shipping addresses. These address formats will be different for each country. With the address format override option, you can rearrange the address fields as necessary. To override the address fields,

  1. Go to the Advanced Settings tab.
  2. Create or add a custom format with the names of the rearranged address fields, in the Address Format Override field.
  3. Click on Save changes after editing the Address Format Overrides.

Other than rearranging the existing fields, you can add the custom fields created by the WooCommerce Checkout Field Editor Pro to the custom format for overriding. Following are the address override formats for default and other countries:

  1. default‘ ⇨ “{name}\n{company}\n{address_1}\n{address_2}\n{city}\n{state}\n{postcode}\n{country}”
  2. AU‘ ⇨ “{name}\n{company}\n{address_1}\n{address_2}\n{city} {state} {postcode}\n{country}”
  3. AT‘⇨ “{company}\n{name}\n{address_1}\n{address_2}\n{postcode} {city}\n{country}”
  4. BE‘⇨ “{company}\n{name}\n{address_1}\n{address_2}\n{postcode} {city}\n{country}”
  5. CA‘⇨ “{company}\n{name}\n{address_1}\n{address_2}\n{city} {state} {postcode}\n{country}”
  6. CH‘⇨ “{company}\n{name}\n{address_1}\n{address_2}\n{postcode} {city}\n{country}”
  7. CL‘⇨ “{company}\n{name}\n{address_1}\n{address_2}\n{state}\n{postcode} {city}\n{country}”
  8. CN‘⇨ “{country} {postcode}\n{state}, {city}, {address_2}, {address_1}\n{company}\n{name}”
  9. CZ‘⇨ “{company}\n{name}\n{address_1}\n{address_2}\n{postcode} {city}\n{country}”
  10. DE‘⇨ “{company}\n{name}\n{address_1}\n{address_2}\n{postcode} {city}\n{country}”
  11. EE‘⇨ “{company}\n{name}\n{address_1}\n{address_2}\n{postcode} {city}\n{country}”
  12. FI‘⇨ “{company}\n{name}\n{address_1}\n{address_2}\n{postcode} {city}\n{country}”
  13. DK‘⇨ “{company}\n{name}\n{address_1}\n{address_2}\n{postcode} {city}\n{country}”
  14. FR‘⇨ “{company}\n{name}\n{address_1}\n{address_2}\n{postcode} {city_upper}\n{country}”
  15. HK‘⇨ “{company}\n{first_name} {last_name_upper}\n{address_1}\n{address_2}\n{city_upper}\n{state_upper}\n{country}”
  16. HU‘⇨ “{name}\n{company}\n{city}\n{address_1}\n{address_2}\n{postcode}\n{country}”
  17. IN‘⇨ “{company}\n{name}\n{address_1}\n{address_2}\n{city} — {postcode}\n{state}, {country}”
  18. IS‘⇨ “{company}\n{name}\n{address_1}\n{address_2}\n{postcode} {city}\n{country}”
  19. IT‘⇨ “{company}\n{name}\n{address_1}\n{address_2}\n{postcode}\n{city}\n{state_upper}\n{country}”
  20. JP‘⇨ “{postcode}\n{state} {city} {address_1}\n{address_2}\n{company}\n{last_name} {first_name}\n{country}”
  21. TW‘⇨ “{company}\n{last_name} {first_name}\n{address_1}\n{address_2}\n{state}, {city} {postcode}\n{country}”
  22. LI‘⇨ “{company}\n{name}\n{address_1}\n{address_2}\n{postcode} {city}\n{country}”
  23. NL‘⇨ “{company}\n{name}\n{address_1}\n{address_2}\n{postcode} {city}\n{country}”
  24. NZ‘⇨ “{name}\n{company}\n{address_1}\n{address_2}\n{city} {postcode}\n{country}”
  25. NO‘⇨ “{company}\n{name}\n{address_1}\n{address_2}\n{postcode} {city}\n{country}”
  26. PL‘⇨ “{company}\n{name}\n{address_1}\n{address_2}\n{postcode} {city}\n{country}”
  27. PT‘⇨ “{company}\n{name}\n{address_1}\n{address_2}\n{postcode} {city}\n{country}”
  28. SK‘⇨ “{company}\n{name}\n{address_1}\n{address_2}\n{postcode} {city}\n{country}”
  29. SI‘⇨ “{company}\n{name}\n{address_1}\n{address_2}\n{postcode} {city}\n{country}”
  30. ES‘⇨ “{name}\n{company}\n{address_1}\n{address_2}\n{postcode} {city}\n{state}\n{country}”
  31. SE‘⇨ “{company}\n{name}\n{address_1}\n{address_2}\n{postcode} {city}\n{country}”
  32. TR‘⇨ “{name}\n{company}\n{address_1}\n{address_2}\n{postcode} {city} {state}\n{country}”
  33. US‘⇨ “{name}\n{company}\n{address_1}\n{address_2}\n{city}, {state_code} {postcode}\n{country}”
  34. VN‘⇨ “{name}\n{company}\n{address_1}\n{city}\n{country}”

In case of adding more than one custom format, separate them with pipes ( | ).

Custom Section Settings Tab

The custom section settings enables adding a multiple addresses option to a custom section. Follow these steps to add the multiple addresses option:

  1. Navigate to the Custom Section Settings tab in the Multiple Addresses plugin settings.
  2. Select your custom section from the Select custom section pull-down.
  3. Select a default section (billing/shipping) with the data which you have to add to the corresponding custom section.
  4. Click on +Add new mapping. Two select boxes appear.
  5. In the first select box, select the field from the default section to be mapped.
  6. In the second field, select the field in the custom section to which the default field should be mapped.
  7. Map all required fields similarly.
  8. Save changes.
  9. Now, you can see a Choose a different address link at the top of the custom section. Click on the link, and select the required address from the pop-up.

Search for:

--

--

Themehigh
Themehigh

Written by Themehigh

Themehigh develops WordPress and WooCommerce plugins that are being used by 2 million users around the globe.

No responses yet