Ride theme - adding to cart is not working.

Solved

Ride theme - adding to cart is not working.

Morgans
Excursionist
28 0 2

Morning, 
About to make this website live and we have noticed every time you try adding something to the cart it just spins and spins and never loads or makes it way to the cart successfully. 
I am using the ride theme, I have tried updating it to the latest version and the same thing is happening. 
Any help in sorting it would be appreciated. 
I've checked my apps which are in the store too and none of them touch the product page or side of things at all. 

 

https://www.morgansdoorsandfloors.co.uk/
PW is Jack

Accepted Solution (1)

tim
Shopify Partner
4336 502 1590

This is an accepted solution.

At the bottom of your layouts/theme.liquid you have this code:

      window.accessibilityStrings = {
        imageAvailable: `Image [index] is now available in gallery view`,
        shareSuccess: `Link copied to clipboard`,
        pauseSlideshow: `Pause slideshow`,
        playSlideshow: `Play slideshow`,
        recipientFormExpanded: `Gift card recipient form expanded`,
        recipientFormCollapsed: `Gift card recipient form collapsed`,
        countrySelectorSearchCount: `[count] countries/regions found`,
      };
}
    </script>

    {%- if settings.predictive_search_enabled -%}
      <script src="{{ 'predictive-search.js' | asset_url }}" defer="defer"></script>
    {%- endif -%}

The line above the </script> tag should be deleted -- this is a single extra curly brace which causes the JS error in console, as mentioned by @devcoders and prevents your theme JS from working properly.

 

If my post is helpful, consider liking it -- it will help others with similar problem to find a solution.
I can be reached via e-mail tairli@yahoo.com

View solution in original post

Replies 2 (2)

devcoders
Shopify Partner
1326 157 379

Hello @Morgans 
the two errors appearing in the console need to be resolved. We will have to check the JavaScript code to fix them.


devcoders_0-1742648041403.png

 

Shopify Developer: Helping eCommerce Stores
If you need assistance with your store, feel free to contact us at devcodersp@gmail.com
WhatsApp No: +91 8516919310 If my assistance was helpful, please consider liking and accepting the solution. Thank you!

tim
Shopify Partner
4336 502 1590

This is an accepted solution.

At the bottom of your layouts/theme.liquid you have this code:

      window.accessibilityStrings = {
        imageAvailable: `Image [index] is now available in gallery view`,
        shareSuccess: `Link copied to clipboard`,
        pauseSlideshow: `Pause slideshow`,
        playSlideshow: `Play slideshow`,
        recipientFormExpanded: `Gift card recipient form expanded`,
        recipientFormCollapsed: `Gift card recipient form collapsed`,
        countrySelectorSearchCount: `[count] countries/regions found`,
      };
}
    </script>

    {%- if settings.predictive_search_enabled -%}
      <script src="{{ 'predictive-search.js' | asset_url }}" defer="defer"></script>
    {%- endif -%}

The line above the </script> tag should be deleted -- this is a single extra curly brace which causes the JS error in console, as mentioned by @devcoders and prevents your theme JS from working properly.

 

If my post is helpful, consider liking it -- it will help others with similar problem to find a solution.
I can be reached via e-mail tairli@yahoo.com