related products by custom property

Shopify Partner
49 0 1

Hi All,
I've been trying to figure out another way to add related products besides the methods described here: http://wiki.shopify.com/Related_Products.
I thought of creating a new property of the product called "family" and use that property to call out products that have the same "family".
Does anyone know how I could implement this into my shop? I am currently using Caroline's lovely solution of using collections, but I need to be more specific than that.
Any help would be much appreciated.

0 Likes
Shopify Expert
3994 14 321

Use Metafields. You can do whatever you want with those. Namespace your connection between products family. Works like a charm.

Custom Shopify Apps built just for you! hunkybill@gmail.com http://www.resistorsoftware.com
0 Likes
Shopify Partner
49 0 1

Thanks HunkyBill!

I added Caroline's snippet and now I need to figure out how metafields work. I foresee confusion and questions for me up ahead...

0 Likes
Highlighted
Shopify Partner
49 0 1

ok, yes, i'm very confused.
I made the namespace family in the metafield.

now, if i want all the products that have the same family name (such as flora-fauna) what would i use for Key and Value? I've defined a new product property (like size) as "family" in each product.

do i use value= flora-fauna?
and what do i make the key as?

Sorry. I'm terrible at this. your help is greatly appreciated.

0 Likes