создаю телегу товаров
All checks were successful
Deploy / build (push) Successful in 2m31s

This commit is contained in:
alsaze
2025-10-09 15:55:07 +03:00
parent 35caed5d80
commit 154c7f5ffd
4 changed files with 72 additions and 3 deletions

View File

@@ -28,6 +28,8 @@ export const useProduct = (variantId) => {
const material = computed(() => getAttribute(productsData?.value?.attributes, 'material')?.option)
const size = computed(() => getAttribute(productsData?.value?.attributes, 'size')?.option)
const photoModel = computed(() => productsData?.value?.meta_data?.find(meta => meta?.key === 'photoModel').value?.split(','))
function getIdentifier(productVariant) {
const color = getAttribute(productVariant?.attributes, 'color')?.option
const material = getAttribute(productVariant?.attributes, 'material')?.option
@@ -68,6 +70,8 @@ export const useProduct = (variantId) => {
material,
size,
photoModel,
variations,
getAttribute,