import products dinamically
This commit is contained in:
@@ -985,7 +985,7 @@ export const useProducts = defineStore('Products', {
|
||||
enableAddQty(myorder: IOrder, myproduct: IProduct): boolean {
|
||||
const globalStore = useGlobalStore()
|
||||
if (globalStore.site.ecomm && globalStore.site.ecomm.enablePreOrders) {
|
||||
return (this.getQtyBookableAvailable(myproduct) > 0
|
||||
return ((this.getQtyBookableAvailable(myproduct) > 0)
|
||||
&& (myproduct.maxBookableSinglePersQty === 0
|
||||
|| (myorder.quantitypreordered + 1 < myproduct.maxBookableSinglePersQty))
|
||||
)
|
||||
@@ -1011,6 +1011,10 @@ export const useProducts = defineStore('Products', {
|
||||
step = myproduct.minBuyQty
|
||||
}
|
||||
|
||||
if (step === 0) {
|
||||
step = 1
|
||||
}
|
||||
|
||||
return step
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user