• Author
  • #31571


    Please help to fix the problem of long loading button add to cart.
    The site itself works as fast as possible. When I select attribute 1 attribute 2, “add to basket” button is loaded very long. How can this be fixed?
    Updating the quantity in the basket also takes a very long time.
    Link to movie: https://drive.google.com/file/d/1LncXgOJsSsWyVmpWqmVsykd6R6efx2H3/view?usp=sharing
    I’ve been sitting on it for a few days and I do not know what else I can do, please help.

    I am not sure if this is the same problem or new but after clicking add to the shopping cart it’s a long time to reload.
    The product has many variants so the Post_meta table contains many records.
    I think the problem is admin-ajax.php but I can not handle it myself. Come on after adding the code to function.php, I doubt the problem lies with admin-ajax.php. I have to give up my page to Saturday (11.11.2017) and I’m spinning around, I’ve already tried to add to function.php:

    / ** Disable Ajax Call from WooCommerce on front page and posts * /
    add_action (‘wp_enqueue_scripts’, ‘dequeue_woocommerce_cart_fragments’, 11);
    function dequeue_woocommerce_cart_fragments () {
    if (is_front_page ()) || is_single ()) wp_dequeue_script (‘wc-cart-fragments’);
    add_action (‘init’, ‘my_deregister_heartbeat’, 1);
    function my_deregister_heartbeat () {
    global $ pagenow;

    if (‘post.php’! = $ pagenow

You must be logged in to reply to this topic. Click here to login or register