Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • multiple JS issues in admin for me also – reverted back to 5.4.2 until I know 5.5 won’t break everything.

    Hi,

    I had/have the very same issue – on multisite, latest WP & Woo. Woo is network activated.

    I had a look at the plugin code and it appears that the initial check for an active Woocommerce plugin in “class-sfa-woocommerce-abandoned-carts.php” doesn’t work correctly on my installation.

    The line

    “if (in_array(‘woocommerce/woocommerce.php’, apply_filters(‘active_plugins’, get_option(‘active_plugins’)))) {”

    doesn’t seem to work on my multi-site install, resulting in the plugin not getting loaded.

    As a workaround, (not upgrade safe), I added a function to check the WC_VERSION constant, which WooCommerce defines, once all plugins have loaded.

    I then replaced the problem line with a call to that function.

    function check_for_woocommerce() {
    if (!defined(‘WC_VERSION’)) {
    return false;
    } else {
    return true;
    }
    }

    if ( check_for_woocommerce() ) {
    add_action(‘admin_menu’, ‘sfa_add_plugin_menu_item’);
    etc, etc..

    the plugin works correctly on my installation now.

Viewing 2 replies - 1 through 2 (of 2 total)