i want to show popup on my product page when customer choose specific variant , well i have the code for popup i just want to know about liquid statement for it. i tried different but didn’t worked.
i don’t know why this is not working
{% assign show_size_chart = false %}
{% for product_option in product.options_with_values %}
{% if product_option.name = "Size" %}
{% assign show_size_chart = true %}
{% endif %}
{% endfor %}
{% if show_size_chart%}
{% include 'my_side_chart' %}
{% endif %}