Skip to main content

Cart details

The cart details screen appears when customers select items in a transaction to modify quantities, apply discounts, or access item-specific tools. This screen provides control over individual products during transaction building.

  • Item discounts: Apply discounts based on customer loyalty status or product attributes.
  • Line item properties: Add custom properties for inventory tracking or special handling.
  • Product verification: Launch verification workflows for high-value or restricted items.
  • Item modifications: Process returns, exchanges, or adjustments without affecting the entire cart.

Anchor to Cart details targetsCart details targets

Use these targets for item-specific customizations, cart monitoring, or product configuration tools that improve line item management.

pos.cart.line-item-details.action.menu-item.render

Renders a single interactive button component as a menu item in the cart line item action menu. Use this target for item-specific operations like applying discounts, adding custom properties, or launching verification workflows for individual cart items.

Extensions at this target can access detailed line item information including title, quantity, price, discounts, properties, and product metadata through the Cart Line Item API. Menu items typically invoke shopify.action.presentModal() to launch the companion modal for complete workflows.

pos.cart.line-item-details.action.render

Renders a full-screen modal interface launched from cart line item menu items. Use this target for complex line item workflows that require forms, multi-step processes, or detailed information displays beyond what a simple button can provide.

Extensions at this target have access to detailed line item data through the Cart Line Item API and support workflows with multiple screens, navigation, and interactive components.


  • Update info in real time: Update line item information immediately when changes occur to reflect current state.
  • Show clear confirmations: Display success or error messages specifying which item was affected and what changed.
  • Ensure cart integration: Reflect line item changes immediately in overall cart totals and state.
  • Communicate limitations clearly: Show item-specific constraints through disabled buttons, modal messages, or error text.
  • Use item-specific labels: Reference the specific item in labels and confirmations, like "10% discount applied to Blue Sweater (Large)."
  • Show item identification: Display product title, variant, and current state like applied discounts or eligibility.

  • You can only render one button component for each POS UI extension using the action (menu item) target.

  • Cart line item data is read-only through the Cart Line Item API. To modify line items, use the Cart API methods for adding properties, setting discounts, or removing items.


Was this page helpful?