CartThrob 9 documentation for ExpressionEngine commerce teams Visit CartThrob.com
CartThrob.com

Cart Shipping

{exp:cartthrob:cart_shipping} outputs the current cart shipping total.

This is commonly used on cart, shipping, and checkout summary screens.

See also:

Parameters

This tag has no tag-specific parameters.

Formatting is handled internally via ExpressionEngine’s number formatter. The global number-formatting tag parameters (for example prefix, decimals) are not read by this tag’s implementation.

Modifiers

To get a raw numeric value for the cart shipping total:

{exp:cartthrob:cart_shipping:numeric}

To get the cart shipping total with tax included:

{exp:cartthrob:cart_shipping:plus_tax}

To get a raw numeric value for the cart shipping total with tax included:

{exp:cartthrob:cart_shipping:plus_tax:numeric}

Output and Behavior

  1. Base output uses the cart shipping() value.
  2. :plus_tax switches the calculation to shipping_plus_tax().
  3. :numeric returns the raw numeric value (no formatting).
  4. Default output is formatted text.
  5. :plus_tax behavior is the same calculation exposed by cart_shipping_plus_tax.

Example

Basic shipping total

{exp:cartthrob:cart_shipping}

Shipping with tax included

{exp:cartthrob:cart_shipping:plus_tax}