Add to cart not working - debut theme

New Member
2 0 0

Hi, I am setting up my shopify store and noticed that the 'add to cart' button is not functioning. I took a look at similar posts but am unsure of how to fix this error. 

 

Site: https://ullr-athletics-shop.myshopify.com/

 

Here is the product.liquid snippet...not sure if this is where the error lies. Any help is appreciated. Thanks! 

 

 

 

 

{% comment %}
  The contents of the product.liquid template can be found in /sections/product-template.liquid
{% endcomment %}

{% section 'product-template' %}
{% section 'product-recommendations' %}

{% if collection %}
  <div class="text-center return-link-wrapper page-width">
    <a href="{{ collection.url }}" class="btn btn--secondary btn--has-icon-before return-link">
      {% include 'icon-arrow-left' %}
      {{ 'products.product.back_to_collection' | t: title: collection.title }}
    </a>
  </div>
{% endif %}

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

{% assign current_variant = product.selected_or_first_available_variant %}

<script type="application/ld+json">
{
  "@context": "http://schema.org/",
  "@type": "Product",
  "name": {{ product.title | json }},
  "url": {{ shop.url | append: product.url | json }},
  {%- if product.featured_image -%}
    {%- assign image_size = product.featured_image.width | append'x' -%}
    "image"[
      {{ product.featured_image.src | img_url: image_size | prepend"https:" | json }}
    ],
  {%- endif -%}
  "description"{{ product.description | strip_html | json }},
  {%- if current_variant.sku != blank -%}
    "sku"{{ current_variant.sku | json }},
  {%- endif -%}
  "brand"{
    "@type": "Thing",
    "name": {{ product.vendor | json }}
  },
  "offers"[
    {%- for variant in product.variants -%}
      {
        "@type" : "Offer",
        {%- if variant.sku != blank -%}
          "sku"{{ variant.sku | json }},
        {%- endif -%}
        "price" : {{ variant.price | divided_by: 100.00 | json }},
        "priceCurrency" : {{ cart.currency.iso_code | json }},
        "url" : {{ shop.url | append: variant.url | json }}
      }{% unless forloop.last %},{% endunless %}
    {%- endfor -%}
  ]
}
</script>
0 Likes
Astronaut
1088 149 274

It's working for me. Are you sure you don't have javascript disabled in your browser?

If you'd like to make any edits to your store, please send me a personal message and we can discuss what you'd like to accomplish :D
0 Likes
New Member
2 0 0

Thanks for replying. I checked my Chrome browser settings and see that JS is enabled. I tried the same action in Edge and see the same results. Additionally, I am also noticing that the product images are not clickable. 

0 Likes