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_price
Price 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_at
Creation 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
name
Text name of the order item
parent_item_id
Foreign 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 NULL
product_id
Foreign key
associated with the catalog_product_entity
table. Join to catalog_product_entity.entity_id
to determine product attributes associated with the order itemproduct_type
Type of product that was added to the cart. Potential product types include: simple, configurable, grouped, virtual, bundle, and downloadable
qty
Quantity of units included in the cart for the particular cart item
quote_id
Foreign key
associated with the quote
table. Join to quote.entity_id
to determine cart attributes associated with the cart itemsku
Unique identifier for the cart item
store_id
Foreign 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 date
Timestamp 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_price
Seconds since cart creation
Elapsed 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 name
Name 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 items
Total quantity of items added to carts that meet specific “abandonment” conditions
Operation: Sum
Operand: qty
Timestamp: Cart creation date
Filters:
- [
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 value
Sum of total revenue associated with carts that meet specific “abandonment” conditions
Operation: Sum
Operand: Cart item total value (qty * base_price)
Timestamp:
Cart creation date
Filters:
- [
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_entity
table 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
quote
table 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_item
to 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
store
table 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