Skip to content

[Bug]: product's image in minicart does not represent selected options #434

@bartoszherba

Description

@bartoszherba

Expected Behavior

Image in the cart should be relevant to the selected configurable product, eg. if I pick a red jacket and the jacket has individual images, I want to see that image in my cart.

Actual Behavior

No matter what configurable product I select, it always has the same image in the cart even though the product in the cart has its own gallery. In the attached example, one short is red and the second one is black - both have the same image but each has a unique gallery. Probably we take an image from a parent, not the selected product.

Screenshot 2022-01-18 at 08 54 47

Possible Solution

No response

Steps to reproduce

  1. Go to the category page
  2. Add any configurable product to the cart in two variants with different images galery
  3. Observe that in the cart all added products have the same image regardless of magento configuration.

What version of Magento 2 integration are you using?

2.4.x

What version of Node.js are you using?

16.13.1

What browser (and version) are you using?

Version 96.0.4664.110 (Official Build) (arm64)

What operating system (and version) are you using?

macOS Monterey 12.1

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingvsf_team

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions