• Resolved ArcticFritid

    (@metuza)


    Is there any known issues with filter woocommerce_add_to_cart_fragments ?

    I have used it for many years adding a overweight shipping message in cart and checkout for 2 of my websites, but now it does no longer work.

    So i did a test on my third website today, just adding a simple message but only the placeholder appear, nothing from fragments.

    Brgds

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Sandip Mondal – a11n

    (@sandipmondal)

    Hi @metuza,

    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:

    Should you have any further questions, please let me know. We are here to help!

    Thread Starter ArcticFritid

    (@metuza)

    Thank you, then it makes sense ??

    Brgds
    Rune

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Any known issues with filter woocommerce_add_to_cart_fragments ?’ is closed to new replies.