<p>As of <a href="https://craftcommerce.com/changelog#build1212" rel="nofollow">Commerce 1.1.1212</a>, <code>cart.itemSubtotalWithSale</code> is deprecated.</p>

<p>Use <code>{{ cart.itemSubtotal|currency(cart.currency) }}</code> instead.</p>

<p><strike><code>{{ cart.itemSubtotalWithSale|currency(cart.currency) }}</code></strike></p>

CC BY-SA 3.0
2016-06-16T21:06:55.033Z
2016-07-09T00:07:08.280Z
2016-07-09T00:07:08.280Z
jhanshew
<p>I'm looking to get the sub total of all items in the car before and tax is added on. The example shop code doesn't seem to have this implemented. Is it possible to do?</p>

<pre><code>  Total Discount: {{ cart.totalDiscount|currency(cart.currency) }}&lt;br&gt;
  Total Shipping: {{ cart.totalShippingCost|currency(cart.currency) }}&lt;br&gt;
  Total Tax: {{ cart.totalTax|currency(cart.currency) }}&lt;br&gt;
  Total Tax (inc): {{ cart.totalTaxIncluded|currency(cart.currency) }}&lt;br&gt;
  Item Total: {{ cart.itemTotal|currency(cart.currency) }}&lt;br&gt;
  Base Discount: {{ cart.baseDiscount|currency(cart.currency) }}&lt;br&gt;
  Base Shipping Cost: {{ cart.baseShippingCost|currency(cart.currency) }}&lt;br&gt;
</code></pre>

<plugin-craftcommerce>
Craft Commerce: Sub total before tax in cart?
# Craft Commerce: Sub total before tax in cart?

(Asked by: username_0 on 2016-06-16)

I'm looking to get the sub total of all items in the car before and tax is added on. The example shop code doesn't seem to have this implemented. Is it possible to do?
  Total Discount: {{ cart.totalDiscount|currency(cart.currency) }}
  Total Shipping: {{ cart.totalShippingCost|currency(cart.currency) }}
  Total Tax: {{ cart.totalTax|currency(cart.currency) }}
  Total Tax (inc): {{ cart.totalTaxIncluded|currency(cart.currency) }}
  Item Total: {{ cart.itemTotal|currency(cart.currency) }}
  Base Discount: {{ cart.baseDiscount|currency(cart.currency) }}
  Base Shipping Cost: {{ cart.baseShippingCost|currency(cart.currency) }}

**Tags:** plugin-craftcommerce


---

## 1 answers

### Answer by username_1 on 2016-06-16. Score: 6 | Accepted answer

As of [Commerce 1.1.1212](https://craftcommerce.com/changelog#build1212), `cart.itemSubtotalWithSale` is deprecated.

Use `{{ cart.itemSubtotal|currency(cart.currency) }}` instead.

`{{ cart.itemSubtotalWithSale|currency(cart.currency) }}`


---

