我正在尝试将发送日期放在我们的确认电子邮件中。 由于不同的送货方式,我希望电子邮件说“估计交货日期”。如果他们选择标准免费送货,如果选择其他选项,则发送电子邮件说明交货日期'。下面是我尝试使用但不起作用的代码
You've chosen: {{ shipping_method.title }}
{%if shipping_method.title == Standard FREE Delivery%} Est Delivery Date {{ attributes.date }} {% endif %}
{% if shipping_method.title != Standard FREE Delivery %} Delivery Date {{ attributes.date }} {% endif %}