Hello,
I would like to send the google maps link inside the order page to email or order printer, is there any way to do it??
- The link is highlighted in red in the image.
Thank you
Hello,
I would like to send the google maps link inside the order page to email or order printer, is there any way to do it??
Thank you
Hello, @Mohamed2Ahmed .
Thank you for reaching out and posting this question!
I understand that you’re looking to add the Google maps from orders to the emails or packing slips. While there isn’t a liquid variable to accomplish this through emails or packing slips at this time, I’d be happy to share your feedback with our development team. If Shopify moves forward with adding more liquid variables, such as Google maps, then we’ll be sure to announce them on the Shopify Changelog.
That being said, if you’re simply looking to add the map along with the package, then you may be able to consider simply printing the order status page. The order status page comes with the map view and you could use this as a substitute to the packing slips or use them together. Nevertheless, customers are able to view the map whenever they check their order status from the order confirmation emails as well.
I’d love to hear more about your business! What kinds of products are you selling? Was there a particular purpose for adding the map view to the order confirmation emails or packing slips?
Thank you Elias for your reply,
Actually, I’m trying to add a QR code on the packing slip for the location and I already did it, but the problem is the address not working on the map app link format
this is my QR
<img src=“https://api.qrserver.com/v1/create-qr-code/?size=75x75&data=https://www.google.com/maps/place/{{ customer.default_address }}”
I tried also the shipping address but the same problem it’s not opening the map app when scanned.
I`m using Shopify Order Printer.
Hey, @Mohamed2Ahmed .
Thank you for following up and sharing the additional context!
It looks like you’re trying to combine two separate codes/variables into one, and I’m not sure if that will work as expected since they come from different coding languages. The reason that this method may not be working is that the code comes from the HyperText Markup Language (HTML), while the {{ customer.default_address }} variable comes from an open-source template language created by Shopify - called Liquid. Though Shopify’s template editor for the notification and packing slip templates support different coding languages, the actual snippets of codes and/or variables themselves can’t be combined as different coding languages may not understand each other. If you’d like to learn more about Shopify’s Liquid, then I’d encourage taking a look at our developer’s guide - Liquid reference.
That being said, if you’d like to find more assistance with custom coding or adding Google maps to the packing slips, then I’d recommend posting this question on the Shopify APIs and SDKs board where our developers and community of experts can further assist you. Alternatively, you can also explore custom solutions and consider hiring a developer for this task. If you need help finding a developer, then I’d encourage taking a look at our directory of certified developers on Shopify Experts.
If you have any other questions on this topic, don’t hesitate to let me know!