Cart drawer
The bag that slides in from the side when Cart type is Drawer.
The bag that slides in from the side when Cart type is Drawer.
- Where it can go: Overlays group only
- Area: Header, footer and cart
- File:
sections/cart-drawer.liquid
Section settings#
Shows when Cart type is Drawer. Gift rules, progress bar, notes and discount code are in Theme settings > Cart.
| Setting | Type | Default |
|---|---|---|
| Color scheme | Color scheme | Scheme 1 |
Blocks#
This section also accepts app blocks.
Free gift (up to 1)
Type: gift
Shows once the bag reaches the goal. Set the goal and collection in Theme settings > Cart.
| Setting | Type | What it does |
|---|---|---|
| Heading | Text | Shows before and after a gift is chosen. Empty shows “Choose your free gift”, then “Your free gift” once a gift is in the bag. |
Complete the look (up to 1)
Type: upsells
Up to 3 products from the first item's custom.cart_upsells metafield, then this collection.
| Setting | Type | What it does |
|---|---|---|
| Collection | Collection | |
| Heading | Text | Empty shows “Complete the look”. |
Custom Liquid
Type: custom_liquid
| Setting | Type | What it does |
|---|---|---|
| Custom Liquid | Liquid | Add app snippets or other code. Shows with the cart's other blocks, under the items. |
Developer notes#
Cart drawer, in the Overlays section group. Shows when Theme settings > Cart > Cart type is Drawer. <cart-drawer> (assets/cart.js) re-renders it through the Section Rendering API under its group id, read from the section wrapper.