Hi
I have a working online store, and have been trying to add a related items section to my product page.
I’ve followed the tutorial on corvid exactly (I think) but although the product pages now display the related items section at the bottom of the page, it seems to be three fixed pictures that don’t change according to which product you click on, and also they don’t link to their own product pages.
When i preview the product page, at the bottom it displays the message:
"Loading the code for the site. To debug this code, open masterPage.js in Developer Tools
"Loading the code for the Product Page. To debug this code, open xuvoa.js in Developer Tools
(I don’t know what either of those mean)
I haven’t touched javascript until now, so I really don’t know if I’m doing something very basic and stupidly wrong, but hoping that someone will be able to help out
Here’s an example of how the product page looks currently: the three items under Related Products don’t change from product to product, and they don’t link to their own product page either.
Please post the code as text and not as an image. It’s hart to read.
Please put it in a code block (you paste the code, then highlight it and click the “code block” icon on the right).
@gabriellaorde I’ve never implemented it before and I can’t see a bug at a glance. Maybe someone else who already implemented such a solution will be able to help.
@gabriellaorde Hi Gabriella, I’m struggling also, even thou I see Ido’s response that solves your issue. I pasted that code on my product page and it froze up my site for half a day. Would you mind posting the actual code that worked for you, because I still don’t understand where to put the name of my collections in the code for each product page. I had to delete the entire code on the product page to keep it from freezing up. Here are a couple of my Collection names: Coaster Artemis Collection, Coaster Avonlea Collection. Thanks in advance.
Hi Ido, What do you mean by replacing ‘related-products’ with ‘relatedProducts’? I’ve tried different variations and I still don’t get it. Do I put my collection name in the place of every ‘related-products’ in the code or other?