Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fixed `Processing order...` modal closing too early - @grimasod (#4021)
- Keep registered payment methods after `syncTotals` - @grimasod (#4020)
- Added status code to the cache content and use it in cache response - @resubaka (#4014)
- Disable checking max quantity when manage stock is set to false - @gibkigonzo (#4038)

## [1.11.0] - 2019.12.20

Expand Down
6 changes: 5 additions & 1 deletion src/themes/default/components/core/ProductQuantity.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ export default {
type: Number,
default: undefined
},
checkMaxQuantity: {
type: Boolean,
default: true
},
loading: {
type: Boolean,
default: false
Expand All @@ -64,7 +68,7 @@ export default {
return this.isOnline ? this.maxQuantity : null
},
disabled () {
return this.isOnline ? !this.maxQuantity : false
return this.isOnline ? !this.maxQuantity && this.checkMaxQuantity : false
},
name () {
if (this.isSimpleOrConfigurable && !this.loading && this.showQuantity) {
Expand Down
1 change: 1 addition & 0 deletions src/themes/default/pages/Product.vue
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@
:loading="isStockInfoLoading"
:is-simple-or-configurable="isSimpleOrConfigurable"
:show-quantity="manageQuantity"
:check-max-quantity="manageQuantity"
@error="handleQuantityError"
/>
<div class="row m0">
Expand Down