Developer forum

Forum » Rapido » Related products shows too many products

Related products shows too many products

Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi there,

When I add related products to a product and render them in the frontend, I get way too many products. I tested this on Rapido 3.1 and I end up with 298 products instead of two. Here are my steps:

1. I created a new group called Test Group
2. I went to product 10001 in the backend and added two wheels to the bik in the Test Group related group
3. Saved my changed
4. Rebuilt the index
5. Viewed the 10001 product in the frontend.

Expected results 

1. I see the two products in a carousel under Test Group

Actual results:

1. See all products. The JSON for the feed has this:


  {
    "listTemplate": "ProductItemContainer",
    "groupName": "TestGroup",
    "groupDescription": "",
    "groupPromotionImage": "",
    "currentPage": "1",
    "totalPages": "298",
    "pageSize": "1",
    "pageSizeText": 1,
    "header": "Products: 298",
    "headerIcon": "",
    "selectedSort": "Default",
    "prevdisabled": "u-hidden",
    "nextdisabled": "",
    "prevPage": "",
    "nextPage": "/Default.aspx?ID=52&GroupID=&PageNum=2&PageSize=1&ProdID=PROD7&feed=true&TestGroup=PROD7&GroupName=TestGroup",
    "loadMoreFeedParams": "&SortBy=&SortOrder=",
    "ProductsContainer": [

What am I missing?

Thanks!


Replies

 
Karsten Thuen Dynamicweb Employee
Karsten Thuen
Reply
This post has been marked as an answer

Hi Imar

It probably just renders everything, as that is the result if it is not set up correctly. I am very sorry that the setup of related products is not as simple and clean as we want it to be. You will have to carefully follow this quide: https://doc.dynamicweb.com/rapido/configuration/general/related-products

 

Best regards
Karsten Thuen

Votes for this answer: 1
 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Wonderful! I missed the part about the parameter and query expression. Thanks!

 

You must be logged in to post in the forum