Sales_Flat_Quote_Item表
将sales_flat_quote_item
(quote_item
在Magento 2.X)表中包含记录在每一个 项目添加到 购物车中,无论是车被遗弃或转为购买。每行代表一个购物车项目。由于此表的潜在大小,许多企业在满足一定条件后删除此表中的记录(即,在创建后60天删除所有未转换的购物车)。
请注意,只有在不删除sales_flat_quote
和 sales_flat_quote_item
表中的记录时才能分析历史废弃的购物车。如果删除记录,则只能看到尚未从数据库中删除的购物车。
Sales_Flat_Quote_Item表 主要关键字段分析
列名称 | 描述 |
ITEM_ID | 表的唯一标识符。每个` item _id` 代表一个独特的购物车商品 |
created_at | 购物车reation日期的项目,通常保存在UTC |
quote_id | 与` sales_flat_quote` 表关联的外键 ( ENTITY_ID ) |
PRODUCT_ID | 与` catalog_product_entity` 表关联的外键 |
price | 每个购物车项目的价格 |
qty | 购物车中包含的商品数量 |
ROW_TOTAL | 购物车项目行的总价值,由(价格x 数量)表示 |
name | 与购物车项目关联的名称 |
SKU | 购物车商品的相关SKU |
product_type | Determines if the product is ‘simple’, ‘configurable’, ‘bundle’, or ‘downloadable’ 确定产品是“简单”,“可配置”,“捆绑”还是“可下载” |
sales_flat_quote
- 将购物车项目链接到购物车级别详细信息,例如购物车创建日期或购物车状态:
- Magento 1.x 🙁
sales_flat_quote_item.quote_id
很多)=>sales_flat_quote.entity_id
(一) - Magento 2.x 🙁
quote_item.quote_id
很多)=>quote.entity_id
(一)
- Magento 1.x 🙁
catalog_product_entity
- 将购物车项目链接到产品级别详细信息,以确定与购物车项目关联的产品属性
- Magento 1.x 🙁
sales_flat_quote_item.product_id
很多)=>catalog_product_entity.entity_id
(一) - Magento 2.x 🙁
quote_item.product_id
很多)=>catalog_product_entity.entity_id
(一)
- Magento 1.x 🙁
数据字段显示例子:
SELECT item_id ,created_at,quote_id ,product_id,price,qty,row_total,NAME,sku,product_type FROM sales_flat_quote_item;


Sales_Flat_Quote 与
Sales_Flat_Quote_Item 的关系
参考分析:
https://support.magento.com/hc/en-us/articles/360016731031-The-Sales-Flat-Quote-Item-Table