• It seems the new updates 4.5 and 4.5.1 are not displaying the cart content on hover when using WC_Widget_Cart. It limits the execution of the cart-fragments script to specific pages (shop page and products only). It doesn’t make any sense as you’d want to show the cart content on all pages except the cart and checkout pages only…
    Is there a fix coming out ?

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

Viewing 1 replies (of 1 total)
  • Hi there @pierrethenot ??

    Thank you for contacting Woo support, and for your patience! We are experiencing an unusually high volume of support requests at the moment, and that has affected our response times.

    WC_Widget_Cart not displaying content on pages

    I understand you are reporting the cart-fragments script’s execution is limited to specific pages.

    Could you try with the code snippet below, and see if the issue persists, or otherwise, please?

    if ( !wp_script_is( ‘wc-cart-fragments’, ‘enqueued’ ) && wp_script_is( ‘wc-cart-fragments’, ‘registered’ ) ) {
    
    // Enqueue the wc-cart-fragments script
    
    wp_enqueue_script( ‘wc-cart-fragments’ );
    
    }

    It is reported to be tested and working with WooCommerce version 8.0.1.

    A plugin like Code Snippets might be useful for adding scripts to your site.

    I hope this is helpful; let us know how it went! Feel free to let us know if you have any further questions or concerns, also.

Viewing 1 replies (of 1 total)
  • The topic ‘WC_Widget_Cart not displaying content on pages’ is closed to new replies.