Big Cartel: Is there any way to retrieve the order date in the confirmation email?

与世无争的帅哥 提交于 2019-12-11 06:56:25

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!