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 Infusionsoft.

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 subscriptions orders.

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

>Shortcode nesting is NOT supported.

Parameters:

subid The product ID of the product that should be used as the basis for an order.
Required: yes.
subprice An override for the product price.
Required: no.
allowduplicate Specifies whether to allow this purchase if the subscription has already been purchased by “this” user.
Required: No, defaults to false.
allowtax Allow sales tax to be charged for this subscription.
Required: No, defaults to the application default.
tagid A single or comma separated list of tag ID’s that a user must possess in order to complete an order. By default, having any tag is considered a “match” unless the “require_all_tags”.
Required: No.
require_all_tags Modifies the use of the “tagid” parameter from having to match at least one to having to match all tags.
Required: No.
excl_tagid A single or comma separated list of tag ID’s that a user may not possess in order to complete an order.
Required: No.
merchantid Allows an alternate merchant ID to be specified.
Required: No.
affid Specifies the Sale Affiliate who should get credit for this transaction.
Required: No.
daystillcharge Number of days to wait before charging for the subscription.
Required: No, defaults to 0 (charged immediately).
actionsuccess The action set ID to be executed upon successful processing of the order.
Required: No.
actionfail The action set ID to be executed upon failed processing of the order.
Required: No.
urlsuccess The URL to which to redirect users upon a successful purchase.
Required: No, defaults to the site’s home page.
urlfail The URL to which to redirect users upon a failed purchase.
Required: No, defaults to the site’s home page.
deletefailed Specifies whether an “orphaned” (or incomplete) order is allowed to remain in your Infusionsoft application if the order failed.
Required: No, defaults to “yes”.

Example:

API:

There is no API function equivalent for this shortcode.