I have looked at various threads which seemed to be relevant, but have not found a solution to what I am looking to achieve.
Our apparel store sells mostly unisex items, but we want to add additional feature for our customers to shop by gender too. What we would like to do is when customers selects men’s collection we want the pictures they see to have only men on it (and filter out women’s images). And likewise to show only pictures of women (and not show images of male models) when customers select women’s collection.
We have the same system of images in all of our products:
-
feature image is a product image (without a model), this image should be visible to all customers
-
female model front
-
female model back
-
female model side
-
male model front
-
male model back
-
male model side
-
product image (without a model)
-
product image (without a model)
The way we would like to achieve this is to add code to the effect of:
IF collection title contains “women”
THEN show images 1, 2, 3, 4, 8, 9
IF collection title contains “men”
THEN show images 1, 5, 6, 7, 8, 9
The problem is, I am not exactly sure what code and where to write in our theme (Prestige 1.0).
Greatly appreciate help.
Link to one of our products for an example: https://eay4detatiarlznr-2777808941.shopifypreview.com/collections/hoodies/products/fun-patch-hoodie-black