quote_item Table
The quote_item table (sales_flat_quote_item on M1) contains records on every item added to a shopping cart, whether the cart was abandoned or converted to a purchase. Each row represents one cart item. Due to the potential size of this table, Adobe recommends you periodically delete records if certain criteria are met, such as if there are any unconverted carts older than 60 days.
NOTE
Analyzing historical, abandoned carts is only possible if you do not delete records from the
quote and quote_item table. If you do delete records, you are only able to see the carts not yet removed from your database.Common Native Columns
Column Name
Description
base_pricePrice of an individual unit of a product at the time the item was added to a cart, after catalog price rules, tiered discounts, and special pricing are applied and before any taxes, shipping, or cart discounts are applied. This is represented in the base currency of the store.
created_atCreation timestamp of the cart item, stored locally in UTC. Depending on your configuration in Commerce Intelligence, this timestamp may be converted to a reporting time zone in Commerce Intelligence that differs from your database time zone
item_id (PK)Unique identifier for the table
nameText name of the order item
parent_item_idForeign key that relates a simple product to its parent bundle or configurable product. Join to quote_item.item_id to determine parent product attributes associated with simple product. For parent cart items (that is, bundle or configurable product types), the parent_item_id is NULLproduct_idForeign key associated with the catalog_product_entity table. Join to catalog_product_entity.entity_id to determine product attributes associated with the order itemproduct_typeType of product that was added to the cart. Potential product types include: simple, configurable, grouped, virtual, bundle, and downloadable
qtyQuantity of units included in the cart for the particular cart item
quote_idForeign key associated with the quote table. Join to quote.entity_id to determine cart attributes associated with the cart itemskuUnique identifier for the cart item
store_idForeign key associated with the
store table. Join to store.store_id to determine which Commerce store view is associated with the cart itemCommon Calculated Columns
Column Name
Description
Cart creation dateTimestamp associated with the cart creation date. Calculated by joining
quote_item.quote_id to quote.entity_id and returning the created_at timestampCart is active? (1/0)Boolean field that returns “1” if the cart was created by a customer and has not yet converted to an order. Returns “0” for converted carts, or carts created through the admin. Calculated by joining
quote_item.quote_id to quote.entity_id and returning the is_active fieldCart item total value (qty * base_price)Total value of an item at the time the item was added to a cart, after catalog price rules, tiered discounts, and special pricing are applied and before any taxes, shipping, or cart discounts are applied. Calculated by multiplying the
qty by the base_priceSeconds since cart creationElapsed time between the cart’s creation date and now. Calculated by joining
quote_item.quote_id to quote.entity_id and returning the Seconds since cart creation fieldStore nameName of the Commerce store associated with the order item. Calculated by joining
sales_order_item.store_id to store.store_id and returning the name fieldCommon Metrics
Metric Name
Description
Construction
Number of abandoned cart itemsTotal quantity of items added to carts that meet specific “abandonment” conditions
Operation: SumOperand: qtyTimestamp: Cart creation dateFilters:
- [
A] Cart is active? (1/0) = 1- [
B] Seconds since cart creation > x, where “x” corresponds to the elapsed time (in seconds) since cart creation beyond which a cart is considered abandonedAbandoned cart item valueSum of total revenue associated with carts that meet specific “abandonment” conditions
Operation: SumOperand: Cart item total value (qty * base_price)Timestamp: Cart creation dateFilters:
- [
A] Cart is active? (1/0) = 1- [
B] Seconds since cart creation > x, where “x” corresponds to the elapsed time (in seconds) since cart creation beyond which a cart is considered abandonedForeign Key Joining Paths
catalog_product_entity
- Join to
catalog_product_entitytable to create columns that return product attributes associated with the cart item.- Path:
quote_item.product_id(many) =>catalog_product_entity.entity_id(one)
- Path:
quote
- Join to
quotetable to create new cart-level columns associated with the cart item.- Path:
quote_item.quote_id(many) =>quote.entity_id(one)
- Path:
quote_item
- Join to
quote_itemto create columns that associate details of the parent configurable or bundle SKU with the simple product. Contact support for assistance in configuring these calculations, if building in the Data Warehouse manager.- Path:
quote_item.parent_item_id(many) =>quote_item.item_id(one)
- Path:
store
- Join to
storetable to create columns that return details related to the Commerce store associated with the cart item.- Path:
quote_item.store_id(many) =>store.store_id(one)
- Path:
recommendation-more-help
e1f8a7e8-8cc7-4c99-9697-b1daa1d66dbc