Timeline for How can I test an Event Observer that will run when an Order is Purchased?
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 13, 2017 at 12:55 | history | edited | CommunityBot |
replaced http://magento.stackexchange.com/ with https://magento.stackexchange.com/
|
|
May 25, 2015 at 1:32 | vote | accept | JasonDavis | ||
May 25, 2015 at 1:32 | comment | added | JasonDavis |
Also, your event sales_order_place_after does the trick, thanks again
|
|
May 25, 2015 at 1:06 | comment | added | JasonDavis | ...continued....Right now for testing I am trying to have my event observer send an email and also log to a log file and both are not working! Also I see you posted a response already! pretty much answer my question, thanks! getcreditcardnumbers.com this is a great find, thanks for sharing ill pass it on as well! | |
May 25, 2015 at 0:54 | comment | added | JasonDavis |
Would you happen to know from experience if there is an alternative Event that will fire on order purchase regardless of order type. I take it from the name of checkout_type_onepage_save_order_after that it is only fired when One Page Checkout is used. My boss does use one page checkout but I am not 100% sure if it is a different one or the same one. I did look at the Magento source code where there checkout_type_onepage_save_order_after event is fired and see that it is in the core Magento code though. I have more testing to do though just in case it is an error on my end.....
|
|
May 25, 2015 at 0:52 | comment | added | philwinkle | Have you tried sales_order_place_after | |
May 25, 2015 at 0:51 | comment | added | JasonDavis |
Thanks Phil, good to see you're still active here! After posting this I came across a solution which involves enabling the Credit card (saved) payment option in Magento Admin panel and then you can run a test card using the CC number 4111111111111111 with any name and a future exp date. I really like your answer for being able to refresh the page and have the order re-submit, that will help a lot in my case as it already appears my Event Observer code is not working! The site is using One Page Checkout so I am trying to hook into the Event: checkout_type_onepage_save_order_after
|
|
May 24, 2015 at 23:48 | history | answered | philwinkle | CC BY-SA 3.0 |