How to hide Add-on product from Recommendation?
As you know, our app provides an add-on product feature to create option charge and increase the main product price when choosing a specific option value – of course – these add-on products, in some cases, are not for sale. In this article, we will help you to hide these add-on items from Recommendations
Step 1: Go to your Online Store > Themes > From your current theme, choose Edit code.
Step 2: Find the product-recommendations.liquid
and paste these following code :
{% unless recommendation.tags contains "_hidden" %}
{% endunless %}
- After you paste, the code should look like this:
Step 3: Add tag _hidden
to product
For each add-on product that you want to hide from Recommendations, please add the tag _hidden
as shown in the screenshot below.
- Go to your Shopify admin panel
- Navigate to the "Products" section.
- Select the specific product you want to edit
- Scroll down to the Tags section and add the tag
_hidden
- Finally, click Save.
After you have added the _hidden
tag to the desired add-on products, they should no longer appear in the Recommendations section.
Updated on: 11/03/2024
Thank you!