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

Fix max on variable products #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sergiofornet
Copy link

On variable products, max value was set to be the lowest between universal max and product max, so, universal max could override product max and no variation stock was taken into account.

Now, max gets the lower value between variation stock and product max (if defined) or global max.

@billrich2001
Copy link

Please adopt this change, just spent 3 hours trying to figure out why we couldn't add a product to the cart.

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

Successfully merging this pull request may close these issues.

2 participants