Hide Express Checkout if there is a certain product in checkout.

New Member
2 0 0

Hello everyone,

I am trying to hide express checkout on my checkout page if there is a product with the tag 'NoAmz'. But if there is not products with that tag, then display express checkout. Is this possible?

 

Here is my code- it is not working:)

{% for item in cart.items %}
        {% unless product.tags contains 'NoAmz' %}  
              {{ alternative_payment_methods }}
       {% endunless %}
{% endfor %}
0 Likes