Score:-3

What is the template code for order date and telephone number

pw flag

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?

Score:1
ru flag

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) }}
cn flag
Comments are not for extended discussion; this conversation has been [moved to chat](https://chat.stackexchange.com/rooms/140166/discussion-on-answer-by-jonathan-sacksick-what-is-the-template-code-for-order-da).
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.