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

Events for stock changes #76

Open
steroberts89 opened this issue Feb 7, 2019 · 0 comments
Open

Events for stock changes #76

steroberts89 opened this issue Feb 7, 2019 · 0 comments

Comments

@steroberts89
Copy link

I keep coming back to this idea, I think it would be great to get an event added for when the stock level of a product is set/changed.

You could accomplish this with finalising events (On order complete, on refund), but I don't think there is one for the "On Content" stock level editor, and this just feels dirty.

Reasons I'd want this, we have a faceted product view, and we only want to show products which are in stock, which means asking the database for each product on the display. If we had an event to hook into for when stock levels change, I would just store the stock level in a lucene index.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants