Developer forum

Forum » Swift » Show only master products in product slider

Show only master products in product slider

Ferri Halfhide
Reply

Hi,

I’m trying to set up the product slider on the homepage.

What I want is to display specific products, and I’m doing that as follows:

  1. I choose selected products

  2. I choose the specific product I want to display 

However, when I click “Save,” the variants of the product are also being shown in the slider.

Is there a way to ensure that only the master product is displayed? I don’t seem to find an option to configure this.

Thanks in advance! 


Replies

 
Merethe Vrå Andersen Dynamicweb Employee
Merethe Vrå Andersen
Reply
This post has been marked as an answer

Hi, 

In the product slider service (in the app settings) that your slider uses, you can override the value for the standard parameter IsVariant and set it to False to get only main products rendered. If you set to True you get the variants.

https://app.screencast.com/xExquztHdu1st

Or you can setup the default value to be False for the IsVariant parameter in the query if you need it to be general for all sliders that uses this Index/Query.

Kind regards,
Merethe

Votes for this answer: 1

 

You must be logged in to post in the forum