Variants problem

Hi, everybody, I hope you can help me, I’ve had this problem for weeks.
On my store I have different products with different variations, the price of each variation also changes:
product A costs $10
product B costs $15
product C costs $20

I set in the Bulk Publisher all the prices of the variants correctly, but at the moment I’m on my Store, and I try to select a variant to choose, the price doesn’t change, it remains the usual (the one that costs more, in this case 20$)

Surely it’s a code problem, could you help me?

Thank you very much, this is my product-template.liquid


{% if product.metafields.loox.num_reviews %}
	

		
		
	

{% endif %}
  
  
  

  {% comment %}
  Get first variant, or deep linked one
  {% endcomment %}
  {%- assign current_variant = product.selected_or_first_available_variant -%}

  {%- assign product_image_zoom_size = '1024x1024' -%}
  {%- assign product_image_scale = '2' -%}
  {%- assign enable_zoom = section.settings.enable_zoom -%}

  
    

      {%- assign featured_image = product.featured_image -%}
      {% for image in product.images %}
      {% capture img_id %}FeaturedImage-{{ section.id }}-{{ image.id }}{% endcapture %}
      {% capture img_class %}product-featured-img{% endcapture %}
      {% capture zoom_img_id %}FeaturedImageZoom-{{ section.id }}-{{ image.id }}{% endcapture %}
      {% capture img_wrapper_id %}{{ zoom_img_id }}-wrapper{% endcapture %}
      {%- assign img_url = image | img_url: '1x1' | replace: '_1x1.', '_{width}x.' -%}

      {% include 'image-style' with small_style: true, width: 530, height: 530, wrapper_id: img_wrapper_id, img_id: img_id %}

      

        

          
        

      

      {% endfor %}

      

      {% if product.images.size > 1 %}
      {%- assign enable_thumbnail_slides = true -%}
      {% endif %}

      
        {% if enable_thumbnail_slides == true %}
        
        {% endif %}
        

          {% for image in product.images %}
          - 
          {% endfor %}
        

        {% if enable_thumbnail_slides == true %}
        
        {% endif %}
      

      
    

    
      

        # {{ product.title }}

        {% if section.settings.show_vendor %}
        

