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
Dynamically hide/show and unrequire/require state fields based on country. #1050
Comments
Good call @Benunc, let me add a bit here. Further Description
Functionality When the donor changes the country field:
Please correct the above if the functionality has been defined incorrectly. Preview of Woo's Country Select Functionality:
|
Working on the about issue |
To Make the same that is being offered by WooCommerces we need to refactor the code.
2.our current functionality
|
Add new function and refactor some code
Change Place holder, Change JS condtion, Change ajax function
Notes where to check for dropdown
|
@raftaar1191 that sounds good. Let's proceed with the refactor. |
Add condition to check if country has states in it
Fix JS issue for states in give form
@ravinderk |
@raftaar1191 I noticed an issue with this functionality which is why I'm reopening it. Reopened Issue DescriptionIf you notice how Woo works, the label above the state field changes from just "State" (for instance the USA), to "State / Country" and "Province" according to the country selected. Our plugin should work exactly like this... Right now the label is simply "State / Province / Country" which is not an optimal UX. This is confusing to people in the US who are used to simply seeing "State". Likewise for other countries. Please fix and submit a new PR. Thanks |
Working on the above issues |
Here is the PR #1887 for the above issues |
Fix when user disable the floting label for the form
Issue Overview
We currently populate the state/province dropdown with separate state lists, depending on the country. Would be nice to (especially in places like the UK and Germany where there is no "state") either populate that field with "n/a" or make it go away all together.
And it definitely needs to not be a required field if we don't have a case for it in the list at https://github.com/WordImpress/Give/blob/master/includes/country-functions.php#L60
The text was updated successfully, but these errors were encountered: