Recharge Quick Action only applies to one subscription
Issue
A Recharge Quick Action included in a Klaviyo campaign only displays or applies to one subscription, even though the customer has multiple eligible subscriptions.
Environment
- Shopify Checkout Integration
- Migrated Shopify Checkout Integration
Resolution
Recharge Quick Action templates often include a slice filter that limits how many subscriptions are processed.
For example:
{% for sub in prepaidSubs|slice:"0:1" %}This generates a Quick Action for only the first eligible subscription.
To include additional subscriptions, increase the second value in the slice filter.
For example:
| Slice value | Result |
|---|---|
slice:"0:1" |
Creates one Quick Action button |
slice:"0:2" |
Creates up to two Quick Action buttons |
slice:"0:4" |
Creates up to four Quick Action buttons |
Recharge recommends choosing a value that reflects the typical number of subscriptions your customers have.
Also confirm that your template filters the correct subscriptions before the loop.
For example:
{% with activeSubs=person.rc_all_subscriptions|dictfilter:"status == ACTIVE" %}or
{% with activeSubs=person.rc_all_subscriptions|dictfilter:"status == CANCELLED" %}Recharge generates one Quick Action URL for each subscription included by the loop and permitted by the slice filter.
