-3

In our invoice that is printed, the date of the order and the telephone of the customer is missing. How can I print those into the template?

1 Answer 1

1

Using {{ invoice_entity.orders.0 }} you get access to the order.

So if you're looking to print the order completed time you'd need something like:

{{ invoice_entity.orders.0.getCompletedTime }} which is a timestamp. You'd need getPlacedTime in case you need access to the placed timestamp.

For the telephone, where is that stored? On the profile itself?

{{ invoice_entity.getBillingProfile.(your phone field name here I suppose) }}
1
  • Comments are not for extended discussion; this conversation has been moved to chat.
    – Clive
    Commented Oct 26, 2022 at 17:47

Not the answer you're looking for? Browse other questions tagged or ask your own question.