Key Features
- Dynamic Updates: Real-time cart updates without page reload
- Responsive Layout: Two-column desktop, single-column mobile
- Cart Summary Sidebar: Sticky summary with totals and checkout button
- Empty State: Custom empty cart display
- View Transitions: Smooth animations for cart changes
- Flexible Blocks: Add custom content blocks to cart page
Cart Structure
The cart uses a component-based architecture:Cart Components
Cart Title
Cart Items
- Product thumbnails
- Variant information
- Quantity selectors
- Remove buttons
- Line item properties
- Real-time price updates
Cart Summary
- Subtotal
- Shipping estimate
- Tax information
- Discount codes
- Total price
- Checkout button
- Payment icons (optional)
Additional Blocks
- Text
- Images
- Icons
- Buttons
- Videos
- Groups
- Spacers
Layout System
Desktop Layout
Two-column layout with sidebar on medium+ screens:- Column 1: Title + Items
- Column 2: Summary (spans all rows)
Mobile Layout
Single-column stacked layout:Extended Summary
For page-width layouts, summary can extend to viewport edge:This creates a bleed effect where the summary extends to the edge of the viewport while content stays within page width.
Empty Cart State
Custom template for when cart is empty:Dynamic Cart Updates
The cart automatically updates without page reload:Quantity Changes
Remove Items
Cart API
Uses Shopify Cart API for updates:View Transitions
Smooth animations when cart becomes empty:Supported Block Types
- Theme Blocks
- App Blocks
- Content Blocks
- Layout Blocks
Settings
Section Width
Color Scheme
Padding
Spacing Between Sections
Responsive Breakpoints
- Mobile
- Tablet
- Desktop
< 750px
- Single column layout
- Summary below items
- Full-width elements
- Touch-optimized quantity selectors
Performance Optimizations
Debounced Updates
Quantity changes are debounced to prevent excessive API calls:Section Rendering
Cart uses section rendering for partial updates:Accessibility
ARIA Labels
ARIA Labels
Live Regions
Live Regions
Form Labels
Form Labels
Schema Configuration
Cart Summary Blocks
The_cart-summary block renders:
-
Subtotal Display
-
Shipping Calculator (optional)
-
Discount Code Input
-
Total Price
-
Checkout Button