Skip to content

Magento 2.4.5 How to hide duplicate pictures when the product color is switched #36243

@AngeloZou

Description

@AngeloZou

Hi, I used to seek workarounds for magento 2.4.2 on the stackexchange that fixed this issue, but when I upgraded to magento 2.4.5, those workarounds were outdated because magento had a major upgrade.

How can I re-solve this problem, thank you all.

https://i.stack.imgur.com/dnUeW.png
https://i.stack.imgur.com/jXTtz.png
https://i.stack.imgur.com/VQclz.png

Steps to reproduce (*)

  1. Install Magento 2
  2. Install Sample Data bin/magento sampledata:deploy
  3. Run setup:upgrade and set deploy mode to production.
  4. Go to configurable product for example: /breathe-easy-tank.html
  5. Default images are shown
  6. Select color swatch
  7. Default images are shown and color images are shown, which are duplicates.

Actual result (*)

Duplicate images are shown

Expected Result: (*)

No duplicate images are shown

Metadata

Metadata

Assignees

Labels

Area: ProductComponent: ConfigurableProductIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: doneReported on 2.4.2Indicates original Magento version for the Issue report.Reported on 2.4.5Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchTriage: Dev.ExperienceIssue related to Developer Experience and needs help with Triage to Confirm or Reject it

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions