3

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) }}<br>
  Total Shipping: {{ cart.totalShippingCost|currency(cart.currency) }}<br>
  Total Tax: {{ cart.totalTax|currency(cart.currency) }}<br>
  Total Tax (inc): {{ cart.totalTaxIncluded|currency(cart.currency) }}<br>
  Item Total: {{ cart.itemTotal|currency(cart.currency) }}<br>
  Base Discount: {{ cart.baseDiscount|currency(cart.currency) }}<br>
  Base Shipping Cost: {{ cart.baseShippingCost|currency(cart.currency) }}<br>

1 Answer 1

6

As of Commerce 1.1.1212, cart.itemSubtotalWithSale is deprecated.

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

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

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.