Order vs recurring subscription Order

Use to display different content if it’s the first order or a recurring order
{% 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
{%- if order.source_name == 'subscription_contract' -%}
  Thanks for your subscription order, {{ customer.first_name }}! 
{%- else -%} 
  Thanks for your order, {{ customer.first_name }}! 
{%- endif -%}

Show start and end dates

Use to show the start and end dates of the line items. This example code works best when all the products have fixed dates enabled.
{% assign start_date = '' %}
{% assign end_date = '' %}

{% for line_item in order.line_items %}
  {% for prop in line_item.properties %}
    {% if prop.first == 'Start date' %}
      {% assign start_date = prop.last %}
    {% elsif prop.first == 'End date' %}
      {% assign end_date = prop.last %}
    {% endif %}
  {% endfor %}
{% endfor %}

{% if start_date != '' %}
  <p><strong>Start date:</strong> {{ start_date }}</p>
{% endif %}
{% if end_date != '' %}
  <p><strong>End date:</strong> {{ end_date }}</p>
{% 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.