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?
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024