Change the Length of Order Number in Magento
Normally magento generates 9 digits order number by default. If you need to reduce it, use following method. Go to your magento database and make changes in ’eav_entity_type’ and ‘eav_entity_store’ tables.
As an example if you want to use 3 digits number and starting number is 110, then you have to put 2 as ’increment_pad_length’.
Please run following two queries:
view plaincopy to clipboardprint?
- UPDATE `eav_entity_type` SET `increment_pad_length` = 2 WHERE `entity_type_code` = ‘order’ LIMIT 1;
- UPDATE `eav_entity_store` SET `increment_last_id` = ’109′ WHERE `entity_store_id` = 1 LIMIT 1;
The Author

Follow @phpzag

You saved my life. Really a nice article…