Disable Quick Shop on certain products that has specific product tags

Solved
Highlighted
Excursionist
25 1 4

Hi all,

Is there a way to disable quick shop functionality on certain products that has a specific product tag? I don't want to show up the quick shop button to the product which has product tag as: blablabla

I have this code and I don't know how to implement properly with the if sentences. Any good experts around here, would appreciate.

  <div class="info">
    {% if settings.thumbnail_hover_enabled and settings.quick_shop_enabled %}
      {% include "product-info" %}
      {% include 'quick-shop-button' %}
    {% elsif settings.thumbnail_hover_enabled %}
      {% include "product-info" %}
    {% elsif settings.quick_shop_enabled %}
      {% include 'quick-shop-button' %}
    {% endif %}
  </div>

 

0 Likes
Highlighted
Excursionist
25 1 4

This is an accepted solution.

I resolved it myself. Let me know if there's any complications?

 <div class="info">
    {% if settings.thumbnail_hover_enabled and settings.quick_shop_enabled %}
     {% include "product-info" %}
    {% unless product.tags contains "blablabla" %}
      {% include 'quick-shop-button' %}
     {% endunless %}
    {% elsif settings.thumbnail_hover_enabled %}
      {% include "product-info" %}
    {% elsif settings.quick_shop_enabled %}
     {% unless product.tags contains "blablabla" %}
      {% include 'quick-shop-button' %}
     {% endunless %}
    {% endif %}
  </div>
Highlighted
New Member
1 0 0

Where should I paste the script?

0 Likes
Highlighted
New Member
2 0 0

Where should we paste the snippet? On the products page, main page, or where? I already pasted it to the main one to no avail

0 Likes
Highlighted
New Member
2 0 0

Did you find out where?

0 Likes
Highlighted
New Member
2 0 0

It would be super helpful if someone could help direct me on where to paste this code.

0 Likes
Highlighted
Tourist
6 0 4

Tx can you please share where to paste this code? It would be much appreciated! Thanks!!

Highlighted
New Member
2 0 1

Please tell us where to paste this code

0 Likes