githubEdit

Simple subtotal

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

Content

Setting
Description
Options

Subtotal type

Select which price to display

• Original total price • Total price (default)

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

• Default (default) • Alternative • Primary background • Primary foreground • Secondary background • Secondary foreground • Tertiary background • Tertiary foreground • Neutral background • Neutral foreground • Shade

Style

Setting
Description
Options

Font family

Controls the font family

• Standard (default) • Heading • Subheading • Accent Visible when font size contains type--

Font size

Controls the font size

• Smaller • Small • Default (default) • Big • Bigger • Heading 1 • Heading 2 • Heading 3 • Heading 4 • Heading 5 • Heading 6

Layout

Setting
Description
Options

Horizontal alignment

Controls horizontal text alignment

• Left (default) • Center • Justify • Right

Display

Setting
Description
Options

Visibility

Controls when the block is visible

• All (default) • Mobile only • Desktop only

Last updated

Was this helpful?