Home Forums WoodMart support forum Product add to cart button won’t stop spinning

Product add to cart button won’t stop spinning

Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
    Posts
  • #424103

    utopiamushrooms.co
    Participant

    My 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 : hello@utopiamushrooms.co

    Thanks!

    #424119

    Hello,

    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

    #424544

    utopiamushrooms.co
    Participant

    Hi Elise, we tried all of the above and the additional tips provided, but the issue still remains.

    #424883

    Hello,

    I have submitted the case to our developers we will get back to you soon.

    Best Regards

    #424967

    Artem Temos
    Keymaster

    Hello,

    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

    #425606

    utopiamushrooms.co
    Participant

    Hi 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?

    #425624

    Artem Temos
    Keymaster

    Hello,

    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

    #425644

    utopiamushrooms.co
    Participant

    Yes, they claim to have deleted that plugin, but it still isn’t working

    #425652

    Artem Temos
    Keymaster

    Please, check if the plugin is no longer active in Dashboard -> Plugins -> Must use.

    Kind Regards

    #425670

    utopiamushrooms.co
    Participant

    Hi Artem, I’m not sure, attached is a screenshot

    Attachments:
    You must be logged in to view attached files.
    #425679

    Artem Temos
    Keymaster

    Yes, it is still activated as we can see from your screenshot.

    #425903

    utopiamushrooms.co
    Participant

    Hey 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

    #426150

    utopiamushrooms.co
    Participant

    Hey 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?

    #426208

    Artem Temos
    Keymaster

    Try 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

    #428652

    utopiamushrooms.co
    Participant

    Hey 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,
    – Michael

    #428685

    Artem Temos
    Keymaster

    Hello,

    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

    #428699

    utopiamushrooms.co
    Participant

    Thanks so much Artem, that seems to have solved the issue!

    You’re the best.

    #428808

    Artem Temos
    Keymaster

    You are always welcome.

    Kind Regards

Viewing 18 posts - 1 through 18 (of 18 total)

The topic ‘Product add to cart button won’t stop spinning’ is closed to new replies.