Developer forum

Forum » Rapido » Related products feed url

Related products feed url

Gaëtan Di Caro
Reply

Hello,

I noticed that the related products weren't behaving properly in Rapido on the product page. If I add products to the "related products" group then no problem. However, I have created another group called "Spare Parts". Then things start to go wrong. The Related Products look fine, but the Spare parts actually seem to contain every product in the shop.

I think the issue comes from the code used to create the url to the related products feed :

feedFullUrl = feedPageUrl + "&PageSize=" + relatedProductsPageSize + "&ProdID=" + productId + "&feed=true";
[...]

string relatedFeed = feedFullUrl + "&" + relatedGroupId + "=" + productId + "&GroupName=" + relatedGroupId;

 

This gives urls like this :

/products?PageSize=4&ProdID=1186&feed=true&RelatedProducts=1186&GroupName=RelatedProducts

/products?PageSize=4&ProdID=1186&feed=true&SpareParts=1186&GroupName=SpareParts

Which, you'll admit, don't make much sense. What is the right url to use to get the feed for a specific related products group ?

 

Thanks


Replies

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

Hi GaĆ«tan

Thank you for this question. Unfortunately we do not have a very beautifull way to set up the related product groups - But it is easily possible. What you may be missing, is setting up the index for the new variant group. I think the fallback, if not done correctly, will be to show all products. The whole explanation is found here:

https://doc.dynamicweb.com/rapido/configuration/general/related-products 

I am sorry this is a little complex task. I hope we will be able to make it much easier to work with this in a later release. 

 

Best regards
Karsten Thuen

Votes for this answer: 1
 
Gaëtan Di Caro
Reply

Oh ok I get it. Not very intuitive indeed, but now it works.

Thank you

 

You must be logged in to post in the forum