WooCommerce Subscriptions Jilt integration

Overview ↑ Back to top

WooCommerce Subscriptions has a few standard emails built into the plugin. These emails notify your subscribers about subscriptions events, such as renewal orders or failed payments. However, WordPress isn’t really a great tool for sending emails, as its scheduling mechanisms aren’t robust, and email deliverability from your site is not ideal (using a dedicated email service is better).

While Subscriptions does cover basic emails, you can use Jilt for advanced subscriber emails. Jilt can send a single email or series of emails for subscription events, automating your subscriber lifecycle emails.

Comparison ↑ Back to top

Emails built into Subscriptions Emails using Jilt
Welcome new subscribers 1 or more emails
“Trial ending soon” reminder 1 or more emails
Pre-renewal reminder 1 or more emails
Renewal order notification 1 email
Processing or completed renewal 1 email (coming soon!)
Renewal invoice 1 email (coming soon!)
Customer payment retry 1 email (coming soon!)
Subscription switch complete 1 email
“Ending soon” notifications 1 or more emails
Pending cancellation notification 1 or more emails
“Subscription expired” notifications 1 or more emails
Post-cancellation win-back 1 or more emails
Post-expiration win-back 1 or more emails

Requirements ↑ Back to top

In order to use Jilt with WooCommerce Subscriptions, your site must meet the following requirements.

Setup ↑ Back to top

To connect WooCommerce Subscriptions to Jilt, your site must first meet the requirements above.
  • Follow the guide here to connect your store to Jilt.
  • Once connected, if WooCommerce Subscriptions is active on your site, you should already have subscriber emails available! 🎉
    If not, you can manually enable this integration in your Jilt account. In Jilt, go to Settings > Integrations and click “Enable” for WooCommerce Subscriptions.

You can now use subscriber emails. When Jilt connects to your site, it automatically starts to sync your member data, and it will get updates from your store via the WooCommerce webhooks for subscriber updates. Therefore, it’s very important that the webhooks Jilt has registered for subscription events are not deleted.

WooCommerce Subscriptions Jilt webhooks

Email types ↑ Back to top

Jilt supports several subscriber emails with pre-built templates. These campaign templates can let you send 1 or more emails for different subscription lifecycle events.

WooCommerce Subscriptions: New Jilt campaigns

Each campaign has a set of default rules and emails to get you started, and these rules and emails can be customized for your store.

Jilt also supports WooCommerce Memberships to send member-focused emails. If you use memberships that are tied to subscription products, you may want to pick and choose which emails you send based on the membership, and which emails you send based on the subscription so that your subscribers don’t get duplicated emails.

Welcome new subscribers ↑ Back to top

You can send an email or series to welcome new subscribers as subscriptions are created. You can target specific subscription products or product categories (collections) as well to scope the audience for this campaign.

WooCommerce Subscriptions: Jilt welcome campaign

This email can insert subscriber data dynamically as well. See the notes on email content below for more details.

WooCommerce Subscriptions: Jilt welcome email content

Trial ending notifications ↑ Back to top

You can notify subscribers in a trial period when their trial end date is approaching. This lets you answer any questions before the initial subscription payment is processed, and can target subscribers hours, days, or weeks before the trial ends.

WooCommerce Subscriptions: Jilt trial ending campaign

Pre-renewal reminder ↑ Back to top

Need to keep customers informed before a payment processes? You can use a pre-renewal notification email or series to let them know of an upcoming payment. This is especially helpful for subscriptions with longer billing intervals.

WooCommerce Subscriptions: Jilt pre-renewal email

Pending cancellation notification ↑ Back to top

When a subscriber cancels a subscription, it’s helpful to let them know when their access will end, and confirm that they won’t be charged going forward. The pending cancel notification is able to do this for you, and will email subscribers when their subscription is set to the “pending cancellation” status.

WooCommerce Subscriptions: Jilt pending cancel campaign

Post-expiration win-back ↑ Back to top

The “post expiration” template in Jilt can be used to win-back expired subscribers. Some sites use a single campaign to notify subscribers immediately as a subscription expires, then create a new campaign to send emails with a longer delay, or you can combine these into a single campaign with several emails.

If the subscription status changes due to renewal, Jilt will automatically exit the subscriber if your site uses Subscriptions 2.3.5 or newer, so they won’t receive any further emails as soon as their subscription is re-activated. This is helpful, for example, if you include a discount code, so subscribers won’t see this after they’ve already renewed.

Post-cancellation win-back ↑ Back to top

Post-cancellation emails can be sent after a subscription has been changed to the “cancelled” status. These emails can be used to win-back subscribers, or get feedback as to why the subscriber cancelled.

WooCommerce Subscriptions: Jilt cancelled winback campaign

If the subscription status changes due to renewal or repurchase, Jilt will automatically exit the subscriber if your site uses Subscriptions 2.3.5 or newer, so they won’t receive any further emails as soon as their subscription is reactivated. This is helpful, for example, if you include a discount code, so subscribers won’t see this after they’ve already become active again.

Ending soon notifications ↑ Back to top

