- aggiungo campo "sfuso"

- aggiunto totale al carrello
This commit is contained in:
Surya Paolo
2024-02-11 16:33:07 +01:00
parent b2d6b25539
commit 07a37f20f9
5 changed files with 9 additions and 3 deletions

View File

@@ -880,8 +880,11 @@ export const useProducts = defineStore('Products', {
if (qta > 1 || qta === 0)
strprod = t('ecomm.prodotti')
if (qta >= 0) {
msg = t('ecomm.prod_sul_carrello', { strprod, qty: qta })
let totalPrice = this.cart.totalPrice ? this.cart.totalPrice.toFixed(2): 0
let tot = totalPrice + ' €'
msg = t('ecomm.prod_sul_carrello', { strprod, qty: qta, tot })
}
}