What is a shopping cart?
DEFINITION
A shopping cart is the part of an online store that holds the items a shopper has selected, showing quantities, prices and totals before checkout.
The shopping cart is the online version of a basket. When a shopper clicks add to cart, the store records the product, variant and quantity, usually in a session or cookie, and often in the customer account if they are logged in. The cart page or slide-out drawer lets them review items, change quantities, remove products, apply a discount code and see a subtotal before moving to checkout.
Technically, the cart also recalculates prices, applies promotions and checks stock so the order is valid when the customer pays.
Why the shopping cart matters
The cart is a decision point. Shoppers use it to compare, reconsider and check the total cost. If shipping costs or taxes appear without warning, or if editing the cart is clumsy, many will leave. A well-designed cart reassures buyers with clear totals and delivery information, and it is also a natural place for relevant cross-sells or a free shipping progress message.
Example of a clear cart
A shopper adds two T-shirts and a cap. A cart drawer slides open showing each item with a thumbnail, size, quantity controls and price. Below, a line reads "$12 away from free shipping" based on the store's real threshold. The subtotal is shown, with a note that taxes and shipping are calculated at checkout or an estimate if the address is known. One prominent checkout button and a smaller continue shopping link complete the panel, along with accepted payment icons.
Best practices
- Keep the cart persistent so items remain if the shopper returns later or switches devices while logged in.
- Show an estimated total, including shipping where possible, before the checkout step.
- Make quantity changes and item removal work instantly without a full page reload.
- Limit cart upsells to one or two genuinely relevant suggestions.
Common mistakes
- Clearing the cart after a short session timeout, forcing shoppers to start again.
- Burying the checkout button below promotions and recommendations.
- Showing a large, prominent discount code field that sends shoppers off to search for codes.
Frequently asked questions
What is the difference between a cart and checkout?
The cart is where shoppers review and adjust the items they selected. Checkout is the process that follows, where they enter shipping details, choose delivery, pay and place the order. Some stores merge these steps, but keeping the cart simple and the checkout short is the common pattern.
Should I use a cart page or a cart drawer?
A slide-out drawer keeps shoppers on the product page and works well for stores where people buy several items. A full cart page offers more room for details and works well for complex orders. Many stores use a drawer for quick confirmation with a link to the full cart.
How long should items stay in a shopping cart?
Long enough that returning shoppers find what they left, often several days or weeks via a cookie, and indefinitely for logged-in accounts. Stock is usually reserved only at checkout, so a saved cart should recheck availability and prices when the shopper comes back.
Need help with this?
E-Commerce & Onlineshops by VYZEON — Ein Onlineshop, der verkauft — überall.
Fixed packages from $299. Written scope, no surprises.
