Home › Forums › WoodMart support forum › Product add to cart button won’t stop spinning
Product add to cart button won’t stop spinning
- This topic has 17 replies, 3 voices, and was last updated 2 years, 1 month ago by Artem Temos.
-
AuthorPosts
-
November 27, 2022 at 3:18 am #424103
utopiamushrooms.coParticipantMy website built with Woodmart theme has worked for over a year with no problems, but recently the online store stopped working properly, when you are on a product and click “add to cart” it doesn’t stop spinning and doesn’t add the product to your cart. It is very weird that it just stopped working out of nowhere and I can’t seem to figure out why or how to fix it. Can you please help, it seems like a theme issue since all plugins have worked fine with it in the past. Or is there a new updated version of the theme?
Email for direct contact : [email protected]
Thanks!
November 27, 2022 at 6:49 am #424119
Elise NoromitMemberHello,
Thank you very much for choosing our theme and for contacting us.
Unfortunately, I cannot enter the site, as the access is not workable.
Please deactivate all the plugins except these ones:
Slider Revolution
WPBakery Page Builder or Elementor
Woodmart Core
Contact Form 7
MailChimp for WordPress
WooCommerce
Safe SVG
Switch to the parent theme if you use the child.If the problem has gone, activate the plugins one by one, checking the issue to detect which one causes the problem.
Let us know and provide valid access if the issue remains.
Best Regards
November 29, 2022 at 4:31 am #424544
utopiamushrooms.coParticipantHi Elise, we tried all of the above and the additional tips provided, but the issue still remains.
November 30, 2022 at 4:37 am #424883
Elise NoromitMemberHello,
I have submitted the case to our developers we will get back to you soon.
Best Regards
November 30, 2022 at 10:45 am #424967
Artem TemosKeymasterHello,
We found the reason for the add-to-cart problem. It is caused by this plugin https://gyazo.com/ec39f7cdcef1758af850aede7a2da7a1
It seems to be installed by your hosting provider and creates some kind of custom redirect after adding a product to the cart. By doing this, it breaks the AJAX request. Please, contact your hosting provider for help on this matter.Kind Regards
December 2, 2022 at 9:57 am #425606
utopiamushrooms.coParticipantHi Artem, we contacted GoDaddy customer support, and they said they “disabled the object cache” further inquiring,
“can you have theme provider check the issue again?”Would you kindly let us know?
December 2, 2022 at 10:35 am #425624
Artem TemosKeymasterHello,
Do you mean that they disabled that particular plugin? If so, please, check if the add-to-cart works on your website now.
Kind Regards
December 2, 2022 at 11:09 am #425644
utopiamushrooms.coParticipantYes, they claim to have deleted that plugin, but it still isn’t working
December 2, 2022 at 11:23 am #425652
Artem TemosKeymasterPlease, check if the plugin is no longer active in Dashboard -> Plugins -> Must use.
Kind Regards
December 2, 2022 at 1:01 pm #425670
utopiamushrooms.coParticipantHi Artem, I’m not sure, attached is a screenshot
Attachments:
You must be logged in to view attached files.December 2, 2022 at 1:31 pm #425679
Artem TemosKeymasterYes, it is still activated as we can see from your screenshot.
December 3, 2022 at 9:30 am #425903
utopiamushrooms.coParticipantHey Artem, we went back to GoDaddy hosting and made some more advances as per request.
Can you let us know how it’s looking from your end now?
… the problem is still the same
December 5, 2022 at 2:05 am #426150
utopiamushrooms.coParticipantHey folks, we’ve done everything you said, everything GoDaddy customer support send. The back and forth isn’t really working at this point, we’re three weeks without a website.. what can we do?
December 5, 2022 at 10:27 am #426208
Artem TemosKeymasterTry to add the following PHP code snippet to the child theme functions.php file to fix this
add_filter('woocommerce_add_to_cart_redirect', function( $url ) { if( strpos( $url, 'product-added-to-cart' ) > 0) { return ''; } return $url; }, PHP_INT_MAX);
Kind Regards
December 14, 2022 at 5:08 am #428652
utopiamushrooms.coParticipantHey Artem, the code snippet actually worked and got the site back up and running properly, however, we tried to use Klaviyo (mailchimp type site) “sign up to save” pop-ups and now the problem has returned.
So back to square one, any info would be greatly appreciated,
Thank you,
– MichaelDecember 14, 2022 at 10:25 am #428685
Artem TemosKeymasterHello,
Try to replace it with the following one instead
add_filter('woocommerce_add_to_cart_redirect', function( $url ) { if( strpos( $url, 'product-added-to-cart' ) > 0 || strpos( $url, 'product_added_to_cart' ) > 0) { return ''; } return $url; }, PHP_INT_MAX);
Kind Regards
December 14, 2022 at 11:00 am #428699
utopiamushrooms.coParticipantThanks so much Artem, that seems to have solved the issue!
You’re the best.
December 14, 2022 at 3:29 pm #428808
Artem TemosKeymasterYou are always welcome.
Kind Regards
-
AuthorPosts
The topic ‘Product add to cart button won’t stop spinning’ is closed to new replies.
- You must be logged in to create new topics. Login / Register