Issue with Shopify Product Recommendation API - returns no product

Solved
Michal7
New Member
2 0 1

Hi,

 

our client (journeymap.lt) is having a problem with our Upsell App - Candy Rack which uses also Shopify Product Recommendation API. Recently we have experienced that no product was returned even though the client's store has many other products in stock. 

 

Screenshot at Jul 30 12-56-06.png

 

Could someone from the Shopify team explain how the recommendation works or how can we avoid such a situation?

 

Cheers,

Michal 

www.digismoothie.com 

Accepted Solution (1)

Accepted Solutions
Josh
Shopify Staff
Shopify Staff
1134 82 213

This is an accepted solution.

Hey @Michal7 , 

 

There are some cases where we'll recommend products by responding with other products that share a collection with whichever product you're fetching recommendations for - as long as it is not a /all or /frontpage collection.  We'll do this on shops without orders within a certain timeframe, or shops with larger product catalogs. 

 

In this case, the shop falls into the above category of fetching related products from a collection, except it only has a /all collection which would be ignored. If they created another collection to group their products together that had a different handle than /all, you should find recommended products in your responses. 

 

Please let me know if the above doesn't do the trick though! 

Josh | Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

View solution in original post

Replies 8 (8)
Josh
Shopify Staff
Shopify Staff
1134 82 213

This is an accepted solution.

Hey @Michal7 , 

 

There are some cases where we'll recommend products by responding with other products that share a collection with whichever product you're fetching recommendations for - as long as it is not a /all or /frontpage collection.  We'll do this on shops without orders within a certain timeframe, or shops with larger product catalogs. 

 

In this case, the shop falls into the above category of fetching related products from a collection, except it only has a /all collection which would be ignored. If they created another collection to group their products together that had a different handle than /all, you should find recommended products in your responses. 

 

Please let me know if the above doesn't do the trick though! 

Josh | Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

csell
New Member
1 0 0

Hi @Josh We're running into a similar problem with our implementation of smart recommendations. In this store's product we're getting no recommendations returned even though it has collections associated: https://najo-au.myshopify.com/collections/christmas-2019/products/eros-necklace?variant=306942270833...

 

Should it not default to retrieving suggestions from the collections or does it only apply to stores with > 7000 items?

 

Any feedback would be greatly appreciated.

 

 

Josh
Shopify Staff
Shopify Staff
1134 82 213

Hi @csell , 

 

I'm not able to replicate this - when fetching recommendations with the Ajax API I'm getting 4 products back as expected.

 

2019-11-acrxf-izjke

 

Is this still a problem for you? If so, how are you fetching your recommendations?

Josh | Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

kriszti
Shopify Partner
59 0 7

I'm experiencing the same problem.  My product recommendations are returning as 0

sean_orfila
Shopify Partner
148 4 23

Same here too, and I created multiple collections that mimic /all and still seeing no products in response on occasion

sean_orfila
Shopify Partner
148 4 23

I'm also noticing a difference between the JSON response and the non-JSON response. JSON response will be [1] product while the non-JSON response returns empty. 


nickippolito
Shopify Partner
5 0 0

I’m having the same issues. I have many collections. In fact is was working until now.

 

I'm developing a Store for a client and building a recommended products area in the Cart Drawer on my site with Javascript. I was fetching the recommended products fine until the other day now they are not fetching and are all blank.  See example of url below for the product_id: 7404559237307 

 

For an examplehttps://coastwoodfurniture.myshopify.com/recommendations/products.json?product_id=7404559237307

Password: Coastwood

 

There are no products available. If someone can help me find out why this api is not working that would be awesome!

ed_meehan
Shopify Partner
1 0 0

I have a similar problem but noticed that it only started when I removed the default store, and am using the lite version with no storefront. Can the API not fetch recommended products if you don't use the online store sales channel?