i4w_user_subscriptions

Usage:

This shortcode enables you to display a logged in contact’s list of subscriptions, as well as the ability to cancel or reactivate subscriptions and/or change credit cards used to pay for the same.

By using different parameter combinations, this shortcode can be used to display different views of the subscriptions on file in your system, such as with the “status” filter set to “all”, “active” or “inactive”.

You can also specify which fields you want included in the table display. The “official” list of accepted field names can be found here.

You can set your own headers for each column in the generated table.

For pages using the [i4w_list_subscriptions], it has been internally been remapped to now use this shortcode instead.

This shortcode does NOT supports conditional branching with [ELSE_user_subscriptions].

Shortcode nesting is NOT supported.

Parameters:

status Is used to filter the list based on “valid” status. Can be ‘all, ‘active’ or ‘inactive’.
Required: No, defaults to ‘all’.
fields Is used to specify the columns for the generated table.
Required: No, defaults to ‘ProgramName,Status,BillingCycle,StartDate,PaidThruDate,NextBillDate,BillingAmt’.
headers Is used to specify columns headers for the generated table.
Required: No, defaults to ‘Program Name,Status,Cycle,Start,Paid Thru,Next Bill Date,Amount’ – if the columns are set to default, otherwise, the field names are used.

Example:

[i4w_user_subscriptions]
  Used this way, the shortcode will run with pre-established defaults (see parameters below).
[i4w_user_subscriptions status='active']
  The shortcode will use defaults but will only produce a list of “Active” subscriptions.
[i4w_user_subscriptions status='inactive']
  The shortcode will use defaults but will only produce a list of “Inactive” subscriptions.
[i4w_user_subscriptions fields='ProgramName,Status']
  By using the “fields” parameter, you can specify fields other than the defaults (see parameters below). In this (example) case, the list would only consist of two columns.
[i4w_user_subscriptions fields='ProgramName,Status' headers='Subscription,Status']
  By specifying “headers”, the shortcode will use those as column headers instead of the field (columns) names.

Notes:

Due to the complex nature of this Ajax/jQuery shortcode, it may only be used once on any given page.

API:

There is no API function equivalent for this shortcode.