Hello,
I have checked your single product page and see that, jQuery is not define on your site. see here ( https://prnt.sc/Gwx3eyH9udjS ). So fix that jQuery issue. after fixing this issue your add to cart button will work fine.
Thanks,
Hannan
the button is working fine when some one is logged in but not working when clicking without logging in.
Hi @priyanshupokhariya
As @phpcoderhannan mentioned, this issue is because of the missing jquery on that page. You can check that error message in the browser console.
Usually, jquery is loaded from WordPress itself, but in your case, those files are missing, as the request to the standard jquery path is showing a 404 error.
So either reinstall the WordPress (you can do it from WordPress Admin -> Updates page) or replace those missing files from latest downloaded WordPress.
Note: Although the process is simple one click operation, but it is still recommended to take a backup before reinstalling WordPress.
Hello @priyanshupokhariya,
Thank you for reaching out!
I managed to add the product to cart without any issues.
Have you managed to fix the issue? If you have, then please change the thread status to ‘solved’. :)
Cheers!