How to Create Related Product Rules in Magento 2?

Today, we’re going to teach you guys how to create related product rules in Magento 2. Related product rules basically give you the ability to display a selection of products to present to your customers as related products.

You can associate each product rule with a specific customer segment in order to generate a dynamic display of targeted merchandising.

In simple words, related product rules save you a lot of time and effort that is spent on managing related products on your Magento 2 store.

For example, if you want to display socks as related products on shoe product pages, you can simply create a related product rule from the backend instead of manually relating socks to all Shoe products one by one.

Below is the step-by-step process you need to follow for creating related product rules in your Magento 2 store.

Steps to Create Related Product Rules in Magento 2

Let’s learn how to create related product rules in Magento 2.

Step 1.

First of all, login to your admin panel and navigate to Marketing -> Promotions -> Related Products Rules.

Step 2.

After that, click on the“Add Rule” button.

Create Related Product Rule Magento

Step 3.

Next, change Enable Rule to YES and enter the rule information such as Rule Name, Block Page (if you want to block a specific page), Customer Groups, Priority, and Store View.

Enable Rule

Step 4.

Next, you need to enter the rule information such as Rule Name, Priority, Status, Apply To (Related Products), From, To, Result Limit (Maximum Number to Show on Product Detail Page), Customer Segments.

Enable Rule

Step 5.

Then, you need to add conditions for products in the Where to Display Related Products field that will use this rule for display on the product detail page.

Display Related Product Magento 2

Step 6.

Now, you need to add conditions for products in the Which Products are Displayed field, which will be displayed on the product detail page.

select product to display in related product

Step 7.

After that, click on the "Save Rule" button from the top-right corner.

Save Related Product Rule Magento

Now, open your Magento 2 store and hit Ctrl + F5 to hard-refresh the product detail page and see it now matches your related products rule.

Conclusion

That’s it! This is how you can create and display related product rules in Magento 2.

Alternatively, you can also add related products on your Magento 2 store near automatically.

And if you need our professional assistance, feel free to contact us.