Why isn't the add to cart button functioning properly?

Solved

Why isn't the add to cart button functioning properly?

VicenteM
Visitor
2 0 0

Hi, I have a problem with the add/remove to cart buttons, when you click on them they appear with the loading icon and do nothing. Since is not my store and I'm just helping the owner to fix some things I don't have a lot of information in regards of what changes have been made to store since its creation, but by reviewing the code, the parts of the code that had something to do with the cart button haven´t been edited or changed. Anyone can help me figure this out please? This is the link to the store if you want to check out the problem https://josmartshop.com.

Thanks for your time!

 

Accepted Solution (1)

GemPages
Shopify Partner
5625 1262 1279

This is an accepted solution.

Hi @VicenteM 

 

I found a syntax error in the global.js file. It may cause this problem.

GemPages_0-1669532624092.png

 

You can follow the steps to fix it:

1. Go to Online Store -> Theme -> Edit code https://prnt.sc/NIubHkOJxV7S
2. Open global.js or global.js.liquid file on Assets folder https://prnt.sc/Nt5CWQc9bExH
3. On line 101, remove the "}" character. Then save the file.

GemPages_1-1669533566087.png

 

I hope you can fix the problem by the above.

Best regards,
GemPages Support Team

GemPages - Build any high-converting store pages for any business


- If you find my reply helpful, please hit Like and Mark as Solution
- Get connected: App Store | Blog | Community | Help Center

View solution in original post

Replies 4 (4)

GemPages
Shopify Partner
5625 1262 1279

This is an accepted solution.

Hi @VicenteM 

 

I found a syntax error in the global.js file. It may cause this problem.

GemPages_0-1669532624092.png

 

You can follow the steps to fix it:

1. Go to Online Store -> Theme -> Edit code https://prnt.sc/NIubHkOJxV7S
2. Open global.js or global.js.liquid file on Assets folder https://prnt.sc/Nt5CWQc9bExH
3. On line 101, remove the "}" character. Then save the file.

GemPages_1-1669533566087.png

 

I hope you can fix the problem by the above.

Best regards,
GemPages Support Team

GemPages - Build any high-converting store pages for any business


- If you find my reply helpful, please hit Like and Mark as Solution
- Get connected: App Store | Blog | Community | Help Center
VicenteM
Visitor
2 0 0

It completely solved the problem, thank you so much!

GemPages
Shopify Partner
5625 1262 1279

I am glad that my solution is helpful to you 😁.

GemPages - Build any high-converting store pages for any business


- If you find my reply helpful, please hit Like and Mark as Solution
- Get connected: App Store | Blog | Community | Help Center

KanishkT
Shopify Partner
33 0 11

Hey @VicenteM,

I just read that you were able to fix this issue. But, if such problems arise in your store in the future and you don't notice it on time, you may lose a lot of sales and revenue.

To continuously monitor your store and test against issues like add-to-cart, checkout not working, and customer login errors, you can use a Shopify monitoring app like Store Watchers. They currently offer a free plan that lets you run automated tests every 24 hours and more features.

I hope this helps 🙂

Marketing Manager at Wholesale Helper
App Store - https://apps.shopify.com/partners/goldj
Website - https://wholesalehelper.io/