Related Products - only show from same collection

T8
Excursionist
16 1 3

Hi folks,

I was hoping to use the 'Product recommendations' feature in Debut. But from what I see it pulls products from ALL the collections and not just the small sub-collection that a product is in. Basically I would like to specify the collection to recommend.

For example: Say I have a tshirt and its part of the global site 'tshirt' collection, but then I also have it in a very small 5 product group called 'bowie'. This bowie collection contains 5 tshirts, all with slight design variations. I would like the customer to be able to see that below the main product there up to 4 additional designs in the collection.

I am hoping to use an existing Section and add in to the product.liquid in a similar way to 

{% section 'product-recommendations' %} has been used.

If its not possible to do this automatically using collections then can add something into the product.liquid (say Custom content or Featured Collection) and then time I can at least manually add the images, prices and product links.

 

Many thanks,

David

Replies 17 (17)

Bo
Shopify Staff (Retired)
1793 196 467

 

Hey there, David

 

Bo here from Shopify Support! 

 

That is a really great question! The recommendation algorithm uses sales data and product descriptions to show a mix of products that are similar or often bought together. Product recommendations become more accurate over time as new orders and product data become available. You can read more about this in this help doc.

 

I do, however, totally see where you are coming from. Being able to select more closely related products to show alongside your products. For this kind of control, I would have to recommend going down the lines of related product apps.  You can take a look at our product recommendation apps here. 

 

Let me know how this goes and if there is anything else I can assist you with, I'm happy to help!

 

All the Best,

Bo

To learn more visit the Shopify Help Center or the Community Blog.

T8
Excursionist
16 1 3

Thanks Bo. I was able to find an App that only pull 'related' from the same collection

Bo
Shopify Staff (Retired)
1793 196 467

 

That is absolutely great to hear, David. If you would like any feedback on your store please feel free to share it with me on this thread, I would be more than happy to take a look at it for you.

 

All the Best,

Bo

To learn more visit the Shopify Help Center or the Community Blog.

Ethan50305
New Member
7 0 0

What was the name of the app? I need the samething!

checkoutfirst
Excursionist
37 0 22

Relatify will do it.
Just found this thread because I was looking for a similar app, and found it after a long search.

RetroShirtsMan
Excursionist
22 1 8

It is even simpler, you can do it with the built in tools Shopify provides. No App required. Check my comment a couple of posts above: https://community.shopify.com/c/shopify-design/related-products-only-show-from-same-collection/td-p/...

archimed
Tourist
11 0 4

Hi, I'm also having this issue and I'd like to to show recomended products from at least the same collection. So there's no way to do it without installing an app? can't this be done by adding some code?

Thank you

Bo
Shopify Staff (Retired)
1793 196 467

Hey there, @archimed 

 

This may be achieved by code but that would note a coding change that would be supported by Shopify. You can check out what is covered by your free design time here. If you would like to achieve this via coding, I would recommend hiring a Shopify Expert to do so. Alternatively, Cross Sell Related Products by Cross Sell and Also Bought by Code Black Belt are the highest rated coss selling apps in our app store

 

All the Best,

Bo

To learn more visit the Shopify Help Center or the Community Blog.

RetroShirtsMan
Excursionist
22 1 8

Found this old thread and just wanted to add that this has become super simple in 2022. No apps required.

 

Create a Metafield on your products of datatype relation->collection.

Go to your theme page and enable a "featured collection" on your product page by using the dynamic value of your product metafield as title and source in the configuration.

 

Done.

LC9
Visitor
1 0 0

Can you explain this in detail? Do you go to settings -> Metadata?

 

What exactly do you set in name?

RetroShirtsMan
Excursionist
22 1 8

Yes sure.

 

So first you go to Settings -> Custom Data -> Products -> Add Definition 

Give it a Name (e.g. Brand) and a namespace key (e.c. custom.brand) and select "collection" as the type. 

 

Now you have to edit all your products and assign one of your collections as "brand" to each of your products. (I guess you already have some collections that work as "brand" if not you have to create one collection for each of your brands first).

 

Ok let's assume you have done that for all your products.

 

Go to your theme -> customize -> select the template of the page you want to add related products to. Most probably "Default product".

 

Now add a new Section -> "Featured collection" wherever you want the related products (in our example = same brand) to appear. 

 

On the right hand side of the configuration of this new section, select the Metafield collection by clicking the "Pancake Tower" ("Connect dynamic source") and selecting the "Brand" Metafield. You can also use values of the "Brand" Collection, for example the title of the collection, to insert dynamically as the title of this section.

 

Let me know if this helps or you need additional information.

 

Hint: if you need something other than brand, like similar product types or anything else, just add another metafield on step 1 of this tutorial and add it to all of your products. You can even add multiple related "featured collections" - sections each with different types of relations (= assigned collections).

Emily96
Excursionist
11 0 3

This works perfectly. I've done this for my client in minutes. Thank you for your input.

 

*Moderator Edit*

TeamBigLake
Visitor
1 0 0

This worked brilliantly!  Thank you so much for the step-by-step instructions!  I'm so glad there was a in-house solution that didn't require a 3rd party app.  You just made my day!

McKvrSports
Tourist
18 0 2

Hey @RetroShirtsMan 

 

Is it possible to show related products on a product page that has the same Vendor Number?

We create and use individual collections as bespoke order pages for clubs so we generate 100s of these through the year.

 

Is it possible to show related products by the same Vendor Number only that are within the same collection?

Humbletd
Shopify Partner
1 0 0

Did you find a solution? , if so please tell me how? i have this same problem and need a solution please. Theme am using is Galleria 2.4

RetroShirtsMan
Excursionist
22 1 8

PrezencaGroup
Shopify Partner
2 0 0

I would do that differently.

Go to Theme > Edit code and look for related-products.liquid. Look for the following line 

 

{% for recommendation in recommendations.products %}

 

After this line, add the following

 

{% if recommendation.type == product.type %}

 

Don't forget to close if before endfor.

 

This will filter any recommendations that do not have the same product type. Keep in mind that you actually need to set product types than.