• Resolved alfredo1216

    (@alfredo1216)


    Hi,

    I’m having trouble with the WooCommerce mini cart. When I add or delete products, it updates via Ajax in all my open tabs. I want to be able to disable this feature and have the mini cart update only when I refresh the entire page.

    Could you help me? Is there an option or snippet-type code I can use?

    I look forward to your comments, and thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Eduard

    (@cteduard)

    Hello @alfredo1216

    Unfortunately, we do not have an option that could let you disable AJAX for the mini cart. The most I can do is to note this as a feature request for future consideration by our developers, if you’d like.

    Thank you.

    Thread Starter alfredo1216

    (@alfredo1216)

    Hello,

    Great that you’ve noted this for your developers to consider. However, I was testing with some snippets and managed to disable the AJAX for the mini-cart. It now only updates when I reload the page. However, I have a secondary issue: the mini-cart dropdown doesn’t display the content. Could you ask if there’s a way to continue displaying the Blocksy mini-cart?

    add_action('wp_enqueue_scripts', 'desactivar_wc_cart_fragments_en_paginas_criticas', 11);

    function desactivar_wc_cart_fragments_en_paginas_criticas() {
    wp_dequeue_script('wc-cart-fragments');
    wp_deregister_script('wc-cart-fragments');
    }

    Here’s the code I used.

    And images of what the mini-cart content looks like with and without the AJAX code.

    Thanks.

    Eduard

    (@cteduard)

    Hello @alfredo1216

    I wouldn’t recommend disabling cart fragments, as this is a core component of the WooCommerce software which other plugins rely on.

    I have noted this request down. I’m hopeful the developers will be able to implement it in an upcoming update. 🤞

    Thanks.

    Thread Starter alfredo1216

    (@alfredo1216)

    Hello,

    I understand. I’ll wait to see if you can implement it in a future update. Could you let me know if this feature is added?

    Thank you.

    Eduard

    (@cteduard)

    Hello @alfredo1216

    The request has been noted and forwarded to the developers. They will carefully analyse the situation and make the amended changes once the request has gained enough popularity. Please note that this does not mean that the request is guaranteed to be implemented, as the decision remains at the developers’ discretion.

    I will be sure to let you know once things have changed.

    Thanks.

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

The topic ‘Disable Ajax in the WooCommerce Mini Cart’ is closed to new replies.