An Easter egg template! If you subscription has an end date or set number of billing cycles, you can repurpose the welcome template, and turn it into an “ending soon” notification by removing the “date created” rule, and swapping in an “end date” rule instead.

WooCommerce Subscriptions: Jilt ending soon campaign

While the “after subscription created” text is misleading in this case, the delay is essentially “send this X time after someone enters this campaign (matches these rules)”.

Email content ↑ Back to top

Jilt’s email builder support blocks, such as buttons, images, or text. However, it also supports HTML blocks and liquid, which is a template language from Shopify. This means that emails can use liquid tags to insert content, while developers can do advanced customizations like conditional content.

If you want to learn more about liquid, check out this cheat sheet from Shopify. While Jilt doesn’t support everything in that cheat sheet, it shows you the basic syntax of liquid. If you don’t want to learn it, that’s okay! 🙂 You can copy and paste the examples below, or reach out to Jilt support — they’ll help you get set up.

Subscription liquid tags ↑ Back to top

Liquid tag Description & example output Filters available 1
{{ subscription.id }} Inserts the subscription ID in WooCommerce
Output: 1234
string (word formatting)
{{ subscription.status }} Inserts the status of the subscription
Output: active
default (value if not set)
string (word formatting)
{{ subscription.total | money }} Inserts the total recurring value of the subscription
Output: $10.00
default (value if not set)
money (currency formatting)
{{ subscription.billing_address }} Inserts the billing address associated with the subscription
Output: 1 Main St
Testington, PA 12345
default (value if not set)
address
string (word formatting)
{{ subscription.shipping_address }} Inserts the billing address associated with the subscription
Output: 1 Main St
Testington, PA 12345
default (value if not set)
address
string (word formatting)
{{ subscription.view_url }} Inserts a link to the “view subscription” url in the account
Output: http://mysite.com/my-account/view-subscription/123/
default (value if not set)
{{ subscription.end_date | date: "%B %e, %Y" }} Inserts the date on which the subscription ends (or ended)
Output: September 1, 2018
default (value if not set)
date (date formatting)
{{ subscription.next_payment_date | date: "%B %e, %Y" }} Inserts the date on which the subscription renews next
Output: September 1, 2018
default (value if not set)
date (date formatting)
{{ subscription.cancelled_date | date: "%B %e, %Y" }} Inserts the date on which the subscription was cancelled
Output: September 1, 2018
default (value if not set)
date (date formatting)
{{ subscription.date_created | date: "%B %e, %Y" }} Inserts the date on which the subscription was created.
Output: September 1, 2018
default (value if not set)
date (date formatting)
{{ subscription.line_items }} For developers: gives you access to the line items for the subscription in liquid (only some attributes are supported). Can be used, for example, to insert the first line item name: {{ subscription.line_items | map: 'title' | first }}
Output: n/a (default output is line items object)

1 Filters are optional, and they let you adjust the output of a liquid tag. This is helpful mostly for developers to adjust output (for example, to change date format or money format, or do math on a value). If you’re not a developer, you can use the liquid tag as shown in this document without changes.

Using conditional content ↑ Back to top

This section is geared towards developers, but it shows you what Jilt’s conditional content can do. Jilt support is happy to assist users on paid plans in creating your own conditional content.

Liquid tags have control structures, just like PHP or JavaScript code would. This lets you create conditions in your content, making your emails dynamic and responsive to membership data. Here are just a few examples you can use in your member emails.

Only include additional content for subscriptions with certain products

{% for item in subscription.line_items %}
  {% if 'Sponsorship' == item.title %}
    <p>We really appreciated your sponsorship this year! We'd love to talk about extending our relationship. Could you reply to set up a time to chat?</p>
  {% endif %}
  {% break %}
{% endfor %}

Change text based on end date

{% assign end_date = subscription.end_date | date: '%s' %}
{% assign cutoff = 'June 1, 2018' | date: '%s' %}

{% if end_date > cutoff %}
  <p>Ready to renew? You can click here to re-subscribe!</p>
  <a href="{{ subscription.view_url }}" class="button" style="color:#fff;background:#000;">Renew now</a>
{% else %}
  <p>Great news! We're offering a discount for spring renewals. You can use this discount code to re-subscribe:</p>
  <p><code>ABCD-1234-ZYXW</code></p>
  <a href="{{ subscription.view_url }}" class="button" style="color:#fff;background:#000;">Resubscribe now</a>
{% endif %}

Frequently asked questions ↑ Back to top

Q: Can I send different emails based on subscription products?
A: Absolutely! By default, templates apply to all subscribers. However, you may want to change your content based on the subscription product — your welcome email is a great use case for this. If so, you can add a “products” rule, and pick which subscription products to target. This limits the subscribers who receive this campaign based on what they’ve purchased. You can use “product collections” rules to target categories as well.

You can then add multiple campaigns to reach other subscribers. For example, if I have three subscription products, I could have three separate welcome campaigns to target each one.

WooCommerce Subscriptions: Jilt segmentation

Questions & support ↑ Back to top

Have questions about Subscriptions? Get in touch here.

Need some assistance with Jilt? You can reach out here.

WooCommerce - the most customizable eCommerce platform for building your online business.

Back to the top