Additional message for certain orders for email order notification

Hi everyone,

I would like to ask on how will I be able to add in a certain message for customers on their Email Order Notification if they’re order value is over $200?

Settings → Notifications → Order Confirmation

My current code looks like this:

{% if order.total_price >= 200 %}
     **Message Here** 
{% endif %}

As of this moment, even if the order I checkout as a test isn’t over $200, I still receive the Message Here.

How do I enable it only for those who have reached $200 on their order?

Thank you for helping

1 Like

Hi @ChanhaLzkie ,

$200 is 20000, adding 2 zeroes. You have to check where you are placing the code and verify your code has the variable total_ price.

See the code here.

{% if total_price >= 20000 %}
           **Message Here** 
        {% endif %}

If I place the code here with a total_price variable

This is the preview

Thank you so much for this.

It now works fine as intended

1 Like