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:

Show a member when their account expires.

Display a link for members to manage their subscription account information. With 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.

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=""].

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

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:


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 ( ~ ).


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.

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] (or AIM compatible gateway) checkout form

Eway checkout form

Checkout form that does not process credit cards

Mijireh Checkout Accept Credit Cards – PCI Compliant

Merchant Warrior checkout form

PayLeap checkout form

PayPal Website Payments Standard checkout button

PayPal Express checkout button

PayPal Pro checkout form

Stripe checkout form

Clear the contents of the shopping cart

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]

Display content one time immediately after a sale

Show the Cart66 sidebar widget

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

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

Show the name of the subscription for the currently logged in user

Show the terms of service agreement

Listens for remote login calls from Zendesk

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

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

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



This site is documentation for Cart66 Pro which is no longer maintained. View the Cart66 Cloud Documentation.
What Happened to Cart66 Pro?