diff --git a/components/PhotoModel.vue b/components/PhotoModel.vue new file mode 100644 index 0000000..05b578a --- /dev/null +++ b/components/PhotoModel.vue @@ -0,0 +1,57 @@ + + + + + diff --git a/components/ProductImages.vue b/components/ProductImages.vue index 488f9c5..6fc00f2 100644 --- a/components/ProductImages.vue +++ b/components/ProductImages.vue @@ -6,6 +6,10 @@ > + +
+ +
diff --git a/composables/useProduct.ts b/composables/useProduct.ts index 9851e85..910dbad 100644 --- a/composables/useProduct.ts +++ b/composables/useProduct.ts @@ -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, diff --git a/pages/product/[id].vue b/pages/product/[id].vue index d6cd4c8..5b4fca3 100644 --- a/pages/product/[id].vue +++ b/pages/product/[id].vue @@ -6,9 +6,7 @@
-
- фотомодель -
+