Skip to content

magento 2.2.2 text swatch switches product image even if attribute feature is disabled #16446

@LouNik1984

Description

@LouNik1984

Preconditions

magento 2.2.2 with one website and two store views
php 7.0 on ubuntu 16.04 with nginx

Steps to reproduce

  • change attribute size to text swatch with Update Product Preview Image set to NO
  • create configurable product with some variations for size
  • add image to configurable product
  • add image to associated simple products

Expected result

When I load the frontend product page, the image shown is the configurable image.
When I click on a size/variation (since the Update Product Preview Image set to NO in attribute size) I still expect to see the configurable image

Actual result

When I load the frontend product page, the image shown is the configurable image. That is correct.
When I click on a size/variation, the image is changed to the simple product image. This is wrong.

Other Notes

If I remove the image from the associated simple product, then go to the frontend product page and click on the size, the image shown is still the configurable image. However, the image is still being reloaded everytime I click on a size/variation, making the page glitch for a moment. This should be avoided.

Metadata

Metadata

Labels

Component: SwatchesFixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions