开发者

what's the event name when you create a new invoice in magento?

when you create an invoice in the admin panel, what is t开发者_JAVA百科he name of that event for an observer? I've tried *sales_order_invoice_register* and *sales_order_invoice_pay* but it doesn't work.


For Magento >= 1.4 there are a couple of options - the best choice would be the event which you've listed, sales_order_invoice_register.

Because the invoice model sets the _eventPrefix property to sales_order_invoice, you can observe sales_order_invoice_save_after.

Make sure that you are using the correct event configuration area: adminhtml vs frontend vs global.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