CartThrob 9 documentation for ExpressionEngine commerce teams Visit CartThrob.com
CartThrob.com

Cart Has Subscription

Boolean helper tag to determine whether the current cart contains at least one subscription item.

If used as a single tag (no tag pair content), it returns 1 when true.

Conditionals

{if no_results}

Rendered when the cart does not contain any subscription items.

Example
{exp:cartthrob:cart_has_subscription}
    <p>Your cart includes a recurring subscription.</p>

    {if no_results}
        <p>Your cart currently has no subscriptions.</p>
    {/if}
{/exp:cartthrob:cart_has_subscription}