Cart Drawer
A slide-out cart that lets customers review and modify their order without leaving the current page. Includes free shipping progress bar, quantity controls, and one-click checkout.
Overview
The Cart Drawer is a critical conversion component that appears when customers add items to their cart or click the cart icon. It provides a frictionless shopping experience by allowing customers to continue browsing while managing their cart.
Slide-Out Panel
Free Shipping Bar
Inline Editing
Quick Checkout
When to Use
The Cart Drawer is automatically enabled for all pages when you enable it in Theme Settings. It appears when:
- Customer clicks "Add to Cart" on any product
- Customer clicks the cart icon in the header
- Cart icon shows updated count after adding items
The Cart Drawer is preferred over a full cart page for most stores because it keeps customers in the shopping flow. Studies show slide-out carts can reduce cart abandonment by 20-30%.
Quick Setup
Enable the Cart Drawer
Go to Theme Settings â Products â Cart behavior and select Cart drawer instead of "Cart page".
Set Free Shipping Threshold
Click on the Cart drawer section and enter your free shipping threshold (e.g., $100). Leave at 0 to disable.
Test the Experience
Add a product to your cart and verify the drawer opens smoothly. Test quantity changes and removal.
Section Settings
Free Shipping
| Setting | Type | Default | Description |
|---|---|---|---|
| Threshold | number | 120 | Order amount needed for free shipping. Displays a progress bar until reached. Set to 0 to disable. |
How the Free Shipping Bar Works:
- Shows how much more the customer needs to spend
- Updates dynamically as items are added/removed
- Displays a celebratory message when threshold is reached
- Motivates customers to add more items
Set your threshold slightly above your average order value (AOV) to encourage customers to add "just one more item."
Display Options
| Setting | Type | Default | Description |
|---|---|---|---|
| Payment icons | checkbox | true | Show accepted payment method icons at the bottom of the drawer. |
Cart Drawer Features
Real-Time Updates
The cart drawer updates instantly without page reloads:
- Add to cart â Items appear immediately
- Quantity changes â Totals update as you adjust
- Remove items â Smooth removal animation
- Price updates â Reflects discounts and changes
Free Shipping Progress
When a threshold is set:
You're $25 away from free shipping!
[=========> ] 75%
When threshold is reached:
đ You've unlocked free shipping!
[====================] 100%
Checkout Flow
The drawer provides two actions:
- View Cart â Opens the full cart page for detailed review
- Checkout â Goes directly to Shopify checkout
Best Practices
Free Shipping Strategy
- Set a strategic threshold â 10-20% above your current AOV
- Make it visible â The progress bar motivates larger orders
- Be honest â Only offer free shipping you can afford
- Consider zones â Threshold may need adjustment for international
User Experience
- Keep it fast â Drawer should open within 300ms
- Show product images â Helps customers recognize items
- Make removal easy â Clear X button or trash icon
- Allow quick edits â Quantity +/- buttons
Conversion Optimization
- Add upsells â Consider products in the drawer (future feature)
- Show savings â Display discounts clearly
- Reduce friction â Checkout button should be prominent
- Mobile optimization â Full-height drawer on small screens
A/B Testing Idea: Test different free shipping thresholds. Even a $5 difference can significantly impact AOV and profit margins.
Accessibility Features
The Cart Drawer includes:
- Focus trap â Keyboard focus stays within the drawer when open
- Escape to close â Pressing Escape closes the drawer
- Screen reader announcements â Cart updates are announced
- Proper ARIA labels â Drawer identified as a dialog
- Close button â Clearly labeled for assistive technology
Troubleshooting
Cart drawer not opening
- Verify Cart behavior is set to "Cart drawer" in Theme Settings â Products
- Check for JavaScript errors in browser console
- Ensure the theme files aren't missing the cart drawer section
- Try a hard refresh (Ctrl+Shift+R)
Free shipping bar not showing
- Verify Threshold is set to a number greater than 0
- Check that cart total is below the threshold
- Ensure the setting is saved
Items not updating
- Check for JavaScript errors in console
- Verify Shopify cart API is responding
- Try clearing browser cache
- Test in incognito mode
Drawer closes unexpectedly
- Check if clicking overlay is set to close (intentional behavior)
- Verify no conflicting JavaScript
- Test on different browsers
Payment icons missing
- Enable Payment icons in cart drawer settings
- Verify payment methods are configured in Shopify Settings â Payments
- Not all payment methods have icons
Slow performance
- Check image sizes of products in cart
- Verify no blocking JavaScript
- Test network speed
Customization Tips
Changing the Drawer Width
The drawer width can be adjusted via CSS in your theme:
.cart-drawer__content {
max-width: 420px; /* Default is ~400px */
}
Styling the Free Shipping Bar
Customize colors in your CSS:
.cart-progress__bar span {
background: #your-brand-color;
}
Adding Trust Badges
Consider adding trust badges near the checkout button:
- Secure checkout icon
- Money-back guarantee
- Free returns badge
Related Settings
The Cart Drawer behavior is also affected by:
- Theme Settings â Products â Cart behavior â Enable/disable drawer
- Theme Settings â Products â Show vendor â Display vendor in cart items
- Theme Settings â Products â Show SKU â Display SKU in cart items
đ See Theme Settings for more options.