-1

Title says it all, I would really appreciate it! at this moment, Magento generates a order # with 9 digits. 100000001 for example, I'd like it to be 10001

I want to use the order # for promotional purposes, so you know why I need it. :)

Cheers!

Hakan Bektas
  • 23
  • 1
  • 9

1 Answers1

0

To do this you can execute this code:

$entityType = Mage::getModel('eav/entity_type')->loadByCode('order');
$entityType->setIncrementPadLength(5)->save();

Alternatively you can execute a query on the magento DB

UPDATE `eav_entity_type` SET `increment_pad_length`=5 WHERE entity_type_code = 'order';
changeling
  • 778
  • 1
  • 8
  • 20