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.
Also covered in
- Pro Angular 16
- Python Concurrency with asyncio
- Practices of the Python Pro
- The Design of Web APIs, Second Edition
- Tiny CSS Projects
What to know first
- catalogA catalog is an organized collection of identifiable items or records and descriptive information that supports their discovery, browsing, or access.
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 or execution context associated with a user, client, process, or service that groups related exchanges or operations and may retain state.
- AddScopedconfigured by · AddScoped is a .NET dependency-injection registration method that assigns a service a scoped lifetime, creating one instance per lifetime scope.
- goalused by · A goal is a desired outcome or state that guides actions and decisions or provides a basis for evaluating progress.
- handlerused by · A handler is a software routine or component invoked to process an event, request, message, or other input.
- producthas part · A product is a good, service, software offering, or other managed offering made available to customers or users to provide value.
Questions about shopping cart
What is 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.
Which Manning books explain shopping cart?
Pro ASP.NET Core 7, Tenth Edition and Grokking Simplicity.
What should I know before learning shopping cart?
Manning books that teach shopping cart usually introduce catalog and checkout flow first.
What are the parts of shopping cart?
Shopping cart includes product.
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.

