FROM CACHE - en_header

How to add product recommendations not in product field

Giedrius_Berno1
New Member
1 0 0

Hello,

 

I'm trying to add product recommendations on 404 page.

Simply adding {% section 'product-recommendations' %} doesn't work and producing blank page.

Example:

https://vintagetrolley.co.uk/products/vintage-orange-dressing-table-stool-mid-century-modern-retro-a...

That's what I'm getting on console.

err.jpeg

 

err2.jpeg

Any help appreciated

Reply 1 (1)
Jason
Shopify Expert
10915 192 2190

You don't seem to be passing a product_id. Looking at the docs, that's required.
https://shopify.dev/api/ajax/reference/product-recommendations

 

★ I jump on these forums in my free time to help and share some insights. Not looking to be hired, and not looking for work. http://freakdesign.com.au ★