Shopify themes, liquid, logos, and UX
Hello,
I am working on custom invoices using the Order Printer app and came across an instance that is giving me an issue. In our workflow the invoice is printed, used for picking-packing-shipping label creation, and then sent to Accounting. We want to add the customer's phone number, in case the picker needs to contact them about substitutions, etc.
I have built my template to display as many iterations of phone numbers as I could find (and a few I couldn't but guessed at) but have not figured out how to get this number to appear:
This number was added to the order when it was placed:
So far I am using these variables:
Good tries, so close!
I believe {{ order.customer.phone }} will do it for you. (assuming you're referencing using Liquid in the order notification emails)
Or if you want the phone for shipping address: {{ shipping_address.phone }}
Reference: https://help.shopify.com/en/manual/orders/notifications/email-variables
Thanks for responding, but unfortunately that's not it.
That's straight from the Shopify documentation. If it's not working for your situation, I recommend:
1) Identify where you're at in Shopify (notifications, theme editor, etc).
2) Look up the documentation for available liquid objects in that section of Shopify.
3) Get the variable from the documents and add it to your code.
4) Identify what you mean by "that's not it". If you mean you're getting an error, you have the wrong variable. If you're getting no data, check the object you're referencing actually has data populated, etc.
Those debugging steps will lead you to solve your problem. Alternatively you can hire a developer to handle it for you. We do stuff like this every day and can figure out the issue for you.
Thank you so much for trying to help me.
I'm in the Order Printer and have already used all of the Liquid variables that have anything to do with a phone number.
In doing my research I found other variables that isn't in their documentation, at least the documentation that I could find. I didn't see a reference to "order.customer.phone" on your linked Reference page, so maybe I'm just looking in the wrong places.
I don't get any errors when I save my templates, but I also don't get that phone number to populate on my orders. This is such a simple thing that I shouldn't need to contract-out the last detail.
We need the same thing. We tried everything the in liquid documentation source to no avail
did anyone manage to figure this out please
Same issue...
Same issues here...
Anyone figure this one out?
Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024