saleor / saleor-storefront

A GraphQL-powered, NextJs-based, PWA storefront for Saleor. IMPORTANT: This project is [DEPRECATED] in favor of saleor/react-storefront soon to become our default demo and storefront starter pack.
https://demo.saleor.io/
BSD 3-Clause "New" or "Revised" License
769 stars 672 forks source link

Adding product to cart shows wrong picture - defaults to first picture #900

Closed cyberdemic closed 3 years ago

cyberdemic commented 4 years ago

What I'm trying to achieve

I'm trying to get the correct image to show up for the variant that was added.

Steps to reproduce the problem

  1. Create a product with multiple color variants.
  2. Attach correct images to variants.
  3. In the storefront, add the product to the cart where the color is not attached to the first picture listed (e.g. NOT the grey one)
  4. Wrong picture is shown.

What I expected to happen

I expect correct picture to show up in the following areas that right now don't:

Screenshots

STEP 3 note-grey

navy-medium-storefront

STEP 4 storefront-cart

Other info

I wanted to note that the correct picture shows up in the dashboard when viewing the order that was placed. It only shows wrong on the storefront.

I hope this makes sense, I'm not very good at explaining sometimes. I can list more details if needed.

cyberdemic commented 4 years ago

Is this something that might be fixed when 3.0 comes out?

krzysztofwolski commented 3 years ago

Fixed in 3.0