-
Notifications
You must be signed in to change notification settings - Fork 89
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
Add availibility property to ProductVariantView #508
Add availibility property to ProductVariantView #508
Conversation
a3d79b2
to
4f26a16
Compare
165ec12
to
ab5ca81
Compare
Anything missing from my side? |
No, but both features were added after RC. I'm a little bit worried about adding too much of new functionalities before going to be stable. In default Sylius implementation, we are not presenting the available amount of products atm. Also, To sum up, I would say, that #503 should be reverted and added after stable release. Probably just by adding I have same problem with #502 |
From what I can see at a quick glance this is still too simple because the availability checker has a second method to check for sufficient quantity. This has to be done when adding a product variant to the cart and when changing its quantity. There exists a constraint And |
One more suggestion: Instead of a boolean create a state, as users might want to differentiate between |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey Alexander,
I think it is high time to merge it. Are you willing to rebase this branch?
ab5ca81
to
5349869
Compare
I have rebased the merge request to the master. This means that the
|
5349869
to
5a6b696
Compare
Thank you, Alexander! 🎉 |
@mamazu Thank you for rebasing. Didn't got the time to fix the tests 🙈 |
No problem. |
I misinterpredted how sylius checks the availibility of a product when implementing #503.
This will now use the correct availibilityChecker service of sylius.