Skip to content
herobanner_catalogs

Creating a Relationship

What is a product relation? You use product relations to connect different products within your store.
 
👩‍💻
Basic functionalities: • Creating product bundles; • Displaying similar products; • Displaying recommendations (f.x. what other customers bought together with this product)

How does it work?

Product relations can be either one-way or two-way relationship between products, that is linked by a certain relation type. A product can have multiple relations to other products, and it can be used within different contexts, based on relation type.

two-way-relation

 

Two-way relationship would be displaying matching shirts for dress pants and vice-versa, showing the same dress pants when you are looking at the shirts.

One-way relationship example would be displaying matching accessories next to a phone, but other way around it may not make much sense.

How to create a product relation type?

Before you start relating products one to another, we need to create a product relation type. The scenario we will be looking at relating is “similar products”. In order to create a product type you need to go to settings → product relation types section  create "new".

similar_products

When you create a product relation type, you need to name it accordingly, so you know what use case it is for. In this scenario we will call it ‘similar products’.

ℹ️ For the new product relation type to work, you need to to adjust the API.

How to work with product relations?

Now let’s use the product relation type that has been just created. To do this we have to go to a product that we want to connect with other products.

  • 📝 Under the product find Relations section and click New.

  • You will be presented with the modal: • In the first step you need to select the relation type (what we have set up previously) and choose whether you want the relationship to be one-way or two-way. • When you continue you can pick the products you want to relate. Since we are relating similar products, we will select the products that are similar to the initial one.

  • Once we selected all relevant product, clicking add will finish the action, in the relations section you should be seeing all the product you have selected.

work_with_product_relations

BACK TO KNOWLEDGE BASE

Explore our extensive collection of articles on a wide range of topics, where you'll find in-depth insights.