# Simple subtotal

<figure><img src="/files/l8IaxLr1GnMJ4OX8wo88" alt=""><figcaption></figcaption></figure>

## Overview

A configurable block that displays the cart total price or original total price with customizable styling options.

## Common use cases

* Use with other cart blocks to create a complete cart interface
* Adjust padding and alignment to match your theme's spacing
* Consider font size based on importance in your layout
* Choose between total price (with discounts) or original total price based on your needs

## Block settings

### General

| Setting                | Description                 | Options                   |
| ---------------------- | --------------------------- | ------------------------- |
| Show advanced settings | Reveals visibility settings | Checkbox (default: false) |

### Content

| Setting              | Description                         | Options                                                  |
| -------------------- | ----------------------------------- | -------------------------------------------------------- |
| Subtotal type        | Select which price to display       | <p>• Original total price<br>• Total price (default)</p> |
| Show currency symbol | Displays currency symbol with price | Checkbox (default: true)                                 |

### Spacing

| Setting                   | Description                              | Options                   |
| ------------------------- | ---------------------------------------- | ------------------------- |
| Enable horizontal padding | Adds horizontal padding around the price | Checkbox (default: false) |
| Enable top padding        | Adds top padding around the price        | Checkbox (default: false) |
| Enable bottom padding     | Adds bottom padding around the price     | Checkbox (default: false) |

### Color

| Setting    | Description             | Options                                                                                                                                                                                                                                                      |
| ---------- | ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Text color | Controls the text color | <p>• Default (default)<br>• Alternative<br>• Primary background<br>• Primary foreground<br>• Secondary background<br>• Secondary foreground<br>• Tertiary background<br>• Tertiary foreground<br>• Neutral background<br>• Neutral foreground<br>• Shade</p> |

### Style

| Setting     | Description              | Options                                                                                                                                                           |
| ----------- | ------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Font family | Controls the font family | <p>• Standard (default)<br>• Heading<br>• Subheading<br>• Accent<br><br>Visible when font size contains type--</p>                                                |
| Font size   | Controls the font size   | <p>• Smaller<br>• Small<br>• Default (default)<br>• Big<br>• Bigger<br>• Heading 1<br>• Heading 2<br>• Heading 3<br>• Heading 4<br>• Heading 5<br>• Heading 6</p> |

### Layout

| Setting              | Description                        | Options                                                     |
| -------------------- | ---------------------------------- | ----------------------------------------------------------- |
| Horizontal alignment | Controls horizontal text alignment | <p>• Left (default)<br>• Center<br>• Justify<br>• Right</p> |

### Display

| Setting    | Description                        | Options                                                                                                                            |
| ---------- | ---------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| Visibility | Controls when the block is visible | <p>• All (default)<br>• Mobile only<br>• Desktop only</p><p><br><br>Visible when <strong>Show advanced settings</strong> is on</p> |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.brickspacelab.com/slab/content/blocks/cart/simple-subtotal.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
