How to modify cart total in abandoned cart email?

Topic summary

Shopify merchant aims to conditionally customize the Abandoned Checkout Notification email based on order value. They added a Liquid condition checking if cart.total_price is >= 7500 (intended as €75) to display the default email title/body; otherwise, show a Dutch message offering free shipping with a one-time code.

Expected behavior: show default content when the total is €75+; show the promo message below €75.

Actual behavior: the email always shows the else block, indicating the condition never evaluates as true.

Central detail: a Liquid if/else code snippet within the email’s HTML template is used, comparing cart.total_price against 7500.

Status: troubleshooting; no resolution or confirmed cause yet. Key open question: how to correctly access and evaluate the cart/checkout total in this email template so the conditional logic works as intended.

Summarized with AI on February 16. AI used: gpt-5.

We are trying to extend the abandoned cart email (Abandoned Checkout Notification) with an if statement on the cart total price. So I’ve added the following code into the table HTML:

{% if cart.total_price >= 7500 %}
    ## {{ email_title }}
    

{{ email_body }}

{% else %}
    

 Hallo, je hebt één of meerdere artikelen aan je winkelwagen toegevoegd en je aankoop niet voltooid. Je kunt deze nu voltooien terwijl het nog beschikbaar is. Gebruik nu de eenmalige code **1VCH2JRJ71XX** voor gratis verzending.

{% endif %}

How I want it to work:

If the total cart price is 75 euros or more than the email_title and email_body must show.

If the total cart price is less than 75 euro, the else must be shown.

How it works (but is not correct):

Always the else is shown.