Developer forum

Forum » Swift » Product Component Slider – Show Related Products per Item

Product Component Slider – Show Related Products per Item

Ferri Halfhide
Reply

Hi all,

I’m currently working on the product details page and I want to display related products.

I’ve already created relation groups and assigned them to the relevant products.

I’m using the Product Component Slider because I want to apply my own card designs and present the related products in a slider format.

However, I’ve run into the following issue:

  • When I select the option “Related,” it only allows me to choose one specific relation group. But what I actually want is for each product to show its own related products in a slider, based on the relations configured per product.

How can I set this up correctly so that the slider dynamically shows the related products per product, without having to select a single relation group, since this is not the desired scenario?


Replies

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply
This post has been marked as an answer

Hi Ferri,

It sounds like you've created unique relation groups for each product. Instead, the recommended approach is to create shared relation groups with reusable names.

For example:

  • Relation group name: "Goes well with"
    • For a Wine product, you'd relate it to: Cheese, Ham, Bread.
    • For Juice, the same group might include: Crackers, Fruit, etc.

So even though the relation group name is the same, the actual related products differ per product. This allows the slider to dynamically show the correct related items without needing a unique group per product.

Does that help?

Best regards,
Nuno Aguiar

Votes for this answer: 1

 

You must be logged in to post in the forum