Change product weight per Tag

Highlighted
Tourist
37 0 1

Hello, I want to change the weight of a procut by using a tag. I have a Idea but i dont know how to do it.

{% for t in product.tags %}
     {% if t contains 'Versand1' %}
        something like set product weight to 40
        {% endif %}
    {% endfor %}
          </div>

Thank you for your help

0 Likes