Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

International Shipping Address Format/ Fields #783

Closed
jkthng opened this issue Mar 11, 2012 · 3 comments
Closed

International Shipping Address Format/ Fields #783

jkthng opened this issue Mar 11, 2012 · 3 comments
Milestone

Comments

@jkthng
Copy link

jkthng commented Mar 11, 2012

For shipping addresses, Woocommerce currently supports the current fields:

  • Name
  • Surname
  • Company name
  • Address 1
  • Address 2
  • Town/City
  • Postcode/ Zip
  • Country
  • State/Country
  • Email Address
  • Phone

For international shipping address, the above fields are not suitable. Is there any plans to customize the available address format/ fields based on the country selected?

For my use case, I would like to:

In addition, I would like to:

  • Change "Town/City" field to become a select list, and pre-load it based on which country is selected

Hope that you can guide me through the process on how to achieve partial (or full) functionality described above by writing a custom plugin.

Thank you!

Some links on related topics:

I have also cross-posted this at http://www.woothemes.com/support-forum/?viewtopic=74646

@mikejolley
Copy link
Member

We already handle locales which don't have postcodes and other required fields - if we're missing your country let us know the details so we can add it. We also handle address formats based on country. See the countries class.

As for changes such as modifying labels and inputs there are hooks available. I cannot code this for you so you may want to hire someone to make the changes.

Same for Town/City - custom functions and hooks should be able to do this (although this one may be a little more complicated).

@jkthng
Copy link
Author

jkthng commented Mar 13, 2012

@dleigh
Copy link

dleigh commented Sep 6, 2022

We already handle locales which don't have postcodes and other required fields - if we're missing your country let us know the details so we can add it. We also handle address formats based on country. See the countries class.

As for changes such as modifying labels and inputs there are hooks available. I cannot code this for you so you may want to hire someone to make the changes.

Same for Town/City - custom functions and hooks should be able to do this (although this one may be a little more complicated).

Doing some testing for address validation and the case of the country of Togo came up. Currently they do not have a postal code system, yet WC requires it on the address. Needing to go into the child-theme functions.php and set the "required" value to false.

Just letting you know as per the post above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants