---
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.
image: https://ucommerce.net/hubfs/cropped-customer-relations.jpg
---

[Skip to content](https://ucommerce.net/news/knowledgebase-creating-a-relationship#main-content)

 Close

- [Product](https://ucommerce.net/product) 
    - [Integrated PIM System](https://ucommerce.net/integrated-pim-system)
    - [B2B Price Engine](https://ucommerce.net/advanced-b2b-price-engine)
    - [Powerful Search](https://ucommerce.net/search)
    - [Sitefinity X Ucommerce](https://ucommerce.net/sitefinity)
    - [Umbraco X Ucommerce](https://ucommerce.net/umbraco)
    - [Sitecore X Ucommerce](https://ucommerce.net/sitecore)
- [Pricing](https://ucommerce.net/pricing)
- [Customers](https://ucommerce.net/customers)
- [Partners](https://ucommerce.net/partners)
- [Support](https://ucommerce.net/support)
- [Insights](https://ucommerce.net/insights) 
    - [Webinars](https://ucommerce.net/news/tag/webinars)
    - [News](https://ucommerce.net/news)
    - [Documentation](https://dev.ucommerce.net/)

SEARCH

Contact Us

[![ucommerce-widelogo](https://ucommerce.net/hubfs/Logos/Ucommerce%20logos/ucommerce-widelogo.svg)](https://ucommerce.net)

- [Product](https://ucommerce.net/product) 
    - [Integrated PIM System](https://ucommerce.net/integrated-pim-system)
    - [B2B Price Engine](https://ucommerce.net/advanced-b2b-price-engine)
    - [Powerful Search](https://ucommerce.net/search)
    - [Sitefinity X Ucommerce](https://ucommerce.net/sitefinity)
    - [Umbraco X Ucommerce](https://ucommerce.net/umbraco)
    - [Sitecore X Ucommerce](https://ucommerce.net/sitecore)
- [Pricing](https://ucommerce.net/pricing)
- [Customers](https://ucommerce.net/customers)
- [Partners](https://ucommerce.net/partners)
- [Support](https://ucommerce.net/support)
- [Insights](https://ucommerce.net/insights) 
    - [Webinars](https://ucommerce.net/news/tag/webinars)
    - [News](https://ucommerce.net/news)
    - [Documentation](https://dev.ucommerce.net/)

Contact Us

Quick results for "{search\_term}"

![10.8.0 hero (2)](https://ucommerce.net/hs-fs/hubfs/10.8.0%20hero%20(2).png?width=300&name=10.8.0%20hero%20(2).png)

[Mads Bjernemose Nielsen](https://ucommerce.net/news/author/mads-bjernemose-nielsen)February 20253 min read

# Knowledge Base: Creating a Relationship

[Previous](https://ucommerce.net/news/knowledgebase-getting-started-with-the-customer-center-app)

<https://ucommerce.net/news>

[Next](https://ucommerce.net/news/knowledgebase-getting-started-with-orders)

*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#how-does-it-work)
- [How to create a product relation type?](https://ucommerce.net/news/knowledgebase-creating-a-relationship#how-to-create-a-relationship-type)
- [How to work with product relations?](https://ucommerce.net/news/knowledgebase-creating-a-relationship#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.

![two-way-relation](https://ucommerce.net/hs-fs/hubfs/two-way-relation.gif?width=782&height=724&name=two-way-relation.gif)

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

![similar_products.gif](https://ucommerce.net/hs-fs/hubfs/similar_products.gif.webp?width=700&height=337&name=similar_products.gif.webp)

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](https://ucommerce.net/hs-fs/hubfs/work_with_product_relations.gif?width=1432&height=738&name=work_with_product_relations.gif)

 

![avatar](https://ucommerce.net/hs-fs/hubfs/masd.jpeg?width=290&name=masd.jpeg)

#### [Mads Bjernemose Nielsen](https://ucommerce.net/news/author/mads-bjernemose-nielsen)

Backend developer at Ucommerce

[mailto:mads.bjernemose.nielsen@ucommerce.net](mailto:mads.bjernemose.nielsen@ucommerce.net)<https://ucommerce.net/>

## More Knowledge Base Articles

All Knowledge Base Articles

### [Mads Bjernemose NielsenFebruary 20252 min read Knowledge Base: Getting Started with Campaigns and Promotions A campaign is a collection of promotions that help manage discounts and offers. These can be created, deleted, prioritized, and ... Start Reading](https://ucommerce.net/news/knowledgebase-getting-started-with-campaigns-and-promotions)

### [Mads Bjernemose NielsenFebruary 20252 min read Knowledge Base: Getting Started with the PIM System Our PIM system provides a powerful set of tools to simplify your data management. Here’s how you can use the PIM system, ... Start Reading](https://ucommerce.net/news/knowledgebase-getting-started-with-the-pim-system)

### [Mads Bjernemose NielsenFebruary 20251 min read Knowledge Base: Getting Started with Catalogs Catalogs are used to distinguish between various catalog structures. You can set up catalogs and categories, assign products to ... Start Reading](https://ucommerce.net/news/knowledgebase-getting-started-with-catalogs)

[![ucommerce-widelogo](https://139731713.fs1.hubspotusercontent-eu1.net/hubfs/139731713/Logos/Ucommerce%20logos/ucommerce-widelogo.svg)](https://ucommerce.net)

The Leading .NET Based Enterprise  
E-commerce Platform

<https://twitter.com/ucommerce?lang=en><https://www.linkedin.com/company/ucommerce/><https://www.youtube.com/channel/UCuKQ7rIs18zZLHmD2IbGziw>

- [Product](https://ucommerce.net/product) 
    - [Product Update Webinars](https://ucommerce.net/news/tag/webinars)
    - [Release Notes](https://ucommerce.net/release-notes)
    - [Knowledge Base](https://ucommerce.net/support)
- [Support](https://ucommerce.net/support) 
    - [Contact](https://ucommerce.net/support)
    - [Ucommerce Classic Documentation](http://docs.ucommerce.net/)
    - [Ucommerce Next Gen Documentation](http://dev.ucommerce.net/)
    - [Academy](https://ucommerce.net/academy)
    - [Pricing](https://ucommerce.net/pricing)

All rights reserved

- [Privacy Policy](https://ucommerce.net/data-privacy-and-cookie-policy)
- [Cookies](https://ucommerce.net/data-privacy-and-cookie-policy)
- [Terms & Conditions](https://ucommerce.net/data-privacy-and-cookie-policy)

```json
{
  "@context" : "https://schema.org",
  "@type" : "Organization",
  "address" : {
    "@type" : "PostalAddress",
    "addressCountry" : "Denmark",
    "addressLocality" : "Aarhus V",
    "addressRegion" : "Denmark",
    "postalCode" : "8210",
    "streetAddress" : "Rymarken 2"
  },
  "knowsLanguage" : "en",
  "logo" : {
    "@type" : "ImageObject",
    "url" : "https://139731713.fs1.hubspotusercontent-eu1.net/hubfs/139731713/Ucommerce%20and%20CMS%20Logo/Ucommerce%20logos/ucommerce-widelogo.svg"
  },
  "name" : "Ucommerce ApS",
  "url" : "https://ucommerce.net/news/knowledgebase-creating-a-relationship"
}
```

```json
{
  "@context" : "https://schema.org",
  "@type" : "BlogPosting",
  "abstract" : "Explore how to create product relations to connect items in your store. Use one-way or two-way relations for bundles, recommendations, etc.",
  "author" : {
    "@type" : "Person",
    "name" : "Mads Bjernemose Nielsen"
  },
  "dateModified" : "February 4, 2025 11 AM",
  "datePublished" : "February 3, 2025 10 AM",
  "headline" : "Knowledge Base: Creating a Relationship",
  "image" : "https://139731713.fs1.hubspotusercontent-eu1.net/hubfs/139731713/cropped-customer-relations.jpg",
  "inLanguage" : "en",
  "keywords" : "[Knowledge Base]",
  "mainEntityOfPage" : {
    "@type" : "WebPage"
  },
  "name" : "Knowledge Base: Creating a Relationship",
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "url" : "https://139731713.fs1.hubspotusercontent-eu1.net/hubfs/139731713/Ucommerce%20and%20CMS%20Logo/Ucommerce%20logos/ucommerce-widelogo.svg"
    },
    "name" : "Ucommerce ApS"
  },
  "text" : "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? How to create a product relation type? 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.",
  "url" : "https://ucommerce.net/news/knowledgebase-creating-a-relationship",
  "wordCount" : "742"
}
```

```json
{
  "@context" : "https://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "Mads Bjernemose Nielsen",
    "url" : "https://ucommerce.net/news/author/mads-bjernemose-nielsen"
  },
  "dateModified" : "2025-02-04T11:53:59.309Z",
  "datePublished" : "2025-02-03T10:22:01.000Z",
  "headline" : "Knowledge Base: Creating a Relationship",
  "image" : [ "https://ucommerce.net/hubfs/cropped-customer-relations.jpg" ],
  "mainEntityOfPage" : {
    "@id" : "https://ucommerce.net/news/knowledgebase-creating-a-relationship",
    "@type" : "WebPage"
  },
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "url" : "https://ucommerce.net/hubfs/Ucommerce%20and%20CMS%20Logo/Ucommerce%20logos/ucommerce-widelogo.svg"
    },
    "name" : "Ucommerce Aps"
  }
}
```