简体   繁体   English

将色板添加到产品系列页面 Shopify

[英]Add color swatches to Collection page Shopify

I am working on debut theme for a while, and I am stuck at a place where I want to show color swatches on the collection page of the store.有段时间在做出道主题,卡在了想在商店的收藏页面上展示色板的地方。 The problem I am facing right now is that the swatch of particular product doesnt change the image of the same product, instead of that it changes the images of only first product.我现在面临的问题是特定产品的色板不会改变同一产品的图像,而是仅更改第一个产品的图像。 I am not sure where I am doing wrong.我不确定我哪里做错了。 Please Help out !请帮帮忙!

Link : https://erin-snow.myshopify.com/collections/all链接: https : //erin-snow.myshopify.com/collections/all

Without looking at any code, I can tell that all of the swatches are related to the first swatch and product image and they shouldn't be.在不查看任何代码的情况下,我可以看出所有色板都与第一个色板和产品图片相关,它们不应该如此。

You need to make it so each color swatch has it's own instance with it's own specific target.您需要这样做,以便每个色样都有自己的实例和自己的特定目标。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM