Woocommerce cart fragment-jquery cookie problem

Woocommerce cart fragment-jquery cookie problem

if you are getting Woocommerce cart fragment-jquery cookie problem as shown in the below image.

 

 

You need to add following code to functions.php:

<?php
/* 
* Woocommerce Cookie problem.
* Uncaught TypeError: $.cookie is not a function
*/
add_action( 'wp_print_scripts', 'de_script', 100 );

function de_script() 
{
    wp_dequeue_script( 'wc-cart-fragments' );
    return true;
}
?>