You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A store with some products and a way to create orders on the frontend
Steps to reproduce
Create a new working module
Add a file: etc/frontend/events.xml and etc/events.xml file
In both files add an observer for the event checkout_submit_before (make sure they have a different name) and make it call a method which outputs something in a log file to see which of the two observers was called.
Flush your caches
Go to the frontend and place an order
Expected result
There should be 2 entries in the logfile, one for the 'global' observer and one for the 'frontend' observer
Actual result
There is only 1 entry in the logfile, the one for the 'global' observer, the one for the 'frontend' observer is missing
Discussion
I think this is a bug, but I'm not sure. If this is expected behavior I would have expected to find some documentation where this is being explained.
The text was updated successfully, but these errors were encountered:
Of course, 5 minutes after creating this issue, I find this other issue which explains why it doesn't work: #1581
And after testing, it actually works like explained over there.
So this is clearly a documentation issue, because this webapi_rest event area is not mentioned in the docs currently...
Closing this issue, I'm going to open one over at the devdocs repo.
Preconditions
Steps to reproduce
etc/frontend/events.xml
andetc/events.xml
filecheckout_submit_before
(make sure they have a different name) and make it call a method which outputs something in a log file to see which of the two observers was called.Expected result
Actual result
Discussion
I think this is a bug, but I'm not sure. If this is expected behavior I would have expected to find some documentation where this is being explained.
The text was updated successfully, but these errors were encountered: