Or something similar. Currently it is possible to make observer for sales_order_save_before or sales_order_save_after, but with these I could write a bit less code in the event (no need to check the whole status history, I would get the relevant parts directly from the event object). To make these useful, these need to have the status_before (status where the order is before change) and status_after (status where order is after change). Otherwise I need to do almost the same amount of work.
Trying to figure out how to update page HTML via an observer.
I’ve got my new observer to function correctly, but now I need to return some text to the html page. (tracking code for the iDevAffiliate software)
So i guess the question is...: How do I update page HTML via an observer event?
I’m patterning my module after the google analytics module. It’s a little confusing how the Observer.php method (order_success_page_view) calls the block from Ga.php to get the tracking results back into the page html. If I can I figure this last part out I’ve got the module just about ready to upload into Magento Connect for others to use.
I am working on integrating a client’s Magento store with a 3rd party service. When an order is successfully placed (paid via CC, so funds are captured) I would like to send the order details to the 3rd party.
Any suggestions on which would be to most appropriate event to trigger this?
Ideas: