• Resolved Oleg

    (@submedia)


    Hi!

    If you faced with “Uncaught ReferenceError: Cookies is not defined” to fix that add the following to you theme functions.php

    add_action( 'wp_enqueue_scripts', 'replaceCartFragmentsScript', 100 );
    function replaceCartFragmentsScript() {
    	$suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min';
    	wp_deregister_script('wc-cart-fragments');
    	wp_enqueue_script( 'wc-cart-fragments', plugins_url( 'public/js/Cart' . $suffix . '.js', Hyyan_WPI_DIR ), array( 'jquery', 'js-cookie' ), '1.5.0', true );
    }

The topic ‘Uncaught ReferenceError: Cookies is not defined’ is closed to new replies.