{{ product.vendor }}

        {% endif %}

        
          

          

           

            {% if current_variant.compare_at_price > current_variant.price %}
            {{ 'products.product.regular_price' | t }}
            ~~{{ current_variant.compare_at_price | money }}~~
            
              
                {{ current_variant.price | money	 }}
              
              {% if section.settings.show_saved_amount %}
              
              
              {% if current_variant.compare_at_price > current_variant.price %}
                {% if settings.show_discount_amount == 'percent_save' %}
                
                  {% comment %}
                    {% endcomment %}
                  {% assign money_pro_format = shop.money_format | strip_html | json %}
             
                  {% if money_pro_format contains "${{amount_no_decimals}}" or money_pro_format contains "${{amount_no_decimals_with_comma_separator}}" %}
                  {{ current_variant.compare_at_price  | minus: current_variant.price  | times: 100.0 | divided_by: current_variant.compare_at_price | times: 100 | money_without_currency | replace:",","." | replace: '.0', '' }}{{ 'products.product.on_save' | t }}
                  {% elsif money_pro_format contains "${{amount_with_comma_separator}}" %}
                  {{ current_variant.compare_at_price  | minus: current_variant.price  | times: 100.0 | divided_by: current_variant.compare_at_price | money_without_currency | replace:",","."  | times: 100 | replace: '.0', '' }}{{ 'products.product.on_save' | t }}
				  {% else %}                  
                  {{ current_variant.compare_at_price  | minus: current_variant.price  | times: 100.0 | divided_by: current_variant.compare_at_price  | money_without_currency | times: 100 | replace: '.0', ''}}{{ 'products.product.on_save' | t }}
                  {% endif %}
                  
                
                {% else %}
                 
                  {% assign sale = current_variant.compare_at_price | minus:  current_variant.price |  money %}
                  {{ 'products.product.on_save_like_price' | t }} {{sale}}
                
                {% endif %}
              {% endif %}
              
              {% endif %}
            
            {% else %}
            {{ 'products.product.regular_price' | t }}
            ~~{{ current_variant.compare_at_price | money }}~~
            
              
                {{ current_variant.price | money }}
              
              {% if section.settings.show_saved_amount %}
              
              
              {% endif %}
              
            
            {% endif %}
          

          {% comment %}
          {% if current_variant.price != 0 %}
          {% else %}
          

            {{ 'collections.tag.free_text' | t }}

          {% endif %}
          {% endcomment %}
          {% if section.settings.product_review  %}
          
          {% endif %}
          {% if section.settings.product_description == 'under_the_price'%}
          

            

              - {{ 'products.product_tab.product_tab_1' | t }}

            

            
              

                {{ product.description }}
              

            

          

          {% endif %}
          
          {%- capture "form_classes" -%}
          product-form product-form-{{ section.id }}{% unless section.settings.show_variant_labels %} product-form--hide-variant-labels{% endunless %}{% if section.settings.enable_payment_button and product.has_only_default_variant%} product-form--payment-button-no-variants{% endif %}
          {%- endcapture %}

      {% form 'product', product, id: "AddToCartForm", class:form_classes, data-product-id: "{{ product.id }}", data-section: "{{ section.id }}", data-product: "{{ product | json | escape }}" %}
      
            {% if section.settings.show_quantity_selector %}
            
              
              

                {% include 'icon-minus' %}
                
                {% include 'icon-plus' %}
              
            
            

            {% else %}
            
            {% endif %}
         
            {% unless product.has_only_default_variant %}
            {% if section.settings.show_tags %}
            

              ##### {{ 'products.product.tags' | t }} : 
              {% for tag in product.tags %}
              {{ tag }}
              {% endfor %}
            

            {% endif %}
            {% for option in product.options_with_values %}

            
              
              
            

            {% endfor %}
            {% endunless %}

            

            
            {% if section.settings.variant_swacth == 'two'  %}  
            {% if product.variants.size > 1 %}
            

            {% for option in product.options %}
            {% include 'swatch' with option %}
            {% endfor %} 
            

            {% endif %}
            {% endif %} 
            
            {% include 'product-page-features' %}
            
         {% endform %}

          {% if section.settings.enable_sticky %}

          

          {% if section.settings.enable_buy_it_stiky_qty %}
          
          {% else %}

          

          {% endif  %}

          {% assign price_var1=current_variant.price | withoutmoney %}  
          
            

              {% if section.settings.enable_timer_stg_on == 'enable_timer_stg_on' %}  
              {% if section.settings.sticky_button == 'show_timer' %}
              {% assign tg = 'show' %}

              {% if settings.disable_timer_use_tag %}
              {% for tag in product.tags %}
              {% if "no-timer" == tag %}
              {% assign tg = 'hide' %}
              {% endif %}
              {% endfor %}
              {% endif %}
              
              {% if current_variant.compare_at_price > current_variant.price %}
              
{{ 'products.product.sticky_timer_text' | t }} 
                {% include 'sticky_timer_mobile'%}
              

              {% else %}
              {% unless settings.disable_timer_regular_price %}
              {{ 'products.product.sticky_timer_text' | t }} 
                {% include 'sticky_timer_mobile'%}
              

              {% endunless %}
              {% endif %}
             
              
              {% endif %}
              {% endif %}
              {% if section.settings.sticky_button == 'show_progress_bar' %}
              {% include 'product-progress-bar-mobile' %}
              {% endif %}

              {% if price_var1 == 0 %}          
              
              {% else %}          
              {% assign zeroCost='' %}  
              
              {% endif %} 
            
 
          

          {% endif %}
        

        {% if section.settings.product_description == 'under_the_timer'%}
        
          

            - {{ 'products.product_tab.product_tab_1' | t }}
          

          
            

              {{ product.description }}
            

          

        

        {% endif %}
        {% if section.settings.visitor_counter_enable %}
        
        

          
           
              
          
           {{ 'products.product.visitor_counter_text' | t}}       
          {% endif %}
        

          {% if section.settings.show_del_time %} 
          

   
             
            {{ 'products.product.deliiver_time_text_1' | t }} {{ section.settings.delivery_time_number}} {{ 'products.product.deliiver_time_text_2' | t }} 
          

          {% endif %}
        

        {% if section.settings.show_social %}
        {% include 'social-sharing', share_title: product.title, share_permalink: product.url, share_image: product %}
        {% endif %}
        {% if section.settings.enable_trust_badges %}
        
          

            {{ 'products.product.badges_title' | t }}
          

          
            {% unless section.settings.enable_trust_badges_image == blank %}
            
            {% else %}
                           
            {% endunless %}  
          
        

        {% endif %}

        {% if section.settings.product_review  %}

        {{ product.metafields.spr.reviews }}
 

        {% endif %}
      

    

  

