-
Notifications
You must be signed in to change notification settings - Fork 83
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
OCC-183: Check 'Maximum Order Quantity' update on Cart #353
Conversation
test/OrchardCore.Commerce.Tests.UI/Tests/OrderTests/OrderSuccessTests.cs
Show resolved
Hide resolved
I assume the PR was left as draft by mistake. |
src/Modules/OrchardCore.Commerce/Controllers/ShoppingCartController.cs
Outdated
Show resolved
Hide resolved
test/OrchardCore.Commerce.Tests.UI/Tests/InventoryTests/InventoryBehaviourTests.cs
Outdated
Show resolved
Hide resolved
test/OrchardCore.Commerce.Tests.UI/Tests/InventoryTests/InventoryBehaviourTests.cs
Outdated
Show resolved
Hide resolved
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.
It just occurred to me, but can you set the min and max values on the frontend too?
ProductPart.cshtml and ShoppingCartCell_Quantity.cshtml
This comment was marked as resolved.
This comment was marked as resolved.
Ah, I suppose you mean setting the |
Yes, for the quantity inputs. |
: 0); | ||
maxOrderQuantity = (int)(inventoryPart.MaximumOrderQuantity.Value > 0 && !inventoryPart.IgnoreInventory.Value | ||
? inventoryPart.MaximumOrderQuantity.Value | ||
: 1); |
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.
OCC-183
Fixes #340