QR Code Not Contain Customer Map Position
-
Hi,
I set link type of new order email as QR Code.
but when I scan it just contains a link to google Maps without the shipping address that the customer set it.
like this:
https://www.google.com/maps/search/?api=1&query=,Note: Enable Places Autocomplete Feature is On
-
This topic was modified 3 years, 3 months ago by
salmonfarm.
-
This topic was modified 3 years, 3 months ago by
-
Hi, I think this might be a bug since its trying to create the QR code even if there’s no latitude and longitude.
When a customer uses the autocomplete feature there’s no way to actually get back a specific GPS coordinate because an address isn’t an exact pin point location
I will look a bit deeper into it and prevent QR codes or the button or static maps from being generated when there’s no latitude and longitude, and also confirm that this is how it works for the places autocomplete and let you know
Hi,
Generate QR code for customer location does not work when enabling select location from the map too.
anyway, I want to use autocomplete with QR code in the new order email.Hi, I just tested this and indeed I am accounting for coordinates returned by the Places API and letting the admin know that the coordinates returned would be an approximation when viewing the order, as seen here: https://prnt.sc/24p9bo9
There might be something else at play here, Can you upload some screenshots of your general settings for me please? That way I can try to replicate your setup to see if I can reproduce the issue. Be sure to not show your API key in the screenshots since this is a public forum.
Hi,
Thanks for your replying.
my setting in this picture :
https://drive.google.com/file/d/1vTetof_gMnCQoFnPNmgHl82JTPh6D0UJ/view?usp=sharingThank you, I see what’s happening here. By default I’m only grabbing the coordinates when the autocomplete is set for the shipping details fields. From your screenshot I can see you have it only applied on the billing address field.
If “Force shipping to the customer billing address” is set in WooCommerce then it would grab the coordinates.
Can you explain your usecase a bit as to why you have this setup? The reason Coordinates are not automatically pulled when using the places autocomplete for the billing fields is that a customer’s billing address might be different than the shipping address, example a friend in a community placing an order for a friend in a different community.
Since you only have Billing Address 1 selected does that mean you don’t allow shipping to a different address at checkout? If so, don’t you have the “Force shipping to the customer billing address” option checked in WooCommerce shipping options settings?
@salmonfarm I have made some changes to the feature to also attempt to get the coordinates whenever only “Billing Address 1” is selected. Please update to the latest version and try again.
Let me know how it goes
Hi,
I enabled “Force shipping to the customer billing address ” because we have online payment only with a third-party online payment gateway. so I don’t want billing information.
I just updated the plugin to the last version, but no QR Code image was sent to the new order mail.
I change the Link Type to button but still same problem, no Button was found in the new order mail.
There might be something else at play here as I’ve tested that shipping option and I can still see the Coordinates show up.
In the latest update the QR code no longer shows in emails if no coordinates were pulled during checkout.
Please send a message here so I can have a closer look at whats happening on your site: https://lpacwp.com/contact/
Hello,
I just updated the plugin to last version, the problem of sending QR image to new order mail is still there.
please can you check
website url: https://salmon-farm.com/new_website
thanksHi, thank you for sharing the link. I was able to identify the issue. It seems to be with the billing city field. You have a customized checkout which removed the field so there’s a console error happening which seems to be the cause of this.
I will release the fix in the next update. In the mean time you can add the Billing city field back to the checkout page which should fix this issue until the next version is released.
Hello,
kindly check again, I added the billing city field to the checkout page but the problem is still there.
the plugin works in autofill billing address only. the map is not shown on the review order page or on the new order mail.
your plugin setting is the best for me. I want to purchase it but I can’t do that until these issues are fixed.suggestion: can you add restriction suggestions to a specific area, not just country.
our shipping now is for the specific city only.thank you
Hi, thanks for the additional details, I was able to replicate and fix the issue and it will be in the next version.
Just so you know, the pinned location on the map from the places autocomplete feature will NOT always be accurate. Example a street address called “Highstreet, somecountry” doesn’t say exactly where the customer lives. But Google would still return the coordinates for a random point on that street. So your delivery person would still have to do the work of finding the person’s home when they get to the location by giving them a call or something.
Right now its not possible to restrict Places results by specific city, you’d have to force the city name to always be present inside the address field but still the results returned can be a location outside of that city. I might implement that in a future version of the Pro plugin.
Since you only ship to a specific city then you might be able to make use of the built-in WooCommerce Shipping Zones feature that lets you limit shipping to specific regions of a country: https://woocommerce.com/document/setting-up-shipping-zones/#section-3
You can also set postal codes which you’d like to limit shipping to. That way even though a customer enters their address, WooCommerce wouldn’t show any shipping methods for them since they’d be outside of the shipping zone.
Hello,
Thanks for your efforts.
for your notice about autocomplete will not always be accurate, I kept an extra field for building, floor, and apartment info. also in our shipped city almost all of the building name is in google map so user will not be confused to select its building.
thanks for the other advice.
I am eagerly waiting for the next update and I hope it’s not too far away.
The latest version has been released and should fix your issue. It also adds some more capability to the places autocomplete feature to allow you to change the type of addresses that are returned by Google. If most of the businesses in your area are on google maps then you can have the Places API return only “Establishments”.
NOTE: If a user just still goes ahead and type their address you will not receive their location. They either have to use the map or click on one of the suggestions from the google places results. So you need to relay this information some how to users on your checkout page.
- The topic ‘QR Code Not Contain Customer Map Position’ is closed to new replies.