{% unless product == empty %}

{% endunless %}

{% if section.settings.enable_progressbar_text or section.settings.enable_timer_top_message %}
{% if settings.enable_inventory_stock_number == "enable_stock_number_random"%}

{% endif %} 
{% endif %} 

{% if section.settings.readmore_enable %}
{{ 'readmore.min.js' | asset_url | script_tag }}

{% else %}

{% endif %}

{% if section.settings.buy_it_now_action == 'thank_you_message' %}

{% elsif section.settings.buy_it_now_action == 'direct_to_checkout' %}

{% else %}

{% endif %}

{% if section.settings.enable_default_variant %}
{% unless product.selected_variant %}
{% if product.variants.size > 1 %}

{% endif %}
{% endunless %}
{% else %}

{% endif %}

{% schema %}
  {
    "name": "Product page",
    "settings": [
	  {
        "type": "header",
        "content": "Product page [NEED HELP?](https:\/\/help.boostertheme.com\/hc\/en-us\/articles\/360003047493-How-to-setup-the-product-page-)"
      },
  	  {
        "type": "select",
        "id": "buy_it_now_action",
        "label": "Buy it Now Action",
        "default": "direct_to_cart",
          "options": [
          {
            "value": "thank_you_message",
            "label": "Added To Cart Message"
          },
		  {	
            "value": "direct_to_checkout",
            "label": "Direct to Checkout"
          },
		  {	
            "value": "direct_to_cart",
            "label": "Direct to Cart"
          }
        ] 
      },
      { 
		"type": "checkbox",
      	"id": "show_saved_amount",
      	"label": "Show Saved %",
      	"default": true
      },
	  {
        "type": "checkbox",
        "id": "enable_default_variant",
        "label": "Enable Make a Selection Option"
      },
	  {
        "type": "checkbox",
        "id": "show_quantity_selector",
        "label": "Show Quantity",
        "default": false
      },
	  {
        "type": "checkbox",
        "id": "show_vendor",
        "label": "Show Vendor",
        "default": false
	  },
      {
        "type": "checkbox",
        "id": "enable_zoom",
        "label": "Enable image zoom",
        "default": true
      },
      {
        "type": "checkbox",
        "id": "shake_effect_enable",
        "label": "Enable the shaking add to cart button",
		"default": true
      },
      {
        "type": "checkbox",
        "id": "readmore_enable",
        "label": "Enable Read more button",
		"default": true
      },
      {
        "type": "checkbox",
        "id": "enable_progressbar_text",
        "label": "Enable Progress Bar",
        "default": true
      },
	  {
        "type": "checkbox",
        "id": "enable_timer_top_message",
        "label": "Enable Stock Left Message",
        "default": true
      },
      {
        "type": "checkbox",
        "id": "enable_progressbartimer_text",
        "label": "Enable Sale end message",
        "default": true
      },
  	  {
        "type": "checkbox",
        "id": "enable_shipping",
        "label": "Enable Free + Shipping",
        "default": false
      },
	  {
        "type": "checkbox",
        "id": "show_tags",
		"label": "Show tags",
        "default": false
  	  },
	  {
        "type": "checkbox",
        "id": "show_social",
		"label": "Show social buttons",
        "default": false
  	  },
	  {
        "type": "radio",
        "id": "enable_timer_stg_on",
        "default": "enable_timer_stg_on",
        "options": [
          {
            "value": "enable_timer_stg_on",
            "label": "ON timer"
          },
          {
            "value": "enable_timer_stg_off",
            "label": "OFF timer"
          }
        ],
        "label": "Timer Setting ON\/OFF"
      },
	  {
        "type": "header",
        "content": "Dynamic Checkout Button"
      },
      {
        "type": "checkbox",
        "id": "enable_payment_button",
        "label": "Show dynamic checkout button",
        "info": "Lets customers check out directly using a familiar payment method. [Learn more](https://help.shopify.com/manual/using-themes/change-the-layout/dynamic-checkout)",
        "default": false
      },
	  {
        "type": "header",
        "content": "Variant Option [NEED HELP?](https:\/\/help.boostertheme.com\/hc\/en-us\/articles\/360002471493-How-to-Upload-Your-Color-Swatches-in-Booster-2-0-)"
      },
      {
        "type": "radio",
        "id": "variant_swacth",
        "label":"Variant type",
        "info": "Choose between color swatch or drop down menu for the variant",
        "options": [
          {
            "value": "one",
          	"label": "Drop down menu"
          },
          {
            "value": "two",
            "label": "Color swatch"
          }
        ],
          "default": "two"
      },
      {
        "type":"header",
        "content":"Swatch Option"
      },
      {
        "type": "radio",
        "id": "swatch_option",
        "label":"Color Swatch style",
        "options": [
          {
            "value": "with_background",
          	"label": "Background Color or image"
          },
          {
            "value": "without_background",
            "label": "Show color title like other swatches"
          }
        ],
          "default": "without_background"
      },
      {
        "type":"paragraph",
        "content":"When you choose 'background Color or image' option, you can change colors shape by using below option"
      },
      {
        "type": "radio",
        "id": "color_style",
        "label":"Shape of Color Swatch",        
        "options": [
          {
            "value": "square_box",
          	"label": "Square"
          },
          {
            "value": "round_shape",
            "label": "Round"
          }
        ],
          "default": "round_shape"
      },
      {
        "type":"header",
        "content":"Product Review"
      },
      {
        "type":"checkbox",
        "label":"Enable rating and review",
        "id":"product_review",
        "info":"make sure your shopify review app must be install",
        "default": true
      },
      {
        "type":"header",
        "content":"Visitor Counter"
      },
	  {
        "type": "checkbox",
        "id": "visitor_counter_enable",
        "label": "Visitor Counter Enable"
      },
      {
       "type": "select",
       "id": "visitor_counter_number",
       "label": "Visitor counter",
       "default": "1-15",
         "options": [
         {
           "value": "1-5",
           "label": "1 to 5"
         },
         {
           "value": "1-10",
           "label": "1 to 10"
         },
          {
           "value": "1-15",
           "label": "1 to 15"
         },
          {
           "value": "15-30",
           "label": "15 to 30"
         },
          {
           "value": "30-50",
           "label": "30 to 50"
         },
          {
           "value": "50-100",
           "label": "50 to 100"
         },
          {
           "value": "100-300",
           "label": "100 to 300"
         },
          {
           "value": "300-500",
           "label": "300 to 500"
         }  
       ]
     },
      {
        "type":"header",
        "content":"Delivery Time"
      },
	  {
        "type":"checkbox",
        "id": "show_del_time",
		"label":"Enable Delivery Time",
        "default": true
      },
	  {
        "type": "select",
        "id": "delivery_time_number",
        "label": "Delivery time",
        "default": "1-3",
          "options": [
          {
            "value": "1-3",
            "label": "1 to 3"
          },
          {
            "value": "3-5",
            "label": "3 to 5"
          },
          {
            "value": "5-10",
            "label": "5 to 10"
          },
		  {
            "value": "7-14",
            "label": "7 to 14"
          },
		  {	
            "value": "14-21",
            "label": "14 to 21"
          },
		  {	
            "value": "14-30",
            "label": "14 to 30"
          },
		  {	
            "value": "21 - 30",
            "label": "21 to 30"
          } 
        ] 
      },	  
	  {
		"type": "header",
		"content": "Desktop"
	  },
	  {
        "type": "select",
        "id": "product_description",
        "label": "Product Description",
        "default": "under_the_price",
          "options": [
          {
            "value": "under_the_price",
            "label": "Under the price"
          },
		  {	
            "value": "under_the_timer",
            "label": "Under the timer"
          } 
        ] 
      },
	  {
		"type": "header",
		"content": "Mobile"
	  },
	  {
        "type": "checkbox",
        "id": "enable_sticky",
        "label": "Enable Sticky button",
        "default": true
      },
	  {
        "type": "select",
        "id": "sticky_button",
        "label": "Sticky Button",
        "default": "show_timer",
        "options": [
          {
            "value": "show_timer",
            "label": "Show timer"
          },
		  {	
            "value": "show_progress_bar",
            "label": "Show progress bar"
          } 
        ] 
      },
	  {
		"type": "header",
		"content": "Badges"
	  },
      {
        "type": "checkbox",
        "id": "enable_trust_badges",
        "label": "Enable Badges",
        "default": true
      },
	  {
        "type": "image_picker",
        "id": "enable_trust_badges_image",
        "label": "Payment icons"
      }
    ]
  }
{% endschema %}

Hello,

This problem happen because of no binding between the change event and call back function to handle those events. It can be fixed after identifying the actual callback or by adding the code. Please get in touch if you need to fix it