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

Cart Subtotal Plus Shipping

{exp:cartthrob:cart_subtotal_plus_shipping} outputs cart subtotal plus shipping.

In this context, subtotal plus shipping means:

  • includes item price × quantity totals
  • includes shipping
  • excludes tax
  • excludes discounts

This is useful for pre-tax checkout summaries where you still want shipping included.

See also:

Parameters

This tag has no tag-specific parameters.

It supports Global Number Formatting.

Modifiers

To get a raw numeric value for the cart subtotal plus shipping:

{exp:cartthrob:cart_subtotal_plus_shipping:numeric}

Output and Behavior

  1. Default output is number-formatted using CartThrob number formatting settings.
  2. :numeric returns the raw numeric value (no number formatting).
  3. Calculation is:
    • cart subtotal + cart shipping
  4. Tax is not included.
  5. Discounts are not subtracted by this tag.

Example

Basic subtotal plus shipping

{exp:cartthrob:cart_subtotal_plus_shipping}

Use this when you want a pre-tax total that still includes shipping.

Raw value for calculations

{exp:cartthrob:cart_subtotal_plus_shipping:numeric}

Use this when passing the value into math or conditional logic.