Subscriptions Tag

Use our Forums to find examples and answers to your questions. If you have advanced requirements for your project, contact us and our staff can help you find a solution.

hccdevelopment

Subscriptions Tag

Name: {exp:foxee:subscriptions}

The Subscriptions tag replaces the Member tag. It adds the ability to cancel a subscription and improves overall stability. The member tag is still available for legacy purposes, but we recommend that everyone update their templates to use the subscriptions tag.

The Subscriptions tag allows you to display the active subscriptions for the user. You can display their start and end dates as well as allow them the ability to cancel their subscription.

{exp:foxee:subscriptions}
{if is_subscription_active}
{subscription_name}
<br />
<
a href="{cancel_subscription}" title="Click to cancel your subscription.">Cancel</a><br />
extra stuff
{
/if}

{if no_results}
<p>You do not have any subscriptions</p>
{/if}
{
/exp:foxee:subscriptions} 

Parameters

id="4|2" 

Description: The Subscriptions IDs you want to check. Set to "all" to show all the member's subscriptions.

Required: no

Default:

Possible values: 1|2|3 or all

cancel_return="Foxee/index" 

Description: The return URI for the cancel subscription link.

Required: no

Default: Current page.

Possible values: Proper URI path.

Conditionals

{is_subscription_active} 

Description: TRUE if the member is allowed in the subscription; FALSE if not.

Required: Yes

Default:

Possible values:

{if no_results} 

Description: TRUE if there are no subscriptions the member belongs to; FALSE if otherwise.

Required: no

Default:

Possible values: TRUE or FALSE

Variables

{subscription_name} 

Description: The name of the subscription.

Required: no

Default:

Possible values:

{subscription_expire_date} 

Description: The end date of the subscription for the user.

Required: no

Default:

Possible values:

{subscription_start_date} 

Description: The start date of the subscription for the user.

Required: no

Default:

Possible values:

{cancel_subscription} 

Description: Creates a URL (not a link) to cancel the users subscription. This tag is not active until the store is in live mode on FoxyCart. This is because FoxyCart does not store test data for this purpose.

Required: no

Default:

Possible values:



Join our Mailing List