• Hi there, I’m getting a missing dependencies error for the yith-wlcl-main handle.

    Dependencies: jquery-selectBox, woocommerce_prettyPhoto_css (missing)

    How can I resolve this?

Viewing 1 replies (of 1 total)
  • Hello there,
    thanks for contacting us!

    Please try adding this code in the functions.php file of your active theme:

    if (!function_exists('yith_wcwl_enqueue_back_required_assets')) {
    function yith_wcwl_enqueue_back_required_assets()
    {
    $suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min';
    $version = defined('WC_VERSION') ? WC_VERSION : '';

    wp_enqueue_style('woocommerce_prettyPhoto_css', plugins_url('assets/css/prettyPhoto.css', WC_PLUGIN_FILE), array(), $version);
    wp_enqueue_script('prettyPhoto', plugins_url('assets/js/prettyPhoto/jquery.prettyPhoto' . $suffix . '.js', WC_PLUGIN_FILE), array('jquery'), '3.1.6');
    wp_enqueue_script('prettyPhoto-init', plugins_url('assets/js/prettyPhoto/jquery.prettyPhoto.init' . $suffix . '.js', WC_PLUGIN_FILE), array('jquery'), $version);

    wp_enqueue_style('yith-wcwl-main', YITH_WCWL_URL . 'assets/css/style.css', array('jquery-selectBox'));
    }
    add_action('wp_enqueue_scripts', 'yith_wcwl_enqueue_back_required_assets', 100);
    }

    Could you check it?

    Best regards.

Viewing 1 replies (of 1 total)

The topic ‘Missing dependencies’ is closed to new replies.