---
title: "Knowledge Base: Creating a Relationship"
description: Explore how to create product relations to connect items in your store. Use one-way or two-way relations for bundles, recommendations, etc.
---

[Ucommerce News](https://ucommerce.net/news)

# [Knowledge Base: Creating a Relationship](https://ucommerce.net/news/knowledgebase-creating-a-relationship)

 Written by [Mads Bjernemose Nielsen](https://ucommerce.net/news/author/mads-bjernemose-nielsen) | February 2025

*Product relations* are used to connect different products within your store. Create product bundles by displaying similar products and recommendations (e.g. items frequently bought together by other customers).

For quick navigation:

- [How does it work?](https://ucommerce.net/news/knowledgebase-creating-a-relationship?hs_amp=true#how-does-it-work)
- [How to create a product relation type?](https://ucommerce.net/news/knowledgebase-creating-a-relationship?hs_amp=true#how-to-create-a-relationship-type)
- [How to work with product relations?](https://ucommerce.net/news/knowledgebase-creating-a-relationship?hs_amp=true#how-to-work-with-product-relations)

## How does it work?

Product relations can be either one-way or two-way connections between products, determined by a specific relation type. A product can have multiple relations to other products and be used in different contexts depending on the relation type.

A two-way relationship example would be displaying matching shirts for dress pants and vice-versa, where the same dress pants appear when viewing the shirts.

A one-way relationship example would be displaying matching accessories next to a phone, but not necessarily the other way around, as it may not be relevant.

 

## 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"**.

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.

 

[View full post](https://ucommerce.net/news/knowledgebase-creating-a-relationship)

```json
{
  "@context" : "http://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "Mads Bjernemose Nielsen"
  },
  "dateModified" : "2025-02-04T11:53:59.313Z",
  "datePublished" : "2025-02-03T10:22:01Z",
  "headline" : "Knowledge Base: Creating a Relationship",
  "image" : {
    "@type" : "ImageObject",
    "height" : 2882,
    "url" : "https://139731713.fs1.hubspotusercontent-eu1.net/hubfs/139731713/cropped-customer-relations.jpg",
    "width" : 5764
  },
  "mainEntityOfPage" : "https://ucommerce.net/news/knowledgebase-creating-a-relationship",
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "height" : 60,
      "url" : "/hs/hsstatic/content_shared_assets/static-1.4092/img/default-amp-logo.png",
      "width" : 60
    },
    "name" : "Ucommerce News"
  }
}
```