What problem does it solve?
It solves the problem of implementing reliable shopping cart and checkout flows for Wix-powered catalogs, so customers can add products, review totals, and complete purchases without fragile custom logic.
Core Features & Use Cases
- Cart & Buy Now for catalog collections: Implements cart and checkout patterns that work only with collections marked as @catalog.
- Price handling with correct currency formatting: Enforces fixed collection pricing and formats all currency display using useCurrency() + formatPrice() instead of hardcoded symbols.
- Required UI integration: Provides the expected cart UI responsibilities (cart drawer/modal, header icon + count badge, and product-card add-to-cart buttons).
- Production-ready interaction rules: Differentiates loading behavior for addToCart (server-confirmed) versus removeFromCart/updateQuantity (optimistic), and disables checkout during checkout progress.
Quick Start
Implement the cart/buyNow flow using the @catalog collection pattern, then create a cart UI component (drawer/modal) with header cart icon + item count, and wire Add to Cart buttons on product listings.