How can I prevent the same product from appearing in the recommended section?

Hello, in my shop which you can access through this link www.slinit.co to better understand my problem, when I select a certain product I go to its selling page, below I have “recommended products” and it appears the same product, so for example if I’m selling a keyboard, you click it, you go down to recommended products and appears (with other products) the same keyboard which you just clicked, how do I change it in order to never appear the same product?

No, no, no, no, you’re not getting it, I’ll take some screenshots to help you understand, when you enter my store you can see many products, you click in one of them and the selling page revealing more information appears, if you scroll down there is a products selection which is other products my store sells, and on one of them appears the same product that you just selected, what do I do in order to never repeat the same product, only show other products?

Hi @SlinIT ,

You can try this code by following these steps:

Step 1: Go to Online Store->Theme->Edit code.

Step 2: Search file theme.liquid

Step 3: Paste the below code at the bottom of the file → Save

{% if template contains "product" %}

{% endif %}

Hope my solution works perfectly for you!

Best regards,

Oliver | PageFly

Didn’t work, same problem, when I put the code only changed the order the products shows, but still same thing

Can you share the position-added code? Or you can duplicate the theme and give me the preview theme so I can re-check. Thanks

Here

Sorry I can’t see anything

sorry, forgot png is not supported.

you can try re-add