quantità

This commit is contained in:
Surya Paolo
2023-11-30 15:43:32 +01:00
parent 19b5b3ea11
commit f7656c8379
8 changed files with 62 additions and 32 deletions

View File

@@ -26,6 +26,7 @@ import { CMyCart, CSigninNoreg } from '@/components'
import { costanti } from '@costanti'
import { useNotifStore } from '@src/store/NotifStore'
import { Platform } from 'quasar';
export default defineComponent({
@@ -68,6 +69,8 @@ export default defineComponent({
const testStore = useTestStore()
const notifStore = useNotifStore()
const { getnumItemsCart } = MixinUsers()
const site = computed(() => globalStore.site)
const isfinishLoading = computed(() => globalStore.finishLoading)
@@ -501,18 +504,6 @@ export default defineComponent({
$router.replace('/signup')
}
function getnumItemsCart() {
/* const arrcart = Products.cart
if (!!arrcart) {
if (!!arrcart.items) {
const total = arrcart.items.reduce((sum, item) => sum + item.order.quantity, 0)
return total
}
}
*/
return 0
}
function getnumOrdersCart() {
/* const arrorderscart = Products.orders.filter((rec) => rec.status < shared_consts.OrderStatus.RECEIVED)