I have gone through a large number of similar topics and I have not been able to identify a solution that works or has enough detail to work for me.
I have a Collection which contains 3 Products (tag: “Diversion Member”). I have hidden these products from Search using Metafields.
However, they continue to show up in “Product Recommendations” on other products.
I have made use of Search & Display to hide these products from a the primary 3 products, but cannot do the same for our entire catalog.
script below if from Theme’s “Edit Code” > “Sections” folder > “product-recommendations.liquid” file
Any assistance/guidance would be incredible.
{% if section.settings.show_product_recommendations %}
{% if recommendations.performed and recommendations.products_count > 0 %}
{{ section.settings.title }}
{% schema %}
{
“name”: “Product recommendations”,
“class”: “section-product-recommendations”,
“settings”: [
{
“type”: “checkbox”,
“id”: “show_product_recommendations”,
“label”: “Show recommendations”,
“info”: “Dynamic recommendations change and improve with time. Learn more”,
“default”: true
},
{
“type”: “text”,
“id”: “title”,
“label”: “Heading”,
“default”: “You may also like”
},
{
“type”: “checkbox”,
“id”: “hide_swatches”,
“label”: “Hide color swatches”,
“default”: false
},
{
“type”: “checkbox”,
“id”: “show_vendor”,
“label”: “Show product vendor”,
“default”: false
},
{
“type”: “range”,
“id”: “grid”,
“label”: “Products per row”,
“min”: 2,
“max”: 4,
“step”: 1,
“default”: 3
}
]
}
{% endschema %}