Excluding & Triggering Upsells
You can exclude products by tagging them. Below explains the various tags you can add and what they will do:
ou-exclude - prevents the product from showing up as an upsell
ou-smart-keyword - OU uses a smart engine based on sales. If you do not have enough sales data then it might show random upsells if you are using our Smart feature. You can get by this by tagging your products that are alike. For example you can tag all your cat products with ou-smart-cat so that until you build up enough sales relevant items will show up as upsells
ou-exclude-upsells - prevents the actual item from triggering any upsells
ou-exclude-icfp - this will prevent upsells from triggering in cart and full page upsells
ou-exclude-bump - prevents bump upsells from triggering
ou-exclude-modal - prevents modal upsells from triggering
How can I prevent the tags from showing in the sidebar for filtering?
NOTE: the below example is just a base example for our demo store. You might have a different theme, your tags might appear in a drop down, or the location might be different. Please consult with a developer to make any changes needed to your liquid theme files. We CANNOT help you with this customization.
We are using the Supply theme.
We edited the collection-sidebar.liquid
This is what the code looked like before:
{% for tag in collection.all_tags %}
{% assign is_advanced_tag = false %}
{% assign cat = tag | split: '_' | first %}
{% unless cat == tag %}
{% if cat_array contains cat %}
{% assign is_advanced_tag = true %}
{% if current_tags contains tag %}
<li>{{ tag | remove_first: cat | remove_first: '_' }}</li>
{% else %}
<li>{{ tag | remove_first: cat | remove_first: '_' | link_to_tag: tag }}</li>
{% endif %}
{% endif %}
{% endunless %} {% if is_advanced_tag == false %}
{% if current_tags contains tag %}
<li>{{ tag }}</li>
{% else %}
<li>{{ tag | link_to_tag: tag }}</li>
{% endif %}
{% endif %}
{% endfor %}
This is what we edited it to:
{% for tag in collection.all_tags %}
{% assign tag_prefix = tag | slice: 0, 3 %} ////////////////////// new code
{% if tag_prefix != 'ou-' %} ////////////////////// new code
{% assign is_advanced_tag = false %}
{% assign cat = tag | split: '_' | first %}
{% unless cat == tag %}
{% if cat_array contains cat %}
{% assign is_advanced_tag = true %}
{% if current_tags contains tag %}
<li>{{ tag | remove_first: cat | remove_first: '_' }}</li>
{% else %}
<li>{{ tag | remove_first: cat | remove_first: '_' | link_to_tag: tag }}</li>
{% endif %}
{% endif %}
{% endunless %} {% if is_advanced_tag == false %}
{% if current_tags contains tag %}
<li>{{ tag }}</li>
{% else %}
<li>{{ tag | link_to_tag: tag }}</li>
{% endif %}
{% endif %}
{% endif %} ////////////////////// new code
{% endfor %}