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●required
string
CMS ID.
Exactly one checkout action is required. Explicit null text selects the translated label.
emptyText●required
string | null
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