gpt4 book ai didi

mysql - Magento DB 客户订单映射

转载 作者:行者123 更新时间:2023-11-29 14:00:48 25 4
gpt4 key购买 nike

Magento 订单如何映射到客户?订单包含客户 ID 还是客户包含其所有订单 ID?试图弄清楚更改订单号是否会扰乱客户映射。

最佳答案

我先回答你的问题

Magento 订单如何映射到客户?

Magento Orders are mapped to the customers using "customer_id" Foreign Key field in the order tables "sales_flat_order","sales_flat_order_grid","sales_flat_order_address". And Customer entity has no reference to the orders in turn.

订单包含客户 ID 还是客户包含其所有订单 ID?

Order only contains the customer ID not the other way around. Basically Customer entity follows the EAV structure like products and categories.

现在开始执行更改订单号的任务(技术字段名称increment_id)。

Yes you can change the increment numbers of the order. You need to do that in two tables

1. sales_flat_order
2. sales_flat_order_grid

Please make sure to reset the order increment last id of entity type id "5" which represents Order after completing your task of changing the order numbers. You should do this in the table "eav_entity_store"

如果您需要更多相关信息,请告诉我。

关于mysql - Magento DB 客户订单映射,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15101554/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com