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.
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.
Related concepts
- Razor Pagesused by · Razor Pages is an ASP.NET Core page-focused programming model in which independently addressable pages combine Razor markup with request-handling logic.
- sessionused by · A session is a bounded interaction context associated with a user, client, or process that may maintain state across related operations or requests.
- business goalused by · A business goal is a desired organizational outcome that guides decisions, priorities, or resource allocation.
- handlerused by · A handler is a callable or software component that processes an event, request, message, or other input and performs associated processing.
- serviceused by · A service is an application component that provides defined capabilities to other components through an interface.
- AddScopedconfigured by · AddScoped is a .NET dependency-injection registration method that assigns a service a scoped lifetime, creating one instance per lifetime scope.
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.

