Variant price not changing

Ahmadan
New Member
1 0 0
<!doctype html>
<html class="no-js" lang="{{ shop.locale }}">
<head>
  <!-- Basic page needs ================================================== -->
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <link rel="canonical" href="{{ canonical_url }}">
  <meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
  <meta name="theme-color" content="{{ settings.color_primary }}">
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="mobile-web-app-capable" content="yes">
  <meta name="author" content="Debutify">
 
  <!-- Fav icon ================================================== -->
  {% if settings.favicon %}
    <link sizes="192x192" rel="shortcut icon" href="{{ settings.favicon | img_url: '192x192' }}" type="image/png">
  {% endif %}
 
  <!-- Title and description ================================================== -->
  <title>
    {{ page_title }}{% if current_tags %}{% assign meta_tags = current_tags | join: ', ' %} &ndash; {{ 'general.meta.tags' | t: tags: meta_tags }}{% endif %}{% if current_page != 1 %} &ndash; {{ 'general.meta.page' | t: page: current_page }}{% endif %}{% unless page_title contains shop.name %} &ndash; {{ shop.name }}{% endunless %}
  </title>
 
  {% if page_description %}
    <meta name="description" content="{{ page_description | escape }}">
  {% endif %}
 
  <!-- Social meta ================================================== -->
  {% include 'social-meta-tags' %}
 
  <!-- CSS ================================================== -->
  {{ 'theme.scss.css' | asset_url | stylesheet_tag }}
 
  <!-- Vendors ================================================== -->
  <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">
  
  <!-- Sections ================================================== -->
  <script>
    window.theme = window.theme || {};
    theme.strings = {
      zoomClose: {{ "products.zoom.close" | t | json }},
      zoomPrev: {{ "products.zoom.prev" | t | json }},
      zoomNext: {{ "products.zoom.next" | t | json }},
      moneyFormat: {{ shop.money_format | json }},
      addressError: {{ 'home_page.map.address_error' | t | json }},
      addressNoResults: {{ 'home_page.map.address_no_results' | t | json }},
      addressQueryLimit: {{ 'home_page.map.address_query_limit_html' | t | json }},
      authError: {{ 'home_page.map.auth_error_html' | t | json }},
      cartCookie: {{ 'cart.general.cookies_required' | t | json }}
    };
    theme.settings = {
      cartType: {{ settings.cart_type | json }},
      gridType: {{ settings.collection_products_grid | json }}
    };
  </script>
 
  {{ 'jquery-2.2.3.min.js' | asset_url | script_tag }}
  
  {% include 'currency-detection' %}
  
  <script src="{{ 'lazysizes.min.js' | asset_url }}" async="async"></script>
 
  <script src="{{ 'theme.js' | asset_url }}" defer="defer"></script>
 
  <!-- Header hook for plugins ================================================== -->
  {{ content_for_header }}
  
  {{ 'modernizr.min.js' | asset_url | script_tag }}
 
  {% comment %}
    If you store has customer accounts disabled, you can remove the following JS file
  {% endcomment %}
  {% if template.directory == 'customers' %}
    {{ 'shopify_common.js' | shopify_asset_url | script_tag }}
  {% endif %}
  
 
{{ shop.metafields.loox["global_html_head"] }}
</head>
 
