First product variant always being added to cart (Venture Theme)

Hi there,

I’m new to Shopify platform.

I’m recently helping my friend on his store, and there is an issue that I found and couldn’t be solved (Venture Theme)

No matter which Variant is selected, after adding a Variant to the cart, the cart always show the first Variant.

I tried to search in the community and google, seems this issue happens to some other people but never solved.

Could anyone help?

Thanks

Here is the product-template.liquid


  {% assign product_image_size = '480x480' %}

  
  
  
  {%- if settings.product_vendor_enable -%}
    
  {%- endif -%}

  {% comment %}
    Get first variant, or deep linked one
  {% endcomment %}
  {% assign current_variant = product.selected_or_first_available_variant %}
  {% assign variants_with_unit_price = product.variants | where: "unit_price_measurement" %}

  
    

      

        

          {%- assign featured_image = current_variant.featured_image | default: product.featured_image -%}
          {%- for image in product.images -%}
            

              
                {% assign img_url = image | img_url: '1x1' | replace: '_1x1.', '_{width}x.' %}
                
              
            

          {%- endfor -%}
          
        

        {% if product.images.size > 1 %}
          
            

              {% for image in product.images %}
                

                  
                    
                  
                

              {% endfor %}
            

          

        {% endif %}
        {% if product.images.size > 2 %}
          {% comment %}
            Add SVG icon snippets to an object for custom slider arrows
          {% endcomment %}
          
        {% endif %}
      

    

    
      

        
        

        
          {% if settings.product_vendor_enable %}
            

{{ product.vendor }}

          {% endif %}

          # {{ product.title }}

          
            - {{ 'products.product.on_sale' | t }}
              

            

            - {% unless product.compare_at_price_max > product.price %}
                  {{ 'products.product.regular_price' | t }}
                {% endunless %}
              
                  {{ current_variant.price | money }}
              
            

            {% if product.compare_at_price_max > product.price %}
              - {{ 'products.product.regular_price' | t }}
                  <s>
                    {{ current_variant.compare_at_price | money }}
                  </s>
              

            {% endif %}
            {%- if variants_with_unit_price.size > 0 -%}
              - {% include 'product-unit-price', product_variant: current_variant %}
              

            {%- endif -%}
            {% if section.settings.stock_enable %}
              - {% if current_variant.inventory_management %}
                      {% if current_variant.inventory_quantity < 10 and current_variant.inventory_quantity > 0 %}
                        {% assign qty = current_variant.inventory_quantity %}
                        {{ 'products.product.stock_available' | t: count: qty }}
                      {% elsif current_variant.inventory_quantity == 0 or current_variant.inventory_quantity < 0 and current_variant.incoming %}
                        {% if current_variant.available %}
                          {% assign date = current_variant.next_incoming_date | date: format: 'date' %}
                          {{ 'products.product.will_not_ship_until' | t: date: date  }}
                        {% else %}
                          {% assign date = current_variant.next_incoming_date | date: format: 'date' %}
                          {{ 'products.product.will_be_in_stock_after' | t: date: date  }}
                        {% endif %}
                      {% endif %}
                    {% endif %}
                
              
            {% endif %}
          

          {%- if shop.taxes_included or shop.shipping_policy.body != blank -%}
            
              {%- if shop.taxes_included -%}
                {{ 'products.product.include_taxes' | t }}
              {%- endif -%}
              {%- if shop.shipping_policy.body != blank -%}
                {{ 'products.product.shipping_policy_html' | t: link: shop.shipping_policy.url }}
              {%- endif -%}
            

          {%- endif -%}

        

        

---

        {% capture "form_class" %}product-form{% if section.settings.enable_payment_button %} product-form--payment-button{% endif %}{%- endcapture %}

        {% capture "form_id" %}AddToCartForm-{{ section.id }}{%- endcapture %}

        {% form 'product', product, class:form_class, id:form_id %}
          {% unless product.has_only_default_variant %}
            {% for option in product.options_with_values %}
              
                
                
              

            {% endfor %}
          {% endunless %}

          
          

            
            
          

          
            
            {% if section.settings.enable_payment_button %}
              {{ form | payment_button }}
            {% endif %}
          

        {% endform %}

        

---

        
          {{ product.description }}
        

        {% if section.settings.social_sharing_products %}
          

---

          {% include 'social-sharing', share_title: product.title, share_permalink: product.url, share_image: product %}
        {% endif %}
      

    

  

{% unless product == empty %}
  
  {% if section.settings.stock_enable %}
    
  {% endif %}
{% endunless %}