Salesforce Dictionary - Free Salesforce GlossarySalesforce Dictionary
Full Cart Item entry
How-to guide

How to design Cart Items effectively

Cart Items mostly work out of the box. The work is configuring pricing, promotions, inventory, and configuration-attribute schemas to match the org's products.

By Dipojjal Chakrabarti · Founder & Editor, Salesforce DictionaryLast updated May 19, 2026

Cart Items mostly work out of the box. The work is configuring pricing, promotions, inventory, and configuration-attribute schemas to match the org's products.

  1. Confirm the Cart Item schema

    Setup, Object Manager, Cart Item. Confirm the standard fields are populated. Add custom fields only when the standard schema does not cover a real use case.

  2. Configure pricing rules

    Set up the pricing engine (PriceBook plus Pricing Procedures, or custom Cart Calculator extensions). Test that ListPrice, UnitPrice, and Total flow correctly on each Cart Item.

  3. Build promotions that target Cart Items

    Configure line-level promotions (Buy One Get One, percent-off-SKU). Verify Adjustment Amount writes to the right Cart Items during calculation.

  4. Configure Inventory checks

    Decide when Inventory runs (add to Cart, periodic recalculation, checkout). Configure behaviour for out-of-stock items (block, backorder, substitute).

  5. Model configurable products

    For products with options, decide whether configuration lives in child Cart Item Attribute records or serialised JSON. Either pattern works; consistency matters.

Gotchas
  • Inventory checks at Cart Item add time produce mid-session Out of Stock messages that frustrate shoppers. Consider deferring to checkout for most product types.
  • Line-level promotion math can be opaque. Test promotion stacking on representative carts before launch.
  • Custom fields on Cart Item proliferate fast. Add only when the standard schema cannot model the requirement.
  • Cart Item to Order Product mapping is the conversion contract. Validate the mapping in sandbox before any production checkout flow ships.

See the full Cart Item entry

Cart Item includes the definition, worked example, deep dive, related terms, and a quiz.