Re: Change date on receipt to order date instead of "now"

Change date on receipt to order date instead of "now"

QOMO
Tourist
16 0 2

I am using the "Order Printer" app to create receipts, but it shows the date the receipt was made, and not when the order was placed.

 

Is there a way to change it from "todays date", to the date the order was created?

 

Here is the code:

 

<p style="float: right; text-align: right; margin: 0;">
{{ 'now' | date: '%d/%m/%y' }}<br />
Kvittering for {{ order_name }}
</p>

Replies 2 (2)

Toddw89
Visitor
1 0 1

I’m having the same issue, did you ever fix this? 

Pjotr
Visitor
2 0 1

Same problem here,

Change: 

Order {{ order.order_name }}<br />
{% if order.po_number %}PO # {{ order.po_number }}<br />{% endif %}
{{ "now" | date: "%B %e, %Y" }}

To:
<p style="text-align: right; margin: 0;">
Order {{ order.order_name }}<br />
{% if order.po_number %}PO # {{ order.po_number }}<br />{% endif %}
{{ order.created_at | date: "%d-%m-%Y" }}
</p>