Disable widget if product tag equals

Klpye01
Tourist
11 0 0

I am using the GAF Store Pickup app and it seems to work fine but I am wanting to disable the shipping or store pickup options based on product tags.  I found this in the apps FAQ page so I added it to my theme.liquid.  It works great if I add a tag to the CUSTOMER but I need it to be based off of the PRODUCT TAG and not the customer tag.  Any suggestions on how I can make it look at the product tag instead of the customer tag?

 

< script >

var disable_gafcnc = false;
{% if customer %}
    {% if customer.tags contains "Pickup Disabled" %}
          disable_gafcnc = true;
     {% endif %}
{% endif %}
< / script >

Reply 1 (1)
BSS-Commerce
Shopify Expert
2959 396 414

Hi @Klpye01 ,

We've carefully checked and found your problem quite complicated. So we suggest hiring a developer.

It's what we can help with an optimal solution. If you need help from our expert, kindly share your request with us via Shopify experts: https://experts.shopify.com/bss-commerce/services?utm_source=Shopify+Community&utm_medium=Post+reply...

We will check it and give you a detailed solution. We're looking forward to working with you.

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.

For B2B solutions and custom pricing, check out B2B Solution & Custom Pricing |
For adding product labels/badges, visit Product Labels by BSS

BSS Commerce - Shopify Apps & Store Development Service Provider

Hire a Shopify expert | Shopify Plus Store Development