Problem with google maps address dropdown

WPPizza – A Restaurant Plugin for WordPress Support General Support Problem with google maps address dropdown

Viewing 20 posts - 1 through 20 (of 23 total)
  • Author
    Posts
  • #38916
    hansenL
    Participant

      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?

      #38917
      hansenL
      Participant
        This reply has been marked as private.
        #38944
        Olly
        Admin & Mod

          Hi

          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 see

          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

          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 ?

          #39000
          hansenL
          Participant
            This reply has been marked as private.
            #39002
            Olly
            Admin & Mod

              >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

              #39006
              hansenL
              Participant

                > 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 see

                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.

                > 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.

                #39015
                Olly
                Admin & Mod

                  >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)

                  #39025
                  hansenL
                  Participant

                    Oh 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?

                    #39028
                    Olly
                    Admin & Mod

                      the 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)

                      #39056
                      Olly
                      Admin & Mod
                        This reply has been marked as private.
                        #39060
                        hansenL
                        Participant

                          Thanks 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.

                          #39158
                          hansenL
                          Participant

                            Hi 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!

                            #39159
                            Olly
                            Admin & Mod

                              the 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

                              #39160
                              hansenL
                              Participant

                                Yes, the caching plugin is never activated on the stage site.

                                #39161
                                Olly
                                Admin & Mod

                                  it’s all cached/minified from what i can see. on any of your sites

                                  #39252
                                  hansenL
                                  Participant

                                    I 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.

                                    #39256
                                    Olly
                                    Admin & Mod

                                      >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….

                                      #39271
                                      hansenL
                                      Participant

                                        hmm, 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 up

                                        #39283
                                        Olly
                                        Admin & Mod

                                          ok, i’ll have a look at that particular chain of events

                                          #39293
                                          Olly
                                          Admin & Mod

                                            i 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

                                          Viewing 20 posts - 1 through 20 (of 23 total)
                                          • The topic ‘Problem with google maps address dropdown’ is closed to new replies.