Cart Info

This is a tag pair that outputs data from the current cart. Each variable that is available in this tag pair is also a separate tag and can be accessed individually. This provides more convenient access to multiple variables at once.

Table of Contents

Parameters

See Global Number Formatting.

Variables

In addition to the variables listed here, you may also use any of the Global Tag Variables.

total_items

The total number of items in the cart

{total_items}
12

total_unique_items

The total number of unique items in the cart. This ignores quantities, and looks solely at the total number of unique products.

{total_unique_items}
2

cart_entry_ids

A pipe delimited list of product entry IDs currently in the cart

{cart_entry_ids}
1|12|123|1234

cart_shipping

Cost of shipping for all items in the cart

{cart_shipping}
$13.95

cart_tax_rate

The current tax rate being used to calculate the cart total.

{cart_tax_rate}
7%

cart_tax

The amount of tax calculated for all items in the cart.

{cart_tax}
$1.95

cart_subtotal

Cart total minus shipping and tax, without discounts applied

{cart_subtotal}
$11.95

cart_total

Cart total including shipping and tax, without discounts applied

{cart_total}
$13.95

Examples

{exp:cartthrob:cart_info}
    {total_items}
    {total_unique_items}
    {cart_entry_ids}
    {cart_shipping}
    {cart_tax_rate}
    {cart_tax}
    {cart_subtotal}
    {cart_total}
{/exp:cartthrob:cart_info}