Developer forum

Forum » Swift » Product component slider

Product component slider

Justin Sjouw Dynamicweb Employee
Justin Sjouw
Reply

Hi,

I'm having some trouble getting the product component slider to show what I want. 

It should show products from the selected relation group, but I seem to get somewhat random results.

In the documentation it says the "Groups to relate to" should be empty, but I get a different view of that, could that be the cause (the field always show g_, so it is never empty

According to documentation this is how the field should look:


Replies

 
Joseph Vause
Reply

Hi,

In fact, we could get products from the assigned product-related group. You will see the "productIds" by removing the hidden type from the input field at line 177 in Swift_ProductComponentSlider.cshtml. However, at line 224, it still renders some random products on the page, so I guess there might be something in the JavaScript causing this issue.

Currently, on our product detail page, we use a "product component slider" and the "Related products slider/list" app from the Services section.

It would be great if anyone could share some ideas on it.

Thanks

Joseph

Screenshot_2024-07-22_173102.png Screenshot_2024-07-22_174301.png Screenshot_2024-07-22_174337.png

 

You must be logged in to post in the forum