CartThrob 9 documentation for ExpressionEngine commerce teams Visit CartThrob.com
CartThrob.com

Template Tags: Cart Tags

This page is an index of CartThrob cart-related tags for managing items, displaying cart data, and reporting on purchases.

Add, Update, and Remove Cart Items

Use these form tags to add products, update line items, and capture customer details during cart edits.

Use these parameter-driven tags to change cart state from a page visit or URL request.

  • add_to_cart Add one item to the cart using tag parameters.
  • clear_cart Clear items, coupon codes, shipping info, and totals; optionally clear customer/custom data with clear_customer_info.
  • new_cart Reset the cart to defaults and remove cart configuration overrides.
  • delete_from_cart Remove one item by row_id, or remove one matching item by entry_id and optional item_options.
  • duplicate_item Duplicate an existing cart item row for alternate configuration.
  • change_quantity Set a specific quantity for one cart item row.

Cart Contents and Customer Data

Use these tags to list current cart contents, selected options, and saved customer/session data.

  • cart_items_info Output cart line-item details, pricing, subtotals, and related values.
  • item_options Output selected and selectable options for cart or stored items.
  • package Output package/sub-item data from a cart row or product package field (legacy helper).
  • cart_entry_ids Return cart item entry IDs as a pipe-delimited string.
  • customer_info Output saved customer data for pre-filling forms and checkout steps.
  • has_shippable_items Return whether the active cart contains at least one shippable item.

Cart Totals and Counts

Use these tags to output subtotal, shipping, tax, total, weight, and item count values.

Use these tags to report on completed orders and surface related products from purchase history.

  • order_totals Filter and output aggregate order values for reporting.
  • order_items Output purchased item rows tied to one or more orders.
  • also_purchased List products frequently purchased with a target item.
  • most_purchased Output entry IDs ordered by highest purchase counts (legacy reporting helper).
  • purchased_entry_ids Output purchased entry IDs as tag-pair rows (legacy purchase-history helper).
  • is_purchased_item Check conditionally whether the current customer purchased an item before.
  • get_items_in_range Return entry IDs for items within a specific price range.