src/Hyyan/WPI/Cart.php
/**
     * Replace woo fragments script.
     *
     * To update cart widget when language is switched
     */
Replace woo fragments script.
To update cart widget when language is switched
Replace woo fragments script . To update cart widget when language is switched
public function replaceCartFragmentsScript()
    {
        wp_deregister_script('wc-cart-fragments');
        $suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min';
        wp_enqueue_script(
                'wc-cart-fragments', plugins_url('public/js/Cart' . $suffix . '.js', Hyyan_WPI_DIR), array('jquery', 'jquery-cookie'), Plugin::getVersion(), true
        );
    }
public function replaceCartFragmentsScript ( ) { wp_deregister_script ( 'wc-cart-fragments' ) ; $ suffix = defined ( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min' ; wp_enqueue_script ( 'wc-cart-fragments' , plugins_url ( 'public/js/Cart' . $ suffix . '.js' , Hyyan_WPI_DIR ) , array ( 'jquery' , 'jquery-cookie' ) , Plugin :: getVersion ( ) , true ) ; }
Replace woo fragments script.
Replace woo fragments script .
/* remove the orginal wc-cart-fragments.js and register ours */