Website Building » Shopify » How Do I Show Related Products on Shopify?

How Do I Show Related Products on Shopify?

Last updated on October 1, 2022 @ 5:20 pm

There are a few different ways that you can go about showing related products on your Shopify store. One way is to manually select which products you want to show as being related to each other and then setting up a collection for those products. Another way is to use Shopify’s built-in algorithm to automatically show related products based on factors like product tags and title keywords.

If you want more control over which products are shown as being related to each other, then manual selection is the way to go. To do this, simply create a new collection and then add the products that you want to include in it. You can do this by going to the “Collections” section of your Shopify admin and clicking “Create collection”.

Once you’ve created your collection, you’ll need to edit the product pages for the products that you want to include in it and add a tag that corresponds to the collection name. For example, if you’ve created a collection called “Related Products”, then you would add a tag called “related-products” to each of the products that you want to include in that collection.

You can then add a section on your product pages that displays products from the “Related Products” collection by adding some code to your theme.liquid file. The code that you need to add will vary depending on which theme you’re using, but it should look something like this:

{% if template == ‘product’ %}
{% for product in collections[‘related-products’].products %}

{% endfor %} {% endif %}

This code will loop through all of the products in the “Related Products” collection and display them on the page. You can style this section however you like using CSS.

If you don’t want to bother with creating collections and tagging products, then you can let Shopify automatically show related products on your store. To do this, go to the “Products” section of your Shopify admin and click on “Product recommendations”.

From here, you can enable automatic recommendations and choose how many recommendations you want to show on each product page. Shopify will then use its algorithm to determine which products are related and display them accordingly.

Madison Geldart

Madison Geldart

Cloud infrastructure engineer and tech mess solver.