You can use Locksmith with Seal Subscriptions to control access based on a customer’s subscription status. Seal Subscriptions supports auto-tagging customers depending on whether their subscription is active or inactive. Here’s how it works:
- Seal Subscriptions can automatically tag customers when they have an active subscription.
- When a subscription becomes inactive (expired or cancelled), Seal doesn’t remove the active tag. Instead, it applies an additional tag for inactive subscribers.
- Make sure Seal Subscriptions is configured to add both active and inactive tags to your customers.
- Create a lock on the content you want to restrict (products, collections, pages, etc.). Guide:
creating-locks.md - Add a key condition: Permit if the customer is tagged with... and enter your active subscription tag. This is a regular (non-inverted) condition.
- Now turn this into a combo key by adding the second condition inside the same key:
- Click Edit on the key you just created.
- Scroll to + Add key condition and add Permit if the customer is tagged with <active subscriber tag>
- Enter your inactive subscription tag and (if needed) check invert so the condition reads Permit UNLESS the customer is tagged with <inactive subscriber tag>
- Save the lock. You now have a single combo key that requires both conditions at once. See:
combining-key-conditions.md
inverting-conditions-in-locksmith.md
- Result: customers must have the active tag, and must not have the inactive tag, to get access. The keys should look like the following example once setup:
{% content-ref url="../../keys/customer-account-keys.md" %} customer-account-keys.md {% endcontent-ref %}
{% content-ref url="../../keys/more/inverting-conditions-in-locksmith.md" %} inverting-conditions-in-locksmith.md {% endcontent-ref %}
{% content-ref url="../../keys/more/combining-key-conditions.md" %} combining-key-conditions.md {% endcontent-ref %}
Because Seal Subscriptions doesn’t remove active tags, you’ll need to use both a regular (non-inverted) condition (active tag) and an inverted condition (inactive tag) in Locksmith. This setup ensures that only customers with a current subscription can access your locked content.
