Cart states
Every cart has two independent layouts. You switch between them in the editor:- Filled cart: what shoppers see when the cart has items.
- Empty cart: what shoppers see when the cart has no items.
- The Empty cart block appears only in the empty state.
- Cart items, Checkout button, Notes, Express payments, and Shipping protection appear only in the filled state.
The empty cart state is the whole empty layout. The Empty cart block is one block inside that layout, usually the message and continue-shopping button. They sound alike, but the state can hold more than that one block.
Sections
Each state is divided into three sections: Header, Body, and Footer. Sections control where a block sits and how it scrolls:- Header: pinned to the top of the drawer; stays visible as the body scrolls.
- Body: the scrollable middle. Blocks here move with the content. Locked block: Cart items.
- Footer: pinned to the bottom of the drawer. Locked block: Checkout button.