Cart66 Shortcodes

One of the most powerful features of Cart66 is that you can have extremely powerful control over the presentation and layout through the use of shortcodes. Shortcodes are snippets of code that you can insert into your posts and pages to execute various functions.

You can find the list of shortcodes in the Cart66 Dialog box on any post or page.  Just click the Cart66 icon above the editor and then select the shortcodes tab.

Cart66 provides the following shortcodes:

[account_expiration]
Show a member when their account expires.

[account_info]
Display a link for members to manage their subscription account information. If you are using Spreedly subscriptions, this shortcode may be given a text attribute to specify the link text of the link to manage the subscribers billing information managed by Spreedly. For example, if you would like to customize the link text you may specify the shortcode like: [account_info text="Update your account information"] If you do not specify your own link text, the default text for the link is “Manage your subscription.” If you are using PayPal subscriptions, check out the cancel_paypal_subscription shortcode if you want to provide a link for your subscribers to cancel their subscription from your website.

[account_login]
The account login shortcode will put a Cart66 login form on your website. This shortcode accepts the url attribute so that you can specify to which page the member should be directed after a successful login. If you want the member to stay on
the current page you can use “stay” as the value of the url attribute as follows: [account_login url="stay"] To redirect the member to a specific page, provide a valid URL: [account_login url="http://www.mysite.com/member_home"].

[account_logout]
Logs user out of account redirects to the page you define as the logged out page.

[account_logout_link]
Render a link that can be clicked which will log a member out and redirect them to the defined logged out page. This shortcode may be given a text attribute to specify the link text of the log out link. For example, if you would like to customize the link text you may specify the shortcode as follows: [account_logout_link text="Sign Out"] If you do not specify your own log out link text, the default text for the log out link is simply “Log out”.

[add_to_cart item="item_number"]
Display an add to cart button which, when clicked, will add a product with the specified item number to the customer’s shopping cart. The only required attribute is the item number of the product. An example of using the add_to_cart shortcode with all of the optional attributes would look like this:

 

[add_to_cart_anchor][/add_to_cart_anchor]
Display a link that will add a product to the shopping cart. In its basic usage, the shortcode has an item attribute and the content of the shortcode is used as the text of the link.

You may optionally provide a css class attribute as well as product options. Cart66 products may have two groups of options. If you choose to have two options for the product link, separate the options with a tilde ( ~ ).

 

[cancel_paypal_subscription]
Display a link which, when clicked will cancel the logged in user’s current PayPal subscription. If the visitor is not logged in or does not have an active PayPal subscription this shortcode will not display anything.

[cart]
The shopping cart listing all of the products the customer has added to their cart can be displayed on any page allowing you to customize your checkout process however you like. For example, you could include the shopping cart and the checkout form on the same page to create a one page checkout process for your store. The cart shortcode supports the following optional attributes:
Mode: (optional) read – this puts the shopping cart in read-only mode which displays the products and their quantities in the shopping cart but does not let the user modify the contents of the cart. This is a good way to display the shopping cart on the checkout page so that your customer can see exactly what they are buying.
Tax: (optional) The amount of tax you will be charging the customer. Usually tax is charged during the checkout process because the buyer’s location is not known. In the case of PayPal Express Checkout, however, you will know the buyer’s location when they return to your website after having logged into PayPal. So, Cart66 will display the amount of tax that is going to be charged to the order in the shopping cart view. The Express Checkout page that Cart66 uses is already setup to show the tax, you don’t have to do anything. It is very rare that you will ever need to customize your site with the tax attribute, but it is there if you need it. An example of using the cart shortcode with the optional mode attribute looks like this:
[cart mode="read"]

[checkout_authorizenet]
Authorize.net (or AIM compatible gateway) checkout form

[checkout_eway]
Eway checkout form

[checkout_manual]
Checkout form that does not process credit cards

[checkout_mijireh]
Mijireh Checkout Accept Credit Cards - PCI Compliant

[checkout_mwarrior]
Merchant Warrior checkout form

[checkout_payleap]
PayLeap checkout form

[checkout_paypal]
PayPal Website Payments Standard checkout button

[checkout_paypal_express]
PayPal Express checkout button

[checkout_paypal_pro]
PayPal Pro checkout form

[clear_cart]
Clear the contents of the shopping cart

[email_opt_out]
Allow Cart66 members to opt out of receiving notifications about the status of their account

[hide_from level=""][/hide_to]
Hide content from members without the listed feature levels - opposite of [show_to]

[post_sale][/post_sale]
Display content one time immediately after a sale

[shopping_cart]
Show the Cart66 sidebar widget

[show_to level=""][/show_to]
Show content only to members with the listed feature levels - opposite of [hide_from]

[subscription_feature_level]
Show the name of the subscription feature level for the currently logged in user

[subscription_name]
Show the name of the subscription for the currently logged in user

[terms_of_service]
Show the terms of service agreement

[zendesk_login]
Listens for remote login calls from Zendesk

System Shortcodes:
[express]
Listens for PayPal Express callbacks. Belongs on system page store/express

[ipn]
PayPal Instant Payment Notification. Belongs on system page store/ipn

[receipt]
Shows the customer's receipt after a successful sale. Belongs on system page store/receipt

[spreedly_listener]
Listens for spreedly account changes. Belongs on system page store/spreedly

0