recently i updated my debut theme to the latest version to comply with scss → css change. However now I have an issue on the product pages.
Before:
I have a product with 3 color variants.
I also use the swatch images, to replace the dropdown with respective small images of the variant.
For product images, I replaced in the liquid with the native theme code with slick slider that was being filtered based on the “alt” attribute of product images, which wasshowing the color name.
It worked just perfect. And when the customer was clicking on the swatch image icon, the slick slider was automatically unfiltered and filtered based on the selected variant to just show the images for that color.
After:
Once I updated the theme to the latest version, this workflow stopped working.
The image swatches work only with the native code, but once i replace it with the slick slider code it just dumps all the images.
If I try to add the filtering function, no images are shown at all.
I am being super puzzled now with this and it becomes a critical issue.
Could one of the experts among you guide me in the right direction how to fix this?
You cannot see it on the site itself, as it is on a developer environment, but I can share some code as below.
If you try on the debut latest version, you will see the issue.
This is how the pictures are displayed on my theme.
You can see that each div element has image alt css class.
And then I try to filter through slick slider those images for each variant. On the current debut theme installed (an older version) this works just fine, but the newer one displays no images.
If I remove the filtering, the image slider still works fine also on the new theme.
thanks Jason, totally agree. I think the purpose of community is knowledge sharing and helping each other where possible.
I do not expect someone to give me a clear step by step guide (although would have been cool ), but rather directional piece of advice or sharing how someone tackled similar issue.