How to show popup on product page when a variant is selected ?

Ayaanmalik
New Member
1 0 1

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 %}

 

 

 

 

KetanKumar
Shopify Partner
16931 1851 6335

@Ayaanmalik 

sorry for this issue can you please check article 

https://belvg.com/blog/shopify-size-chart.html

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Expert | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
0 Likes