Sending an email in Kentico 13 - Liquid issue?

45 Views Asked by At

Under Ecommerce -> orders -> order -> shipping, I want to be able to send customers an email from Kentico when I change order status to (what I created -- shipped).

Email fires. Text works. I THINK I have the right variable in there, but it seems to be only recognizing it as text. Anyone have an idea?

{% if (Order.OrderStatus.StatusName == "Shipped") {" Order Update Your Order Your shipment is on its way! Here's your tracking number: {{ Order.CustomData.m_c_orderShippingForm_OrderTrackingNumber_txtText }}

"} |(encode)false #%}

1

There are 1 best solutions below

1
Brenden Kehren On

It appears you may have your macro wrong. This value:

m_c_orderShippingForm_OrderTrackingNumber_txtText

is the html ID of that generated at runtime for that field. What you actually need is the field/column name. So if your column name is OrderTrackingNumber, then you'd use this:

Order.CustomData.OrderTrackingNumber