Use to display different content if it’s the first order or a recurring order
Copy
Ask AI
{% if order.source_name == 'subscription_contract' %} <p>Thank you for your subscription order! 🎉</p>{% else %} <p>Thank you for your purchase! 🛍️</p>{% endif %}
Use can also use it in the email subject
Copy
Ask AI
{%- if order.source_name == 'subscription_contract' -%} Thanks for your subscription order, {{ customer.first_name }}! {%- else -%} Thanks for your order, {{ customer.first_name }}! {%- endif -%}
You can incorporate this into Shopify’s default notifications to display the dates in the product list if your template isn’t outputting the line item properties.