开发者

Magento - Adminhtml - Get id of order just created

I want to do some post processing on an order, made using admin p开发者_开发问答anel.

I have subscribed to the controller_action_postdispatch_adminhtml_sales_order_create_save event, and the correct function of this observer is being invoked.

How can I get the id of the order just saved in the saveAction in my function.


Mage_Adminhtml_Model_Sales_Order doesn't appear to save the order in the session anywhere, so this may be tough with the event you've chosen. In fact, the controller action you specified calls _getSession()->clear() to lose all the data from the session.

I would suggest finding a different event to use.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