All things Shopify and commerce
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
Solved! Go to the solution
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.
Hello @Morgans
the two errors appearing in the console need to be resolved. We will have to check the JavaScript code to fix them.
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.
Discover how to increase customer engagement on your store with articles from Shopify A...
By Jacqui Apr 23, 2025Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025