# Ecommerce Shopping Cart: Modern Cart

A clean cart layout with product images, quantity steppers, and an order summary. Suits a full cart page where shoppers review items before checkout.

- Page: https://www.shadcn-ui-blocks.com/blocks/ecommerce/shopping-cart/modern-cart
- Collection: [Ecommerce](https://www.shadcn-ui-blocks.com/blocks/ecommerce), Free tier
- Group: [Shopping Cart](https://www.shadcn-ui-blocks.com/blocks/ecommerce/shopping-cart)
- Created: 2026-06-14
- Preview image: https://www.shadcn-ui-blocks.com/blocks/ecommerce/shopping-cart/modern-cart.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/ecommerce-shopping-cart-modern-cart
```

A free block: it installs with no account or key. Or install it by URL: `npx shadcn@latest add "https://www.shadcn-ui-blocks.com/r/ecommerce-shopping-cart-modern-cart.json"`.

## Depends on

- npm packages: class-variance-authority, lucide-react, radix-ui
- shadcn/ui components: button, card, input, label, select
- Installs to: `@/components/blocks/ecommerce/shopping-cart/modern-cart`

## About this block

Modern Cart is a full cart page laid out in two columns. The wider left
column holds a heading with a live item count followed by a vertical stack
of product cards. Each card shows a product image on the left, the item
name, color, and size on the right, a minus/plus quantity stepper that
respects the item's stock ceiling, a trash button to remove the line, and a
line total that updates immediately. When an item carries an original price,
a struck-through figure appears below the current price.

The narrower right column holds the order summary card. At the top a
dropdown lets the buyer choose between Standard and Express shipping, each
showing its name, estimated delivery window, and price. Below that is a
promo code field with an Apply button. A running breakdown of subtotal,
shipping, and total follows, then a small row of trust signals (free
returns, secure payment, fast delivery), and finally a full-width checkout
button.

## When to use

Reach for this block when the cart is a dedicated page rather than a
flyout or overlay. It has room to show product detail clearly and lets the
buyer make decisions, such as adjusting quantities or choosing a shipping
tier, before they commit. For an HR or hiring platform selling seat-based
plans, assessments, or onboarding bundles, the two-column layout gives
buyers space to confirm exactly what they are purchasing and at what cost
before proceeding to payment.

A natural flow around it on an Ecommerce page:

**Before**

- A [Product Overview](https://www.shadcn-ui-blocks.com/blocks/ecommerce/product-overview) block so
  buyers arrive at the cart having just reviewed what they added
- A [Promo Sections](https://www.shadcn-ui-blocks.com/blocks/ecommerce/promo-sections) block to surface
  a discount banner that drives buyers toward checkout

**After**

- A [Trust Guarantee](https://www.shadcn-ui-blocks.com/blocks/ecommerce/ecommerce-trust-guarantee) block
  to reinforce confidence immediately below the cart
- A [Cross Sells](https://www.shadcn-ui-blocks.com/blocks/ecommerce/ecommerce-cross-sells) block to
  suggest related items before the buyer leaves

## What you can customize

The cart ships with two demo items and two shipping options, all editable
in the initial state arrays. A few other parts worth adapting:

- **Product cards.** Swap the image, name, color, size, price, and stock
  count for each item. Remove the originalPrice field on any item that
  is not discounted and the strikethrough disappears automatically.
- **Shipping methods.** Add, remove, or rename the shipping options in
  the shippingMethods array. Each entry takes a name, price, and
  estimated delivery string shown inside the dropdown.
- **Trust signals.** The three icon rows at the bottom of the summary
  card are independent lines. Replace the label text or swap the icon to
  match your platform's guarantees.

> Tip: if your platform sells digital goods or services with no physical
> shipping, remove the shipping method selector and pass a fixed zero
> shipping value so the summary still calculates correctly.

## More in Ecommerce Shopping Cart

- [Compact Cart](https://www.shadcn-ui-blocks.com/blocks/ecommerce/shopping-cart/compact-cart)
- [Floating Cart](https://www.shadcn-ui-blocks.com/blocks/ecommerce/shopping-cart/floating-cart)
- [Mini Cart](https://www.shadcn-ui-blocks.com/blocks/ecommerce/shopping-cart/mini-cart)
- [Sidebar Cart](https://www.shadcn-ui-blocks.com/blocks/ecommerce/shopping-cart/sidebar-cart)
- [Sticky Cart](https://www.shadcn-ui-blocks.com/blocks/ecommerce/shopping-cart/sticky-cart)
