How to get the Order Date on the invoice - not date of printing...

Janit_Calvo
Shopify Partner
11 0 23

I'm using the Order Printer app and I'm looking for the liquid code to add to get the ORDER DATE to show up on my customer's invoice.

Right now I can only get the date the invoice was printed to show up - which is perfectly useless in all regards.

(Did a search and all hits were "outdated.")

0 Likes
Ava
Shopify Staff
Shopify Staff
808 41 130

Hey, Janit!

My name is Ava, I’m one of Shopify’s Gurus and I’m here to help :)

That should be something we can help you with here ?

If you go to the Order Printer app and select the invoice template to edit, you will see this option here - 

The piece of liquid you need for the date the order was created is here - 

So you can replace the current date with {{ created_at | date:  "%m/%d/%y" }} to list the date as mm/dd/yy

There is more information here on how to change the format.

Let me know if you have any more questions, happy to help!

Ava

Social Care Guru | support@shopify.com

Ava | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

0 Likes
Robert20
Tourist
25 0 1

Hi, 

I think we can help out with this one. We are running the Printout Designer app which allows you to customize your invoice or packing slip templates in any way you want using our Drag & Drop Interface. 

With Printout Designer it is possible to add any kind of logos in any size to look great without the trouble of coding.

You can check it out here: https://apps.shopify.com/printout-designer

I hope it helps,

Robert

0 Likes
WCBakery
New Member
1 0 0

Just solved this, bored of search and replacing dates every week! Bit late in the day but wanted to share. 

In your code find this Line, close to the top

Packed on {{ "now" | date: "%d/%m/%y" }}

Replace it with:

Packed on {{ "+24hr" | date: "%d/%m/%y" }}

0 Likes