Shopify 通知新增 Liquid 变量,可显示请求提交时间
New Liquid variables let you add request submission times to your Request received notification
Shopify 为 Request received 客户通知新增两个 Liquid 变量:退货请求用 return.requested_at,取消请求用 requested_edit.requested_at,可向客户展示其提交请求的日期和时间。该值取客户提交请求的时间而非邮件发送时间,重发邮件时保持不变。默认模板未改动,需在 Settings > Notifications > Customer notifications > Request received 中点击 Edit code 并配合 Liquid date 过滤器手动添加。
We've added two new Liquid variables to the Request received customer notification: return.requested_at for return requests and requested_edit.requested_at for cancellation requests. Now you can show customers the date and time they submitted their request. The value is the time the customer submitted the request, not when the email was sent, so it stays the same if you resend the email. The default template hasn't changed, so the timestamp only appears if you add it.
To add it, go to Settings > Notifications > Customer notifications > Request received, click Edit code, and use the Liquid date filter to format it, for example {{ return.requested_at | date: "%B %-d, %Y %H:%M %Z" }}.
Learn more about customizing notification templates in the Shopify Help Center.
来源:Shopify官方更新 · changelog.shopify.com