WebCart and its related cart objects
Key Takeaway
WebCart holds the cart's totals. CartItem holds products and charges, including shipping fees. CartDeliveryGroup holds the ship-to address.
WebCart is the object that represents a buyer's online shopping cart in a store built with B2B Commerce or D2C Commerce. The record holds the cart's totals for products, shipping and handling, and taxes. WebCart sits at the center of the cart data model, a group of related objects that includes CartItem and CartDeliveryGroup. To get a B2B store running, you need to know which object holds each piece of cart data.
The objects in the cart data model
The cart data model connects the objects that support shopping cart and checkout in a B2B or B2C store, including objects for shipping, taxes, and promotions. The model contains these objects:
- WebCart
- CartItem
- CartDeliveryGroup
- CartTax
- CartItemPriceAdjustment
- WebCartAdjustmentGroup
- WebCartAdjustmentBasis
- CartCheckoutSession
- CartValidationOutput
- PaymentGroup
- PaymentMethod
- WebStore