-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
"cataloginventory_stock" event #4857
Comments
Hi @myownspace , |
I just realised that this also requires a fix to the $_eventObject attribute name. Without this fix the event always passes the event data as 'Object' instead of the expected 'Stock' and 'Item'. |
Hi @mslabko any idea when this patch will be released ? It's a pitty that issues fixed so long time ago are still pending for release. |
MAGETWO-54066: [GITHUB] Invalid event prefix for catalog inventory #4857
This issue was fixed in develop branch. |
should the event |
No, there are several events you'll need to hook into to cover all possibilities. There's a free Magento 1 plugin which covers these cases and I think it's roughly the same in Magento 2. I'll find it and add it to this post shortly. https://github.com/jreinke/magento-stock-movements |
thank you @Silarn, currently working on a M2 version https://github.com/apedicdev/m2_stock-movement |
I can't observe "cataloginventory_stock" event because in \Magento\CatalogInventory\Model\Stock model
property named $eventPrefix instead of $_eventPrefix
The text was updated successfully, but these errors were encountered: