Cart Module

Cart Module

Cart service for all contexts

Create unique checkout experiences with a Cart Module that fits into any commerce context. Control everything from total calculations to shipping and payment options associated with different carts.

icon

Overview

Create unique checkout experiences

The Cart Module gives flexibility to build unique checkout experiences. Control the cart logic, implement in any storefront, and build custom checkout flows around it.

Implement in any store

Handle cart processes and checkout flows for webshops, POS systems, SaaS products, marketplaces, and more.

altText of the image

Control cart calculations

Built-in total calculations that let you apply different tax, discount, and shipping logic based on the cart context.

altText of the image

Build unique checkout experiences

Make your checkout experience stand out. Build a bespoke checkout flow that fits your requirements and brand.

altText of the image
icon

Overview

Custom checkout with Workflows.

Use Workflows to add custom actions and interact with other systems during checkout. The Cart Module can be used with Medusa’s modules or standalone with other third-party systems.

Learn more

Shipping and payment flexibility

Associate carts with regions or sales channels to provide tailored payment and shipping methods to your customers.

altText of the image

Share and recover carts

Carts are persisted and can be shared between customers or retrieved upon a store return.

altText of the image

Multi-purpose Cart Module

Manage draft orders, create custom promotions on line items, and connect with third party systems.

altText of the image

Handling +10,000 requests per second with the Cart Module

VeVe uses Medusa’s Cart Module when launching a book store selling Marvel comics. Learn how they now handle peak traffic of up to 10k requests per second with sub-500ms latency and a near-zero failure rate using the Cart Module.

altText of the image
icon

The Next.js Starter Template

Get started with Next.js 14 and Medusa with the pre-built storefront template. All the latest features, all in open-source.

icon

Features

Customizable Cart Module
for unique checkout experiences

Power checkout experiences across all commerce contexts.

Cart and checkout features

  • Collect customer items for purchase

  • Include discount, shipping, and tax in total calculations

  • Use cart regions to localize shipping and payment

  • Add shipping and billing info to cart

  • Associate carts with sales channels or customers

  • Auto-retrieve old carts for customers

  • Add custom promotions for line items and shipping

  • Use for any type of product

  • Included in the Next.js starter

Customize to fit your case

  • Use in any type of storefront

  • No limit to how you set up your checkout

  • Make adjustment to cart line items

  • Add custom cart steps using Workflows

  • Works with all Medusa modules

  • Use standalone with your own systems

  • Extend with your own custom data models

  • Ships as a standalone npm package

  • Optimized for serverless deployment

Ready to build your custom commerce setup?