{% comment %}
  Add the page template as a class for easy page or template specific styling.
{% endcomment %}
<body id="{{ page_title | handle }}"
      class="{% if settings.show_announcement %}announcement-active{% endif %}
             {% if settings.hide_announcement_mobile %}announcement-mobile-hide{% endif %}
             {% if settings.sticky_header %}sticky-header{% endif %}
             {% if settings.hero_header %}transparent-header{% endif %}
             {% if customer %}customer-logged-in {% endif %}
             template-{{ template | replace: '.', ' ' | truncatewords: 1, '' | handle }}">
 
  <div id="SearchDrawer" class="drawer drawer--top">
    <div class="drawer__inner">
    {% include 'search-bar', input_type: 'input-group-full', search_location: 'drawer' %}
    </div>
  </div>
 
  {% section 'drawer-menu' %}
 
  <div id="CartDrawer" class="drawer drawer--right drawer--has-fixed-header drawer--has-fixed-footer">
    <div class="drawer__fixed-header">
      <div class="drawer__header">
        <div class="drawer__title">
          <a href="{{ routes.cart_url }}">
            <span class="fas fa-shopping-{{ settings.cart_icon }}" aria-hidden="true"></span>
            {{ 'cart.general.title' | t }}
          </a>
        </div>
        <div class="drawer__close">
          <button type="button" class="btn btn-square-small icon-fallback-text drawer__close-button js-drawer-close">
            <span class="fas fa-times" aria-hidden="true"></span>
            <span class="fallback-text">{{ 'cart.general.close_cart' | t }}</span>
          </button>
        </div>
      </div>
    </div>
    <div class="drawer__inner">
      <p class="ajaxcart-loading-icon fas fa-spinner fa-spin text-center"></p>
      <div class="cart-empty-container text-center">
        <p class="cart--empty-message">{{ 'cart.general.empty' | t }}</p>
        <a href="{{ settings.browsing_link }}" class="btn {{ settings.browsing_button_style }}  cart--continue-browsing">{{ 'cart.general.continue_browsing_html' | t }}</a>
        <p class="cookie-message">{{ 'cart.general.cookies_required' | t }}</p>
      </div>
      <div id="CartContainer" class="drawer__cart"></div>
    </div>
  </div>
 
  <div id="PageContainer" class="page-container">
    
    {% include 'announcement' %}
 
    {% section 'header' %}
    
    {% unless template == 'collection' or template == 'article' %}
      {% include 'breadcrumbs' %}
    {% endunless %}
 
    <main class="main-content" role="main">
      <div class="{% if template == 'index' or template == 'collection' or template == 'product' or template == 'article' %}wrapper-full
                  {% elsif template == 'page.full-width' %}wrapper-fluid
                  {% else %} wrapper{% endif %}">
 
        {{ content_for_layout }}
      </div>
    </main>
 
    {% section 'guarantee' %}  
 
    {% section 'footer' %}
 
    {% if settings.show_top_button %}
      <a href="#" class="btn-top btn btn--square btn-top-{{ settings.top_button_position }} {% if settings.top_button_mobile %}small--hide{% endif %}">
        <span class="fas fa-arrow-up"></span>
      </a>
    {% endif %}
    <div class="overlay-drawer"></div>
  </div>
  
  {% comment %}
    Template-specific js
  {% endcomment %}
  <script>
    {% if resetPassword %}
      $(function() {
        timber.resetPasswordSuccess();
      });
    {% endif %}
  </script>
 
  {% comment %}
    Ajaxify your cart with this plugin.
    Documentation:
  {% endcomment %}
  {% if settings.cart_type == 'drawer' %}
    {% include 'ajax-cart-template' %}
  {% endif %}
 
  {% if template.name == 'product' or template.name == 'index' %}
    <script>
      // Override default values of shop.strings for each template.
      // Alternate product templates can change values of
      // add to cart button, sold out, and unavailable states here.
      theme.productStrings = {
        addToCart: {{ 'products.product.add_to_cart' | t | json }},
        soldOut: {{ 'products.product.sold_out' | t | json }},
        unavailable: {{ 'products.product.unavailable' | t | json }}
      }
    </script>
  {% endif %}
  
  {% if template.name == 'collection' %}
    <script>
      /* Product Tag Filters - Good for any number of filters on any type of collection pages */
      var collFilters = jQuery('.tag-filter');
      collFilters.change(function() {
        var newTags = [];
        collFilters.each(function() {
          if (jQuery(this).val()) {
            newTags.push(jQuery(this).val());
          }
        });
        if (newTags.length) {
          var query = newTags.join('+');
          window.location.href = jQuery('{{ 'tag' | link_to_tag: 'tag' }}').attr('href').replace('/' + 'tag', '/' + query);
        }
        else {
          {% if collection.handle %}
          window.location.href = '/collections/{{ collection.handle }}';
          {% elsif collection.products.first.type == collection.title %}
          window.location.href = '{{ collection.title | url_for_type }}';
          {% elsif collection.products.first.vendor == collection.title %}
          window.location.href = '{{ collection.title | url_for_vendor }}';
          {% endif %}
        }
      });
    </script>
  {% endif %}
  
  {% if template.name == 'cart' and settings.cart_top_button %}
  <script>
    $('document').ready(function(){
      $('#topCheckoutButton').click(function(event){
        event.preventDefault();
        $('.cart__checkout').click();
      });
    });
  </script>
  {% endif %}
      
{{ shop.metafields.loox["global_html_body"] }}
</body>
</html>
0 Likes