Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在确认电子邮件中,我想查看下订单的日期。
由于订单对象没有出现在对象文档中,我不确定哪些字段实际存在。我需要的所有其他元素都出现在默认电子邮件中,但没有提及订单日期。
另一方面,在 Dugway,我尝试使用日期过滤器。此处的Liquid 文档建议您可以按如下方式使用它:
Hello {{ 'now' | date: "%Y %h" }
但这不会在 Dugway 中实现:页面上显示的是“现在”。
有什么方法可以访问订单日期吗?
电子邮件确认的变量目前没有在任何地方记录,对此感到抱歉 - 但是您可以{{ order.date }}在确认电子邮件中使用该变量。
{{ order.date }}
Shopify 的 Liquid 版本略有不同,您可以使用“今天”而不是使用“现在” -{{ 'Today' | date: "%Y %h" }}会起作用。
{{ 'Today' | date: "%Y %h" }}