• Resolved timamirek

    (@timamirek)


    I have problem after update from WC 7.5 to 7.9. I get wc_cart_fragments_params is not defined error while trying + or – buttons in minicart. Can you help me? Thank you

    wc_cart_fragments_params is not defined from WC version 7.8.0. If I try latest version 7.7.* it works.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hi @timamirek

    I have problem after update from WC 7.5 to 7.9. I get wc_cart_fragments_params is not defined error while trying + or – buttons in minicart. Can you help me? Thank you

    wc_cart_fragments_params is not defined from WC version 7.8.0. If I try latest version 7.7.* it works.

    From what I understand, you’re encountering a “wc_cart_fragments_params is not defined” error after updating from WooCommerce (WC) version 7.5 to 7.9. This error is typically associated with the + or – buttons in the mini cart.

    The Cart Fragments script, responsible for updating the cart widget after a successful add-to-cart event, can cause a performance issue on stores not making use of that functionality. To mitigate this, the script will now only be enqueued if using the Mini Cart widget.

    This change was implemented with WooCommerce 7.8.

    Stores with similar functionality (e.g. from a theme) that are not using the widget can re-enable this functionality by either adding the widget to one of their widget areas/sidebars or by enqueuing the script manually:

    function enqueue_wc_cart_fragments() { wp_enqueue_script( 'wc-cart-fragments' ); }
    add_action( 'wp_enqueue_scripts', 'enqueue_wc_cart_fragments' );

    If you’re looking for an alternative to the Mini Cart widget that does not suffer from the performance issue, try the Mini Cart Block instead.

    You can read more about this change below:

    I hope this is helpful! If you have any more questions or need further assistance, feel free to ask.

Viewing 1 replies (of 1 total)
  • The topic ‘+ and – not working in minicart after update’ is closed to new replies.