Carrello con scontistica aggiornata
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user