quantità
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user