Within an email template, I have the following variable: {{var order_status}} This inserts (for example) Status 1, Status 2, or Status 3 into the body of the email.

What I want the template to do is:

If {{var order_status}} equals "Status 1", then display text relating to this status.

OR if{{var order_status}} equals "Status 2", then display text relating to this status instead.

Is this possible?

1 Answer 1


Try this :-

{{if order_status == "Status 1"}}
     <p>"Status 1"</p>

{{if order_status == "Status 2"}}
     <p>"Status 2"</p>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.