Why isn't the price updating with variant in Zyon theme?

Hello everyone! I am new to Shopify and coding and need some help. I just realized the prices were not updating for the different sizes and only reflected in the cart. I tried with the buy now sticky bar to see if that is updating and seems to be working fine. I tried with a different theme; and in fact, it is this specific theme only with the issue.

https://hogako.com/collections/first-collection/products/b-black-candles-b-br-canvas

If someone could give me a hand, it would be highly appreciated. I have been trying to solve this for days! Thank you in advance. I am using Zyon as theme.

Product.liquid:


{% assign variant_tmp = product.selected_or_first_available_variant | default: product.variants.first %}
{% assign featured_image = current_variant.featured_image | default: product.featured_image %}
{% section 'product_page_header' %}
{% assign media_col = settings.product_image_size %}
{% assign main_col = 12 | minus: settings.product_image_size %}
{% if settings.type_detail == 'type1' %}
{% include 'product_style_1' %}
{% endif %}
{% if settings.type_detail == 'type2' %}
{% include 'product_style_2' %}
{% endif %}
{% if settings.type_detail == 'type3' %}

  

    

      {% if settings.product_sidebar_display != blank %}
      

        

          

            {{ 'collections.sidebar.categories' | t }}
          

          
            {% include 'menu-product' %}
          

        

        {% if settings.product_sidebar_content != '' %}
        
          {{settings.product_sidebar_content}}
        

        {% endif %}
        {% if settings.bestseller_product_enable != blank %}
        
          

            {% if settings.language_enable %}
            {{ settings.sidebar_product_title | split: '|' | first }}
            {{ settings.sidebar_product_title | split: '|' | last }}
            {% else %}
            {{ settings.sidebar_product_title | split: '|' | first }}
            {% endif %}
          

          
            {% include 'bestseller-product' %}
          

        

        {% endif %}
      

      {% endif %}
      {% if settings.product_sidebar_display != blank %}
      
        {% else %}
        

          {% endif %}
          

            

              

                

                  

                    {% include 'media' %}
                  

                

                
                  

                    {% if settings.product_prev_next != blank %}
                    

                      {% if collection %}
                      {% if collection.previous_product or collection.next_product %}
                      {% if collection.previous_product %}
                      

                        
                          {{ settings.product_prev_text }}
                        
                        {% assign words = collection.previous_product | split:'/' %}
                        {% assign word = words.last %}
                        

                          
                        

                      

                      {% endif %}
                      {% if collection.next_product %}
                      
                        
                          {{ settings.product_next_text }}
                        
                        {% assign words = collection.next_product | split:'/' %}
                        {% assign word = words.last %}
                        

                          
                        

                      

                      {% endif %}
                      {% endif %}
                      {% endif %}
                    

                    {% endif %}
                    
                      ## 
                        
                          {% if settings.language_enable %}
                          {{ product.title | split: '|' | first }}
                          {{ product.title | split: '|' | last }}
                          {% else %}
                          {{ product.title | split: '|' | first }}
                          {% endif %}
                        
                      
                    

                    
                      
                      
{{ product.metafields.spr.reviews }}

                    

                    
                    {% if settings.product_short_desc %}
                    
                      {% if settings.product_short_desc %}
                      

                        

                          {%if settings.product_short_desc == '1'%}
                          {% if product.description contains '[countdown]' %}
                          {% assign des = product.description | split:'[/countdown]' | last %}
                          {% if settings.language_enable %}
                          {{ des | strip_html | split: '[lang2]' | first | truncatewords: 30 }}
                          {{ des | strip_html | split: '[lang2]' | last | truncatewords: 30 }}
                          {% else %}
                          {{ des | strip_html | split: '[lang2]' | first | truncatewords: 30 }}
                          {% endif %}
                          {% else %}
                          {% if settings.language_enable %}
                          {{ product.content | strip_html | split: '[lang2]' | first | truncatewords: 30 }}
                          {{ product.content | strip_html | split: '[lang2]' | last | truncatewords: 30 }}
                          {% else %}
                          {{ product.content | strip_html | split: '[lang2]' | first | truncatewords: 30 }}
                          {% endif %}
                          {% endif %}
                          {%endif%}
                          {%if settings.product_short_desc == '2'%}
                          {% if product.description contains '[countdown]' %}
                          {% assign des = product.description | split:'[/countdown]' | last %}
                          {% if settings.language_enable %}
                          
{{ des | split: '[lang2]' | first }}

                          {{ des | split: '[lang2]' | last }}

                          {% else %}
                          {{ des | split: '[lang2]' | first }}
                          {% endif %}
                          {% else %}
                          {% if settings.language_enable %}
                          {{ product.description | split: '[lang2]' | first }}

                          {{ product.description | split: '[lang2]' | last }}

                          {% else %}
                          {{ product.description | strip_html | split: '[lang2]' | first }}
                          {% endif %}
                          {% endif %}
                          {%endif%}
                        

                      

                      {% endif %}
                    

                    {% endif %}
                    {% if settings.product_sample_vendor %}
                    {{ product.vendor }}

                    {% endif %}
                    
                      {% if settings.product_availability %}
                      

                        {{ 'products.product.availability' | t }} 
                        
                          {% if product.selected_or_first_available_variant.inventory_management %}
                          {% assign first_inventory = product.selected_or_first_available_variant.inventory_quantity %}
                          {% if first_inventory > 0 %}
                          {{first_inventory}} {{ 'products.product.in_stock' | t }}
                          {% else %}
                          {{ 'products.product.out_of_stock' | t }}
                          {% endif %}
                          {% else %}
                          {{ 'products.product.many_in_stock' | t }}
                          {% endif %}
                        
                      

                      {% endif %}
                      {% if settings.product_sku %}
                      {{ 'products.product.sku' | t }} {{ product.sku }}

                      {% endif %}
                      {% if settings.product_type %}
                      
                        
                        {{ product.type }}
                      

                      {% endif %}
                      {% if settings.product_vendor %}
                      
                        
                        {{ product.vendor }}
                      

                      {% endif %}
                    

                    
                      
                    

                    {% if settings.size_chart_disable =='on' %}
                    

Size Chart

                    {% endif %}
                    {% if settings.product_tags %}
                    
                      *{{ 'blogs.article.tags' | t }}*
                      {% for tag in product.tags %}
                      /
                      {{ tag }}
                      {% endfor %}
                    

                    {% endif %}
                    {% include 'addthis' %}
                  

                

              

            

            
              

                {% include 'product-page-tab' %}
              

            

            {% if settings.related_product_display %}
            
              {% if settings.related_product_type == "tags" %}
              {% include 'related-products-by-tags' %}
              {% else %}
              {% include 'related-products' %}
              {% endif %}
            

            {% endif %}
          

        

      

    

    
  

  {% endif %}

@Cnznq

Hey,

Thank you for your question.

This is an issue with Javascript, not the .Liquid code that you’ve shared. If it was working beforehand then very likely an installed app (or custom code that you’ve added) broke it.

Unfortunately there is not a quick fix, the Javascript for this part would need to be re-written.

You’d need to add an eventlistener to the