d
Topic
Posts:
2
5 days ago

"Add to cart" buttom stop working.

Hello, the "Add to cart" buttom from my shopify page stoped working.

this is the store: www.thisismool.com

 

And this is the code from the theme.liquid

 

<!doctype html>

{% include 'theme-info' %}

<!--[if IE 8]>
<html class="no-js lt-ie9 noFlex" lang="en">
  <![endif]-->
  <!--[if IE 9 ]>
  <html class="ie9 no-js noFlex">
    <![endif]-->
    <!--[if (gt IE 9)|!(IE)]><!-->
    <html class="no-js hasFlex">
      <!--<![endif]-->
      <head>
        <!-- Basic page needs ================================================== -->
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

        {% if settings.favicon_image != blank %}
          <link rel="shortcut icon" href="{{ settings.favicon_image | img_url: '32x32' }}" 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 %}
        <!-- Mobile Specific Metas -->
        <meta name="HandheldFriendly" content="True">
        <meta name="MobileOptimized" content="320">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
        <!-- Helpers ================================================== -->
        {% include 'social-meta' %}
        <link rel="canonical" href="{{ canonical_url }}">
        <meta name="viewport" content="width=device-width,initial-scale=1">
        <meta name="theme-color" content="{{ settings.color_primary }}">
        <!-- CSS ================================================== -->
        {{ 'stylescss.scss.css' | asset_url | stylesheet_tag}}
        {{ 'slick.scss.css' | asset_url | stylesheet_tag }}
        <!-- Header hook for plugins ================================================== -->
        <!-- font ================================================== -->

        {% if settings.type_logo_family contains 'Google' or settings.type_main_family contains 'Google' or settings.type_accent_family contains 'Google' or settings.type_meta_family contains 'Google' %}
          {% assign mainGoogleUrl = '' %}

          {% if settings.type_logo_family contains 'Google' %}
            {% assign type_logo_parts = settings.type_logo_family | split: '_' %}
            {% capture mainGoogleUrl %}{{ mainGoogleUrl }}|{{ type_logo_parts[1] }}:{{ type_logo_parts[2] }}{% endcapture %}
          {% endif %}

          {% if settings.type_main_family contains 'Google' %}
            {% assign type_main_parts = settings.type_main_family | split: '_' %}
            {% capture mainGoogleUrl %}{{ mainGoogleUrl }}|{{ type_main_parts[1] }}:{{ type_main_parts[2] }}{% endcapture %}
          {% endif %}

          {% if settings.type_accent_family contains 'Google' %}
            {% assign type_accent_parts = settings.type_accent_family | split: '_' %}
            {% capture mainGoogleUrl %}{{ mainGoogleUrl }}|{{ type_accent_parts[1] }}:{{ type_accent_parts[2] }}{% endcapture %}
          {% endif %}

          {% if settings.type_meta_family contains 'Google' %}
            {% assign type_meta_parts = settings.type_meta_family | split: '_' %}
            {% capture mainGoogleUrl %}{{ mainGoogleUrl }}|{{ type_meta_parts[1] }}:{{ type_meta_parts[2] }}{% endcapture %}
          {% endif %}

          {% assign mainGoogleUrl = mainGoogleUrl | remove_first: '|' %}

          {{ '//fonts.googleapis.com/css?family=' | append: mainGoogleUrl | stylesheet_tag }}
        {% endif %}

        <!-- icons ================================================== -->
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
        {% include 'buddha-megamenu-before' %}
  {% include 'buddha-megamenu' %}
  {{ content_for_header }}
        <script src="https://code.jquery.com/jquery-latest.min.js"></script>
        {{ 'modernizr.min.js' | asset_url | script_tag }}
        {% if template contains 'customers' %}
          {{ 'shopify_common.js' | shopify_asset_url | script_tag }}
        {% endif %}

        {% if settings.typekit != blank %}
          <script src="https://use.typekit.net/{{ settings.typekit }}.js"></script>
          <script>try{Typekit.load({ async: true });}catch(e){}</script>
        {% endif %}

        <script>
          window.Theme = {};
          Theme.localization = {
            cart: {
              quantity: "{{ 'layout.cart.quantity' | t | escape }}",
              allInCart: "{{ 'layout.cart.all_in_cart' | t | escape }}"
            },
            product: {
              addedToCart: "{{ 'products.product.added_to_cart' | t | escape }}"
            }
          };
        </script>
      
  {% include 'shogun-head' %}
</head>
      <body id="{{ page_title | handle }}" class="{% if customer %}customer-logged-in {% endif %}template-{{ template | replace: '.', ' ' | truncatewords: 2, '' | handle }}" >
  {% include 'buddha-megamenu-wireframe' %}

        {% section 'popout' %}
        {% section 'header' %}

        <main id="mainWrap">
          {{ content_for_layout }}
          {% section 'footer' %}
        </main>

        {{ 'api.jquery.js' | shopify_asset_url | script_tag }}
        {{ 'isotope.js' | asset_url | script_tag }}
        {{ 'jquery.cookie.js' | asset_url | script_tag }}
        {{ 'imagesloaded.pkgd.min.js' | asset_url | script_tag }}
        {{ 'slick.js' | asset_url | script_tag }}
        {{ 'fastclick.min.js' | asset_url | script_tag }}
        {{ 'jquery.hoverIntent.minified.js' | asset_url | script_tag }}
        {{ 'lodash.custom.min.js' | asset_url | script_tag }}
        {{ 'jquery.fitvids.js' | asset_url | script_tag }}

        {% if template contains 'index' %}
          {{ 'moment.js' | asset_url | script_tag }}
        {% endif %}

        {%if template contains 'cart'%}
          {{ 'cart.js' | asset_url | script_tag }}
        {%endif%}
        {% if template contains 'article' or template contains 'product' %}
          {% if settings.social_sharing_blog or settings.social_sharing_products %}
            {{ 'social-buttons.js' | asset_url | script_tag }}
          {% endif %}
        {% endif %}
        {{ 'timber.js' | asset_url | script_tag }}
        {{ 'app.js' | asset_url | script_tag }}
      </body>
    </html>

 

i
Replies
Elle Shopify Employee
Posts:
178
5 days ago

Hi, Luis!

Elle here from Shopify. 

Have you made any recent changes to the code? If so, I'd recommend rolling it back to a previous time! You can do this within any theme file, with the exception of the stylesheet. 

Here's a great guide to assit you with that.

If this does not help, let me know and I'll reach out to you directly to help with further troubleshooting!

Cheers. 

Elle | Shopify
Posts:
2
4 days ago

Thank Elle. 

We didn't change anything since we open the shop 10 months ago. 

So I'm not able to roll back the code.

Do you have any idea?

 

Elle Shopify Employee
Posts:
178
2 days ago

Hi, Luis

Sorry for the delay here. There was an issue with buttons becoming inactive due to a GDPR cookie app (which you seem to have enabled). This issue has since been resolved.

Are you still experiencing the issue on your end? I'm able to add producs to the cart just fine. :)

Let me know as soon as you can! 

Elle | Shopify