lista ordini aggiornata

This commit is contained in:
Surya Paolo
2023-12-15 23:36:48 +01:00
parent 8399df8663
commit 176ca7fe20
13 changed files with 201 additions and 24 deletions

View File

@@ -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,
}
}
})