Customer confirmation email custom code not working

Topic summary

Issue: Custom confirmation email logic stopped working for a newly added product, despite previously working across all products.

Code context (central to the issue): A templating conditional is used in the email template:
{% if line_title contains ‘TITLE’ %}
Display this message
{% endif %}

Channel: The “buy button” is used as the selling channel, which could affect the data available in the email template (e.g., line_title).

Details shared: No errors, logs, or recent changes were provided—only the snippet and the observed behavior.

Status: No replies or solutions yet; the thread is open and unresolved.

Unanswered key questions:

  • Does the new product’s line_title actually contain the expected string ‘TITLE’?
  • Is the selling channel affecting the line item variables available to the template?
Summarized with AI on January 5. AI used: gpt-5.

My code to custom confirmation emails are suddenly not working. I’ve used this code to all my products before, and now when adding a new product is just doesnt work.

I’ve used this code:

{% if line_title contains ‘TITLE’ %}
Display this message
{% endif %}

I use the buy button as a selling channel