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

Cart Subtotal Plus Tax

{exp:cartthrob:cart_subtotal_plus_tax} outputs the cart subtotal with item tax included.

In this context, subtotal plus tax means:

  • includes item price × quantity totals
  • includes item tax on taxable items
  • excludes shipping
  • excludes discounts

This is useful when you want a tax-inclusive item subtotal before shipping is added.

See also:

Parameters

This tag has no tag-specific parameters.

It supports Global Number Formatting options for formatted output.

Modifiers

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

{exp:cartthrob:cart_subtotal_plus_tax:numeric}

Output and Behavior

  1. Default output is number-formatted using CartThrob number formatting settings.
  2. :numeric returns the raw subtotal-with-tax numeric value (no number formatting).
  3. Calculation is based on cart subtotal_with_tax():
    • taxable items contribute taxed subtotals
    • non-taxable items contribute normal subtotals
  4. Shipping is not included.
  5. Discounts are not subtracted by this tag.

Example

Basic subtotal plus tax

{exp:cartthrob:cart_subtotal_plus_tax}

Raw value for calculations

{exp:cartthrob:cart_subtotal_plus_tax:numeric}