How to display product quantities in subscription activation emails
Recharge's default subscription activation email doesn't display product quantities. You can customize the email template to include the quantity for each subscribed product.
This guide explains how to update the subscription activation notification to display product quantities.
Before you start
Recharge's default subscription activation email doesn't include product quantities.
Editing the email template requires basic familiarity with HTML and Recharge notification variables.
Step 1 - Open the subscription activation email
- In the Recharge merchant portal, click Email.
- Select Subscription activation.
- Open the HTML email editor.
Step 2 - Add the quantity variable
Add the following code where you want the subscribed products and quantities to appear in the email:
{% for item in line_items %}
<p><strong>{{ item.title }}</strong></p>
<p>Quantity: {{ item.quantity }}</p>
{% endfor %}The loop displays each subscribed product along with its quantity.
Step 3 - Save and test the notification
- Save the updated template.
- Trigger a test subscription activation email.
- Confirm that each product displays with the correct quantity.
Example
The following example displays the customer's subscription information followed by each product and its quantity.
<p>Hi {{ name }},</p>
<p>You just signed up for a recurring product from
<a href="http://teststore.myshopify.com">Testing Store</a>.</p>
<p>You can manage your recurring items here:<br>
<a href="{{ link }}">Manage Subscription</a></p>
<p>Please email us at support@testing.com if you have any questions about your recurring orders.</p>
{% for item in line_items %}
<p><strong>{{ item.title }}</strong></p>
<p>Quantity: {{ item.quantity }}</p>
{% endfor %}
<p>–</p>
