when you create an invoice in the admin panel, what is the name of that event for an observer? I’ve tried *sales_order_invoice_register* and *sales_order_invoice_pay* but it doesn’t work.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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
_eventPrefixproperty tosales_order_invoice, you can observesales_order_invoice_save_after.Make sure that you are using the correct event configuration area: adminhtml vs frontend vs global.