Skip to content

Conversation

vishwamartur
Copy link

Related to #366

Update MediaGallery component to display both product and variant images, prioritizing the selected variant's images.

  • Import useProductVariants and useSelectedVariant hooks in app/components/product/MediaGallery.tsx.
  • Concatenate variant images with product images and remove duplicate images based on Shopify CDN file URL.
  • Modify useSelectedVariant hook in app/hooks/useSelectedVariant.tsx to include images field for the selected variant.

Related to frontvibe#366

Update `MediaGallery` component to display both product and variant images, prioritizing the selected variant's images.

* Import `useProductVariants` and `useSelectedVariant` hooks in `app/components/product/MediaGallery.tsx`.
* Concatenate variant images with product images and remove duplicate images based on Shopify CDN file URL.
* Modify `useSelectedVariant` hook in `app/hooks/useSelectedVariant.tsx` to include `images` field for the selected variant.
Copy link

vercel bot commented Oct 31, 2024

@vishwamartur is attempting to deploy a commit to the Frontvibe Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant