Skip to content

[2.0.7] Configurable Product - Wrong image order when changing swatches #5918

Closed
@Hawk30100

Description

@Hawk30100

When using a configurable product, the image order changes when clicking on swatches.

Preconditions

  1. Magento CE 2.0.7 OR Magento CE 2.0.8
  2. PHP 7.0.6

Steps to reproduce

  1. Create Simple Product (necessary workaround to set attribute_set) and fill out informations and upload many images (e.g. 6 images)
  2. Create configuration for this simple product and upload many images (e.g. 6 images)
  3. Navigate to product on storefront
  4. Click on color swatch and click on the same swatch again
  5. => image order changed

Expected result

  1. The image order set on admin backend should be the same order shown on storefront.

Actual result

  1. The image order set on admin backend is DIFFERENT compared to the image order on storefront.

My procedure (with screenshots):

  1. Create simple product and upload images
  2. Simple product on storefront:
  3. Create configuration for this simple product:
  4. Pick one virtual product of this configuration and upload images for this:
  5. Configurable Product on storefront:
  6. Choose specific color:
  7. Click on this color again to un-select it

    => Order of images changed! Compare steps 5 and 7

Another example:

Image order of virtual product in configurable product is different in backend and frontend:

Backend:

Frontend:

In this example it is not necessary to change colors or other options. The order of a specific virtual / simple product in configurable product is wrong.

We tried to clean cache, image cache, etc... but nothing helped.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions