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
- Default output is number-formatted using CartThrob number formatting settings.
:numericreturns the raw numeric value (no number formatting).- Calculation is:
cart subtotal+cart shipping
- Tax is not included.
- 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.