Skip to Content

Cart banner

Audience: CMS editors and developers.

Type: CartBanner. CMS typename: CartBanner.

This banner shows the live Shopify cart. Its checkout action retains loading state and the current checkout destination.

This banner includes the common banner properties. Its actions use the shared button group.

Properties

id●
string
required

CMS ID.

buttons●required

Exactly one checkout action is required. Explicit null text selects the translated label.

emptyText●
string | null
required

Cart-empty message. Null uses the built-in translated message.

Example

This fragment shows the complete action group. Other banner properties are separate.

const actions: Pick<CartBanner, 'buttons'> = { buttons: { items: [ { id: 'checkout', action: 'checkout', text: null, style: 'primary', theme: null, url: null, contactForm: null, }, ], align: 'left', width: 'stretch', overflow: 'wrap', }, };
Last updated on