WPPizza – A Restaurant Plugin for WordPress › Support › General Support › Problem with google maps address dropdown
- AuthorPosts
- 25 August, 2018 at 8:01 am #38916
Hi,
I am using the plugin deliver by postal code.
At the check out page, the plug in asks customer to type in their address. As the customer type, google shows a dropdown showing potential address options. If the user choose to select the address from the google dropdown instead of typing the whole address, then it would prompt an error “Sorry, the address selected is ambiguous or outside our serviecable area.”
Any suggestion?
25 August, 2018 at 8:04 am #38917This reply has been marked as private.27 August, 2018 at 12:49 pm #38944Hi
I will take the liberty to copy the essence of the issue here publicly so if anyone else comes across this topic it is somewhat easier to follow
—quote—
You can try typing in this address.
“122 Marin Pl”, then select the address from the google dropdown. In this case it would show the error.
If you try typing “122 Marin Pl, Woodland”, then everything is fine. FYI, Woodland is the name of the city.
————essentially , this – usually – has to do with how google returns addresses from the input dropdown
although you see whole address lines in the input box (none, one or multiple)
addresses are being split into – among other parts – housenumber, streetname, locality , zipcode etc
if for the selected address google does not return the housenumber part (as is the case with some addresses) the system says “ambiguous” as it is being made mandatory that a housenumber of some sort exists , else one would never know where exactly an order should be delivered to.regarding your particular case however , i cannot reproduce what you are describing.
when i type in “122 Marin Pl” and select from the dropdown i do not get any error at all and it works just fine from what i can seeIn fact, selecting from the dropdown would be the most reliable way of selecting an address and your place holder that states “Input your address. Please don’t select from the dropdown” would seem to me to pretty much defeat the point of using this whole thing in the first place.
of course, if google offers an address in the dropdown this is *outside* your set delivery area, then – naturally – selecting this *does* throw a “outside delivery area.. etc ” notice
I will also play with a couple of things here on my install locally with your addresses . Maybe i can force some problems somehow , but at the moment i cannot really see too much of an issue other than what i mentioned above regarding housenumbers etc generally
PS: I did also notice that your pages are minified, if not also cached. perhaps you have still something in your borowser cache that makes things throw erorrs you end ? When plygin around on your site I am also getting a ton of google maps js errors in the console (although as mentioned , the address selection works just fine for me)
have you tried – at least temporarily – to remove all caching and minification ?
31 August, 2018 at 4:24 am #39000This reply has been marked as private.31 August, 2018 at 10:28 am #39002>Were you using your desktop to reproduce issue? Seems like there’s no problem on mobile but desktop browsers are still not working.
yes, i did use a desktop …. without issues
1 September, 2018 at 5:34 am #39006> regarding your particular case however , i cannot reproduce what you are describing.
when i type in “122 Marin Pl” and select from the dropdown i do not get any error at all and it works just fine from what i can seePlease watch my uploaded video and test again. I tested it on multiple desktop browsers (Chrome, firefox, safari) on both Mac and PC, the problem still exist.
> In fact, selecting from the dropdown would be the most reliable way of selecting an address and your place holder that states “Input your address. Please don’t select from the dropdown” would seem to me to pretty much defeat the point of using this whole thing in the first place.
of course, if google offers an address in the dropdown this is *outside* your set delivery area, then – naturally – selecting this *does* throw a “outside delivery area.. etc ” notice
The delivery address provided is not outside delivery area.
3 September, 2018 at 11:55 am #39015>Please watch my uploaded video and test again. I tested it on multiple desktop browsers (Chrome, firefox, safari) on both Mac and PC, the problem still exist.
did exactly that on your staging site
i.e typed in “122 marin pl” then simply used the mouse to select the address from the dropdown available there . again , this worked just fine so cannot reproduce that particular issue (then again , in your video i cannot see any selection by the mouse on the dropdown , though that might be because of the way the video capture worked)However, when messing around with things i did find something that *might* explain what you are seeing in your setup/scenario – even though I cannot reproduce this from here
give me until later today or tomorrow to make an update of the postcode plugin available and test things with that update. *perhaps* this will sort out your issue (and if it does not , at least I am certain it will fix some issues that might occur for others now or in the future)
3 September, 2018 at 11:11 pm #39025Oh Olly, I know why. I was not using my mouse to select drop the drop down. I used down arrow on my keyboard. Is it fixable?
4 September, 2018 at 12:19 am #39028the issue i’ve been talking about HAS something to do somewhat with using arrow keys / enter keys / tab keys etc
whether or not this will be exactly your issue i cannot tell you right now.
i’d suggest updating to the latest update when it’s available and check it then (and – in fact – let me know either way afterwards )it’s a bit of a trying to narrow things down somewhat (there are almost countless ways to interact with this thing with the setting of various options)4 September, 2018 at 11:54 pm #39056This reply has been marked as private.5 September, 2018 at 12:51 am #39060Thanks for the update Olly.
My site is currently using the latest plug in. Looking forward to your fixing patch and Will keep you updated once I try it.
9 September, 2018 at 10:42 pm #39158Hi Olly,
I upgraded the plugin on my stage site to the latest version released on Sept 4th. However, it seems like the problem is still there. Could you take a look?
Thanks!
9 September, 2018 at 11:53 pm #39159the first thing you need to do is turn off all your caching, minimization etc plugins or we have no idea what we are looking at
9 September, 2018 at 11:56 pm #39160Yes, the caching plugin is never activated on the stage site.
9 September, 2018 at 11:59 pm #39161it’s all cached/minified from what i can see. on any of your sites
13 September, 2018 at 10:49 pm #39252I honestly don’t know what else I can do. Caching plugins were already disabled, and now I even deleted it on the stage site. Really have no idea what else might cache/minify automatically for me.
14 September, 2018 at 3:02 pm #39256>I honestly don’t know what else I can do. Caching plugins were already disabled
maybe you were logged in (as admin) so you never saw the cached version. in any event – at least on your staging site – i am also now getting uncached and unminified content.
(might have been caused by some cache refresh time settings or something . who knows.)However, doing exactly what you I understand you had problmes with , it works there just fine now from what i can see.
I.e I type in “122 marin pl” , hit enter and it sets the address to be “122 Marin Place, Woodland, CA, USA” – i.e the first item of the dropdown available – as well as setting the delivery charges accordingly….15 September, 2018 at 1:35 am #39271hmm, somehow I can still reproduce the error on my side.
The way I do it is
1. type in “122 marin pl”
2. use the down arrow to select the first item from dropdown
3. enter
4. error message pop up15 September, 2018 at 7:17 pm #39283ok, i’ll have a look at that particular chain of events
16 September, 2018 at 2:06 am #39293i can actually get the same (non) result when i do the same thing here.
at first glance at least , this seems to be a race condition of some sort.
i’ll see what i can do on that front, but it will take a few days no doubt to narrow this down and account for this chain of events.
i’ll keep you posted….just give me a little bit - AuthorPosts
- The topic ‘Problem with google maps address dropdown’ is closed to new replies.