liveBook · Manning

Shopping cart

A shopping cart is an e-commerce component or system representation that holds items selected for potential purchase, often with their quantities, before checkout.

How 2 Manning books explain it

Pro ASP.NET Core 7, Tenth Edition

A shopping cart is an online-store component or model that holds products selected by a customer and their quantities for purchase.

How it is used
Connects catalog selections to a customer-visible total and the path toward checkout.
How deep it goes
Builds the model, session-backed handling, Razor Page, removal handler, and unit tests; defers payment processing.
Examples
Tests line merging, removal, clearing, and a 450 total; shows Add To Cart and Remove controls.
What you can do after
Build it from scratch as a session-backed ASP.NET Core cart with product lines, totals, a Razor Page, and removal.

Read how Pro ASP.NET Core 7, Tenth Edition explains shopping cart →

Grokking Simplicity

A collection associated with an online purchase that holds selected items and their quantities before checkout.

How it is used
Aligns e-commerce actions with a cart data structure and reconstructs cart state from logged additions.
How deep it goes
Explains cart updates and reconstruction procedurally, while deferring deeper copying details to later treatment.
Examples
Uses shipping-icon logic, item-addition logs, duplicate products, quantities, prices, and cart-building callbacks.
What you can do after
Build it from scratch by reducing item logs into a cart and applying reusable, nonmutating item updates.

Read how Grokking Simplicity explains shopping cart →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.