Carrello con scontistica aggiornata

This commit is contained in:
Surya Paolo
2023-12-18 12:11:22 +01:00
parent 265c8f4d9e
commit c1d60a7260
8 changed files with 41 additions and 13 deletions

View File

@@ -87,7 +87,6 @@ export default defineComponent({
return false
}
products.addToCart({ product: myproduct.value, order: myorder, addqty: add }).then((ris) => {
let strprod = t('ecomm.prodotto')
@@ -226,7 +225,7 @@ export default defineComponent({
}
function enableAddQty() {
if (site.value.ecomm!.enablePreOrders) {
if (site.value.ecomm && site.value.ecomm.enablePreOrders) {
return true
} else {
return getQtyAvailable() > 0