Magento 1.5中订单号的自定义开始号码 [英] Custom Start Number for Order Numbers in Magento 1.5
本文介绍了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';
查看全文