Custom Conditional Not working

Topic summary

A user is troubleshooting a Liquid conditional statement added to a product template in a CodeCanyon theme. The code is designed to display a “Talkbox” element (specifically a Russell sizing program link with an image) only for products tagged “boots” or “shoes”.

The Problem:

  • The conditional is incorrectly showing on a product (Backcountry variant) that has neither required tag
  • The element should not appear at all on this product

Code Structure:
The Liquid code loops through product tags and checks if any tag equals “boots” or “shoes” before displaying the sizing program content.

Current Status:
The issue remains unresolved, and the user is seeking help to identify why the conditional logic is failing to work as intended.

Summarized with AI on November 11. AI used: claude-sonnet-4-5-20250929.

I have a theme that was purchased on CodeCanyon and I’ve added a small piece of code to the product template and I have it set to only show if the tag is “boots” or “shoes” but for some reason one of the products shows this item even when it doesn’t have either of those tags. I’ve been searching to see if I could figure out why it’s not working and I’m at a loss.

The product url is https://russellmoccasin.com/products/backcountry?variant=44534078865621 and the item that is showing is the Talkbox (that is also the class of the div). It shouldn’t be showing at all.

Any help would be greatly appreciated.

Here is the piece of code I put in the template file

{% for tag in product.tags %}
              {% if tag == 'boots' or 'shoes' %}
            
              [
                
![russell_size_yellow_606d9e43-302c-444d-a465-254e5abaef35.svg?v=1706879492|138x95](upload://IB6whT5TmwBM1UEShpOQfNtkeI.svg)

              ](https://russellmoccasin.com/pages/find-your-russell-size-return-shipping-program)
            

            {% endif %}
              {% endfor %}