> ## Documentation Index
> Fetch the complete documentation index at: https://docs.uselooop.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Subtotal

> Subtotal can be any text element inside the default cart wrapper. This element will show the subtotal of all items in the cart after applicable discounts.

## Setup

Add the following code to your cart template where you want the subtotal to appear:

```html theme={null}
"looop"="subtotal"
```

<Frame>
  <img src="https://mintcdn.com/thinddev/5vCSKuNRwWtbt3SO/images/subtotal.webp?fit=max&auto=format&n=5vCSKuNRwWtbt3SO&q=85&s=f3fed08e6ccf5dddb2fc80d3c5db49a2" width="602" height="632" data-path="images/subtotal.webp" />
</Frame>
