-
Notifications
You must be signed in to change notification settings - Fork 236
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
Cart items can not be exceeded then Maximum quantity #35
Comments
Same here. Also, if we change the amount on the cartView, the number from the select option on the pageView doesn't update. |
amillen
added a commit
to amillen/ngCart
that referenced
this issue
Oct 27, 2015
I am also facing the same issue. Seems like this issue is not fixed yet. How to get maximum quantity value in cart view so that I can restrict the increment of quantity. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi
In cart view using + button you can exceed the max quantity of item. like if you have max 1 quantity in cart view you can add more then 1 items.
1st suggestion can be before this line we can add
if(this._data.quantityMax && this._data.maxQuantity < ( this._quantity+quantityInt )) return;
Exactly that variable which we are using here like
<ngcart-addtocart id="{{ item.id }}" name="{{ item.name }}" price="{{ item.price }}" quantity="{{item.quantity}}" quantity-max="{{ item.maxQuantity }}" data="item">Add to Cart</ngcart-addtocart>
In my case
maxQuantity
is that variable which can be use for this.Best regards
The text was updated successfully, but these errors were encountered: