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

min & max limit on quantity of prodcut. #4

Open
w-abdullah opened this issue Mar 22, 2018 · 1 comment
Open

min & max limit on quantity of prodcut. #4

w-abdullah opened this issue Mar 22, 2018 · 1 comment

Comments

@w-abdullah
Copy link

w-abdullah commented Mar 22, 2018

Hey, we are using this awesome package and it working great. Thank you for developing this.

Just want to confirm that is there any way we can set limits on quantity of a product somehow?

Like we have only 5 products in store so user shouldn't be allowed to add more than 5.

@olegnn
Copy link
Owner

olegnn commented Mar 24, 2018

Hello,

For now, there's no possibility to somehow limit the amount of product in "Add to cart" form but you can write your own reducer for products (or rewrite part of https://github.com/olegnn/react-shopping-cart/blob/master/src/reducers/cart/products.js) to restrict the maximum count of product.

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