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
- Default output is number-formatted using CartThrob number formatting settings.
:numericreturns the raw subtotal-with-tax numeric value (no number formatting).- Calculation is based on cart
subtotal_with_tax():- taxable items contribute taxed subtotals
- non-taxable items contribute normal subtotals
- Shipping is not included.
- 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}