Magento 1.5中订单号的自定义开始号码
问题描述:
如何自定义Magento 1.5中的订单,发票等的起始号码?
How do I customise the starting number for orders, invoices etc in Magento 1.5?
答
从magento论坛:
From magento's forum:
- 由LindyKyaw(Magento团队成员),更改开始号(通过sql查询):
- by LindyKyaw (Magento Team Member), changing start number (through sql query):
There is a table in the database which stored increment id of order.
It is called "eav_entity_store" table.
You can check which entity type id belongs to which entity by looking at
eav_entity_type table.
You can run following query to update last increment id for the order.
update eav_entity_store
inner join eav_entity_type on eav_entity_type.entity_type_id = eav_entity_store.entity_type_id
set eav_entity_store.increment_last_id=3001
where eav_entity_type.entity_type_code='order';