Replies: 1 comment 1 reply
-
Based on the help I got from @AugustMiller I think I was able to make some progress with this.
And I have added the updateStock method as a behavior on the variants based on what I have found in
I'm going to keep this discussion open, since I'm sure there are better ways to do this, or there will be eventually. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello all
I have a requirement from a client that says if "some conditions are fulfilled users should be able to buy a purchasable even if it doesn't have stock".
Could you be so kind to help me on how I can solve this in Commerce 5?
Or just point me to some kind of documentation or direction where I can get this information myself.
Alternative solution could be to set unlimitedStock on all variants (but I have no idea how to do this since the documentation doesn't cover it, just mentions it), naturally this would mean I have to throw out all these new mechanics around inventory management that had been introduced in the latest version. Client doesn't have multiple warehouses so it won't be an issue.
Thanks a lot in advance.
Beta Was this translation helpful? Give feedback.
All reactions