Skip to main content

i4w_subscription_order

Usage

This shortcode is a one-click "subscription" order processor designed to perform its assigned tasks with no user interaction.

It can be used as a regular purchase tool as well as an upsell tool. In either case, the only requirement is that users be logged in the membership site and that their credit card information be stored in Keap.

In every example listed below, the default user information used is from the user currently logged in. All the parameters used in the examples can be mixed.

Please note that in addition to the tag "filters" available within the shortcode, this shortcode may be embedded within other conditional shortcodes, such as [i4w_onlyfor], [i4w_hidefrom], [i4w_ifget], [i4w_ifpost], etc.

You may include this shortcode several times on a page or post. However, only the first instance of the shortcode matching the requirements will actually run. This enables you to set up a single page with different tag-based rules triggering different subscription orders.

[ELSE_subscription_order] conditional branching is NOT supported.

Shortcode nesting is NOT supported.

Parameters

ParameterDescriptionDefaultRequired
subidThe subscription ID of the subscription that should be used as the basis for an order.-Yes
subpriceAn override for the subscription price.-No
allowduplicateWhether to allow this purchase if the subscription has already been purchased by this user.falseNo
allowtaxAllow sales tax to be charged for this subscription.application defaultNo
tagidA single or comma separated list of tag ID's that a user must possess in order to complete an order.-No
require_all_tagsModifies the use of the "tagid" parameter from having to match at least one to having to match all tags.-No
excl_tagidA single or comma separated list of tag ID's that a user may not possess in order to complete an order.-No
merchantidAllows an alternate merchant ID to be specified.-No
affidSpecifies the Sale Affiliate who should get credit for this transaction.-No
daystillchargeNumber of days to wait before charging for the subscription.0No
actionsuccessThe action set ID to be executed upon successful processing of the order.-No
actionfailThe action set ID to be executed upon failed processing of the order.-No
urlsuccessThe URL to which to redirect users upon a successful purchase.home pageNo
urlfailThe URL to which to redirect users upon a failed purchase.home pageNo
deletefailedWhether an "orphaned" (or incomplete) order is allowed to remain in Keap if the order failed.yesNo

Example

Shortcode
[i4w_subscription_order subid='36']
Shortcode
[i4w_subscription_order subid='36' subprice='9.90']
Shortcode
[i4w_subscription_order subid='36' tagid='123,234']
Shortcode
[i4w_subscription_order subid='36' actionsuccess='17' actionfail='23']
Shortcode
[i4w_subscription_order subid='36' urlsuccess='/buyanotherone/' urlfail='/youbroke/']