cart mechanism complete

This commit is contained in:
2025-02-05 21:17:25 +02:00
parent 5ac895ea3e
commit f594f001f6
24 changed files with 441 additions and 78 deletions

View File

@@ -1,10 +1,14 @@
'use server'
import {Lang, Product, ProductLocale} from '@prisma/client'
import internal from 'node:stream'
import {Lang, Product, ProductLocale, ProductToStore} from '@prisma/client'
import {db, dbQueryLog} from '@/lib/db/prisma/client'
export interface ProductProps extends Product {
locales: ProductLocale[]
toStore: ProductToStore[]
}
export const getProductBySlug = async (data: {
slug: string
lang: string