Developer forum

Forum » Templates » Errors when using related products

Errors when using related products

Stephen Anthony Jackson
Stephen Anthony Jackson
Reply

Hello.

We have defined a seperate index repository for one of our sites, and the Ecom / Pim point to that.

However, when using related products (products which have nothing to do with Bikeshop Repo), we get template errors due to missing fields (fields which I have removed to tidy up the catalogue. When I remove these from the query expressions in the Swift repo (not ours), the errors disappear, and we get a list of related products.

To me, this suggests that there are hardcoded references in the Related Product List templates (somewhere) or in the API, which makes it hard to use them elsewhere. I removed several product categories in Ecom Settings to keep it tidy for the product catalog of the client we are developing for. And that's probably what caused these errors? How can I avoid this? Or are there other ways to configure related products which do not cause these issues?

Best regards

//Steve


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hi Steve

I do not think it is hardcoded references to fields - but it might be the actual setup of the query on the page that delivers the related products - it might have references to fields that no longer is in the index.

Do you happen to have a screenshot or similar of this error? Then I think it is some resilience in the Lucene query API we need to avoid this error to happen.

BR Nicolai

 

You must be logged in to post in the forum