• Hi,

    After updating to wordpress 5.9 (not sure if related) I noticed the quantity update in the cart on my site is not clearing the loading / spinning screen after successful updates.

    This happens on both the plus minus quantity buttons and entering text into the quantity field.

    The quantity is updated correctly if the page is refreshed, but the loading / spinning icons never clear correctly causing the cart to be properly visible again.

    I’ve disabled all other plugins and the issue persists, any ideas what I can troubleshoot? thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter bobezac

    (@bobezac)

    Issue appears to be related to ajax not returning correctly

    I’ve managed to temporarily fix it by adding the loading clear at the end here:

    
    function woofc_update_qty(cart_item_key, cart_item_qty) {
      woofc_cart_loading();
    
      var data = {
        action: 'woofc_update_qty',
        cart_item_key: cart_item_key,
        cart_item_qty: cart_item_qty,
        security: woofc_vars.nonce,
      };
    
      jQuery.post(woofc_vars.ajaxurl, data, function(response) {
        woofc_cart_reload();
    
        jQuery(document.body).
            trigger('woofc_update_qty', [cart_item_key, cart_item_qty]);
      });
    }
    
    function woofc_update_qty(cart_item_key, cart_item_qty) {
      woofc_cart_loading();
    
      var data = {
        action: 'woofc_update_qty',
        cart_item_key: cart_item_key,
        cart_item_qty: cart_item_qty,
        security: woofc_vars.nonce,
      };
    	
      jQuery.post(woofc_vars.ajaxurl, data, function(response) {
        woofc_cart_reload();
    
        jQuery(document.body).trigger('woofc_update_qty', [cart_item_key, cart_item_qty]);
    	  
    	  woofc_cart_loaded();
    	  
      });
    }
    

    Hi @bobezac

    I have ran into this exact same issue today. I’m not able to locate the file with the above code in it. Any chance you could tell me the filename please?

    It is completely breaking the usability of the site, so if anyone else has this issue then it needs some dev attention IMHO.

    Shame, as I’m really happy with how it all works and was looking at pro version, but then noticed this. Deal breaker for me.

    Thread Starter bobezac

    (@bobezac)

    Hi @stuygoy27,

    I actually stopped using this plugin so I can’t check, but from memory it should be located in one of the included javascript asset files.

    If you want a similar plugin thats up to date, I recommend “XT Floating Cart for WooCommerce” although it is paid for a lot of the useful settings unless you know your way around PHP.

    Kind Regards,
    Bobez

    Thanks for commenting back. Had a dig around in there and don’t see it.

    I’ll checkout that other plugin, as we cant go live with something that doesnt work.

    Same old, looks good then small thing makes it impossible and waste of time.

    Thanks

    Thread Starter bobezac

    (@bobezac)

    @stuygoy27,

    I downloaded the source to check, the above begins on line 361 of “woo-fly-cart\assets\js\frontend.js” if you want to have a look, but there were a lot of other issues I was having with this cart which made me change, so I’m not sure if just the above is enough to make it work perfect.

    Kind Regards,
    Bobez

    I appreciate that Bobez. I found it but didnt fix it for me.

    I’ll try something else.

    Take care

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Quantity update not clearing loading symbol class’ is closed to new replies.