Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
When I add items to my cart and then clear it, the next time I add items, the cart remains empty. I have to refresh the page for the items to appear. Additionally, when the cart is empty, I receive a script error.
Uncaught (in promise) TypeError: Cannot read properties of null (reading 'parentNode')
at gsp-spf.min.js?sfid=0c4f0b7c-a09b-48c8-bf0f-b9de838af8b1&shop=luxury-hotel-robes.myshopify.com:1:10064
at Array.forEach (<anonymous>)
at gsp-spf.min.js?sfid=0c4f0b7c-a09b-48c8-bf0f-b9de838af8b1&shop=luxury-hotel-robes.myshopify.com:1:9991
Well this is happening because as some bug in your code stops the cart to load asynchronously. So the function does work but not updating instantly.
I have had a few projects as this. Just need to debug the code and find where the error is coming that stops from just the cart to update instantly so you will not need to refresh the page.
Please reach out via mail for a convenient conversation and collaboration.
Best
Shadab
Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024