It shouldn’t be a very hard task i guess but the problem is as follows:
I’ve done a bit of custom coding. Not written by myself but just copy and pasting code from these kind of forums.
Now when clicking a product variant normally my product image changes to the one wich is linked to that variant. It doesn’t do that anymore, and it also doesn’t let you scroll on pc. Only on mobile.
I’ve tried to resolve this with chatgpt but he says that all obvious files are well set up but there probably went something wrong with some javascript file.
I will pay $50 USD to whoever can fix this issue for me.
My website url is: www.thelightsupplier.com
Every product page has the same issue.
Kind regards,
Mick.
1 Like
There’s a few things that are failing in the theme. I’m not sure if that’s exactly what’s causing your functionality to fail.
Let’s try to fix them one by one and see which ones are really causing the issue.
First can you search for “global.js” in the code editor and you’ll find an extra closing curly brace in it. I don’t know if you added this, but please delete that.
Hi! Thank you for helping me.
I deleted the second extra curly closing bracket at the end of my global.js
file.
Is that the right one? Once again thank you for taking the time to help me
out.
Kind regards,
Mick.
Umm no, not at the end of the file. It was at line 710
Im sorry, im not a coding expert. 
I tried to find it but line 710 is empty.
Will attach a screenshot in this email.
Oh, looking at this, it would be around line 695. Also, did you restore the curly brace you deleted earlier at the end of the file? If not please add it back.
Hi,
Yes i just found it on line 695 indeed.
Removed that, and restored the one at the end of the file that i initially removed.
AND IT WORKED AGAIN!!!
Thank you so much! That’s awesome!
Where can I pay you?
Glad it worked,
I’m not expecting it but it’s all upto you,
Below you can find the link to my Buy me a coffee page, you can enter any amount you want.