Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

How to get a new sales order increment ID
 
yht110
Jr. Member
 
Total Posts:  5
Joined:  2008-09-25
 

I am changing the logic of Onepage.php for recurring orders. When it is a recurring order, I will make another order having a “pending” status in addition to the current order.

The problem is when I tried to use this to get a new increment id for the pending order:

$new_incr_id = Mage::getSingleton(’eav/config’)->getEntityType(’order’)->fetchNewIncrementId($this->getQuote()->getStoreId());

If the increment id for the processing order is 100000600, the increment id for the pending order will be 100000602. So it skips one number.

Does anyone know why?

Thanks in advance!

Yue

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top