Get users who has bought this product (MAGENTO)

前端 未结 3 1315

Is it possible in magento to filter user based on the products they have bought? For eg.

How can I get all the users who have bought product A from category B

<
3条回答
  •  忘掉有多难
    2020-12-14 13:11

    You have to base your query on orders. If you want to do it by SQL query, you have to it by the following table:

    • sales_flat_quote, sales_flat_order_item to get the link between customer and product
    • catalog_category_product to get the link between category and product
    • catalog_product_entity to get the product id in function of the sku
    • ...

    Good luck

提交回复
热议问题