问题
In the confirmation email, I would like to get access to the date the order was placed.
Since order object does not appear in the object documentation, I am not sure which fields actually exist. All other elements I needed appeared in the default email, but there is no reference to the order date.
On the other hand, in Dugway, I tried to use the date filter. Liquid documentation here suggests you can use it as follow:
Hello {{ 'now' | date: "%Y %h" }
But this will not get through in Dugway: what appears on the page is 'now'.
Is there any way to get access to the order date ?
回答1:
The variables for email confirmations aren't currently documented anywhere, sorry about that -- however you can use the {{ order.date }}
variable in your confirmation email.
And Shopify's version of Liquid varies slightly, instead of using 'now' you can use 'Today' - {{ 'Today' | date: "%Y %h" }}
will work.
来源:https://stackoverflow.com/questions/28212199/big-cartel-is-there-any-way-to-retrieve-the-order-date-in-the-confirmation-emai