Problem of systematic opening of cities list associated with a postal code
-
Hello APG Team,
I hope all your team is okay.
Thank you again for your very useful plugin.
As you know, the list of available cities (when there are several) for a given postal code opens automatically when the order page is loaded. This happens for customers who have already entered a zip code and return to the order page (or the address page of their account).
Of course, I understand why you did this. Indeed, in your plugin process the cities associated with a zip code are checked each time the form fields are loaded. And the first item in the list is automatically selected… so the user has to check his city again…
The problem with this is that from time to time we have new/old customers who, after selecting the right city, go back to the order page but close this list (by clicking elsewhere) which has no real reason to reopen in their case.
On the other hand the list of cities corresponding to the delivery address zipcode also opens in the top left corner of the screen.
The result is that the user selected city is then replaced by the first one in the list and the packages we send to the wrong address are returned to us.
Ideally, the city should remain stored (which is already the case natively in WooCommerce) and the list of cities should not reopen until there is a change of postcode. In addition to a better ergonomic process, performance will also be improved since in this case it will be useless to call the Geonames API (or other) as long as the postcode is not changed.
Do you think you can improve this point in your javascript code? Perhaps you had already thought about it and this opening of the list was only a temporary solution, wasn’t it?
For information, only WooCommerce and your plugin are activated (and up to date).
Thank you in advance.
Best Regards,
Sylvain
- The topic ‘Problem of systematic opening of cities list associated with a postal code’ is closed to new replies.