lista ordini aggiornata
This commit is contained in:
@@ -43,6 +43,8 @@ export default defineComponent({
|
||||
const globalStore = useGlobalStore()
|
||||
const products = useProducts()
|
||||
|
||||
const site = ref(globalStore.site)
|
||||
|
||||
const myorder = reactive(<IOrder>{
|
||||
idapp: process.env.APP_ID,
|
||||
quantity: 0,
|
||||
@@ -214,7 +216,12 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
function enableAddQty() {
|
||||
return getQtyAvailable() > 0
|
||||
if (site.value.ecomm!.enablePreOrders) {
|
||||
return true
|
||||
} else {
|
||||
return getQtyAvailable() > 0
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
onMounted(load)
|
||||
@@ -244,6 +251,7 @@ export default defineComponent({
|
||||
arrordersCart,
|
||||
endload,
|
||||
shared_consts,
|
||||
site,
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user