Skip to content

Cart

File: sections/cart.liquid

Templates: cart.json

Cart

Description

Cart

Renders the full shopping cart page with support for program bookings, deposits, guest attendee management, and standard products. Handles complex line item property display including program details, deposit amounts, remaining balances, and guest profile requirements.

Features:

  • Full cart display with product images, titles, and program details
  • Program-specific line item properties (Program Title, Program Options, deposit info, remaining balance, discount)
  • Guest attendee modal for adding/editing/deleting guest profiles
  • Quantity update with guest count validation (prevents reducing quantity below registered guest count)
  • Program availability checking via external API (api-prod-v2.expand.monroeinstitute.org)
  • Gift purchase indication
  • Deposit and remaining balance display per line item
  • Discount and total calculations in price summary
  • Checkout button disabled until all guest profiles are complete
  • Cart item removal via trash icon
  • Empty cart state with message
  • Escape key and overlay click to close modals
  • Cart data exposed as JSON for JavaScript consumption

Settings:

None (no {% schema %} block)

Blocks: None

Usage

This section is referenced in JSON templates and cannot be added via the theme editor.

{% section 'cart' %}