I have successfully installed the product recommendations on product pages in the past, but this time it’s not working as {{ recommendations.products_count }} returns 0. Yet there are multiple products listed in the shop and online.
Hi, I think the mechanism to calculate product recommendations from Shopify is based on your order and your product description. On a product page, they will display other products that frequently brought with the selected product. Let give it another try.
Actually I found the problem, which was documented in the “Recommendation logic”. The problem is I only had one collection named “page d’accueil” (Home page) and apparently :
If the product doesn’t have a collection URL, then the recommendation algorithm finds collections that include the product and pulls other products from those instead (excluding collections with handles “all” and “frontpage”)
So the “frontpage” handle was the issue. I created a new collection and populated the products in it and it works now.
I tried adding another collection and populate it with the same items. It still didn’t work for me. When I make a getJSON request I get an empty products array. However, this works on another website. Any ideas what could I have done wrong or missed out?
"Unfortunately, as Support Advisors, our knowledge on APIs is severely limited so we would always recommend that you reach out to our API and SDK forums .
Here, you can ask any questions you want and our team would be much better equipped to assist you with this."