Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Hide certain products, based on tags at auto generated product recommendations.

Solved

Hide certain products, based on tags at auto generated product recommendations.

JRT1
Shopify Partner
10 1 13

Hi,

 

We're using Search and Discovery which does a great job, except we have a new feature in the store. We're basically hiding certain products behind a password and are hidden from search and SEO. But apperantly they're still made visable due to the auto generated product recommendations that the app has. I was wondering if it is possible so that products tagged with a certain tag ex. "exclude-recommendation" can be ignored and won't be suggested by the auto-generation.

 

It will be too much work to give each product a manual recommendation, so that is out of the

 

Looking forward if anyone has a solution, thanks!

Accepted Solution (1)
Sweet_Savior_3
Shopify Partner
1361 104 144

This is an accepted solution.

Yes it can be achieved like this:

 

Sweet_Savior_3_0-1710269368886.png

 

The screenshot is from Impulse theme. You can alter the code as per your theme.

 

Thanks

Don't forget to like and accept the solution to help others store owners.
Looking for an expert or Have any queries ? Send query to the Inbox
Coffee Tip ? Pay to shopify.dev.34@gmail.com
From Less To Further !!!

View solution in original post

Replies 3 (3)

Sweet_Savior_3
Shopify Partner
1361 104 144

Hello @JRT1 

 

Welcome to Shopify Community.

 

Yes, it is possible to hide a tagged product from the product recommendations. But this is not possible without altering the code and if you are not familiar with liquid code then seek help of a developer at reasonable cost to help you.

 

Let me know if you need one.

 

Thanks

Don't forget to like and accept the solution to help others store owners.
Looking for an expert or Have any queries ? Send query to the Inbox
Coffee Tip ? Pay to shopify.dev.34@gmail.com
From Less To Further !!!
JRT1
Shopify Partner
10 1 13

Hi, yes was aware it needed altering of the code, especially the product-recommendation.liquid code. Was basically just curious of anyone else managed to do this. Thanks!

Sweet_Savior_3
Shopify Partner
1361 104 144

This is an accepted solution.

Yes it can be achieved like this:

 

Sweet_Savior_3_0-1710269368886.png

 

The screenshot is from Impulse theme. You can alter the code as per your theme.

 

Thanks

Don't forget to like and accept the solution to help others store owners.
Looking for an expert or Have any queries ? Send query to the Inbox
Coffee Tip ? Pay to shopify.dev.34@gmail.com
From Less To Further !!!