---
title: "How can I know in order confirmation email if the order is a subscription order or not?"
description: "In order confirmation emails in Shopify, you can know if the order has a subscription product in it simply by using the Liquid code to loop..."
source_url: "https://www.sealsubscriptions.com/articles/frequently-asked-questions/how-can-i-know-in-order-confirmation-email-if-the-order-is-a-subscription-order-or-not-as"
---

# How can I know in order confirmation email if the order is a subscription order or not?

In order confirmation emails in Shopify, you can know if the order has a subscription product in it simply by using the Liquid code to loop through items in the order and checking if any of the items has a selling plan allocation property on it.

You can show also the selling plan in there if you edit the notification template in Shopify admin > Settings > Notifications > Order confirmation.
Basically, to show the selling plan name, you just have to add the following line on the correct location:

{% if line.selling\_plan\_allocation %}
 \<span class="order-list\_\_item-variant">{{ line.selling\_plan\_allocation.selling\_plan.name }}\</span>\<br/>
{% endif %}

Newer Shopify stores have this in the email template by default, but if you don't have it in there, then we recommend that you hire a Shopify Expert and ask them to add this code in there for you.
And you can use the same logic to figure out if the order contains a subscription product in it.

## Related Questions

- [My subscriptions list page (/a/subscriptions) shows as a blank page. How do I resolve this?](https://www.sealsubscriptions.com/articles/frequently-asked-questions/my-subscriptions-list-page-asubscriptions-shows-as-a-blank-page-how-do-i-resolve-this-at)
- [How do I downgrade to a lesser plan on your app?](https://www.sealsubscriptions.com/articles/frequently-asked-questions/how-do-i-downgrade-to-a-lesser-plan-on-your-app-au)
- [How do I edit the text that appears in checkout?](https://www.sealsubscriptions.com/articles/frequently-asked-questions/how-do-i-edit-the-text-that-appears-in-checkout-av)
- [Can my customers change their subscription interval?](https://www.sealsubscriptions.com/articles/frequently-asked-questions/can-my-customers-change-their-subscription-interval-ax)
