Filter products by colour on online store when each product comes in multiple colours?

Hello.

I am trying to work out how to filter a repeating group of products on my online store by colour, and to show the products that come in any of the selected colours by the user.

For example, if Product X comes in blue, green and red, then it should be visible to the user when one or more out of blue, green or red is selected.

I have seen a number of posts on this forum about filtering by a characteristic that each product only has one of, like its category. However, I have been unable to find anything about filtering by an attribute that each product has more than one of.

How would I go about going this?

Thank you for helping!

Depends how in-depth you want to go with the datastructure.

The best would a datatype “Product Variant” so you can store the Product, picture, price, description, etc all within a Variant and display those on screen

This topic was automatically closed after 70 days. New replies are no longer allowed.