Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Magento: can't capture the "sales_order_place_before" event #1581

Closed
lucbaojang opened this issue Jul 29, 2015 · 13 comments
Closed

Magento: can't capture the "sales_order_place_before" event #1581

lucbaojang opened this issue Jul 29, 2015 · 13 comments
Labels
bug report Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development

Comments

@lucbaojang
Copy link

I created this files to capture "sales_order_place_before" event but I can't. I also tried with other events and them worked for me.

  • /Mycompany/Modulename/app/etc/frontend/events.xml

2015-07-29_18-01-41

  • /Mycompany/Modulename/app/Model/Observer.php
@blankapham
Copy link

Having same problems. Does anyone help me?
Thanks,

@trungha89
Copy link

i have same issue. Can someone help me please?

@vpelipenko vpelipenko added the Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development label Jul 30, 2015
@vpelipenko
Copy link
Contributor

We will work on this. Internal ticket: MAGETWO-40857.

@lucbaojang
Copy link
Author

@vpelipenko : thank you but I cannot access your page :(

@vpelipenko
Copy link
Contributor

Sorry, it is only for internal usage.

@rganin
Copy link
Contributor

rganin commented Jul 30, 2015

Checkout (specially order placing request) is processed via Magento's REST API since latest releases.
Add your events.xml file with observers to webapi_rest area by moving
/Mycompany/Modulename/app/etc/frontend/events.xml
to
/Mycompany/Modulename/app/etc/webapi_rest/events.xml

@lucbaojang
Copy link
Author

@rganin thank you so much, It worked for me 👍

@blankapham
Copy link

@rganin Thank you for sharing. It is very useful for me. :)

@vpelipenko
Copy link
Contributor

@lucbaojang, can we close this issue?

@lucbaojang
Copy link
Author

@vpelipenko yes. please close it. Thank you again :)

@kartikasodariya17
Copy link

Can you please give me both files one is events,xml and Observer.php ? So it will help for me .
Thanks

@pradeep2949
Copy link

Thanks a lot @rganin it solves the problem

magento-team pushed a commit that referenced this issue Oct 11, 2017
Bug
- MAGETWO-71554 Visual Merchandiser category edit performance issue - for 2.2
@ankushx
Copy link

ankushx commented Nov 2, 2023

my event is still not invoking sales_order_save_before even in global events,webapi_rest ,,, @rganin @lucbaojang @trungha89 @vpelipenko @blankapham

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development
Projects
None yet
Development

No branches or pull requests

8 participants