I am trying to change configurable product images on clicking swatches for product listing pages. But it is not working. It is working fine for product details page. Product detail page enter image description here

It is working fine here. But it is not working for category pages or product listing page. enter image description here

I tried to look for an answer and found out that I need to update my attribute values that I am using for configurable product. I have updated all the values but it made it work only for product page and not for category or product listing pages.

The attribute values in admin enter image description here

enter image description here

Plz guide me how I can make it work for product listing pages too.

  • 1
    Your settings are correct. Did you try with run cache and indexing command?
    – Mital Shah
    May 5, 2021 at 4:50
  • yes tried after your suggestion, but did not worked May 5, 2021 at 8:40
  • Check is there any error in the console?
    – Mital Shah
    May 5, 2021 at 9:39
  • I have moved my changes to live, and it is working fine on live. I am getting this issue on staging setup. Maybe staging has files missing or something else. Thanks for your guidance May 5, 2021 at 10:10


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.