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

Option to combine city and state #49

Open
securevault opened this issue Jun 18, 2022 · 2 comments
Open

Option to combine city and state #49

securevault opened this issue Jun 18, 2022 · 2 comments

Comments

@securevault
Copy link

The basic rule for form conversion rate is to have as few field as possible.

For some countries with few city selection we can just show the city field, hiding the state field.

This is how it works in the background:
-) we hide the original woocommerce's city and state fields
-) we will create a new field called city_state which will list all the cities for the current country.
-) after user select the city, we update the hidden woocommerce's city and state fields

@erikdemarco
Copy link

Nice idea.

This can be applied to all countries even with those which have big list of cities without affecting performance.

We just need to call Ajax when user starts typing and return all cities in that country which starts with that words. Just to make sure we need to return the shortest length first just in case the city name is short

@Mantish
Copy link
Member

Mantish commented Sep 14, 2022

hi, sorry for the very late reply. I agree it's a nice idea. Thanks!
I won't be able to implement this myself but I'll be happy to review any PRs about this

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

No branches or pull requests

3 participants