commerce icon indicating copy to clipboard operation
commerce copied to clipboard

Color/Size Swatches should change displayed image

Open okbel opened this issue 3 years ago • 2 comments

okbel avatar Oct 27 '20 21:10 okbel

any updates?

tnishikata avatar Jul 17 '22 06:07 tnishikata

I suggest add optional variantId property to the ProductImage type and then sort product.images based on the currently selected variant.

export type ProductImage = {
  url: string
  alt?: string
  variantId?: ProductVariant['id']
}

This might be done as a follow up on this issue: #508

drugan avatar Jul 24 '22 18:07 drugan

Hey there! Thank you for your contribution. We have decided to take Next.js Commerce in a new direction and will be closing out current PRs and issues due to this change. Please see this PR for more details: #966

manovotny avatar Apr 18 '23 02:04 manovotny