• Doesn’t work on WordPress 5.4 multisite, Woocommerce 4.0.1. Doesn’t appear Unite of Measure on Products/Inventory tab ?? Any advice?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • I have the same problem, WP 5.4.1, WC 4.1

    Problem is that this plugin does not work on multisite because it does not correctly detect the installed woocommerce (the used detection method does not work on multisite)
    The good news is that the plugin uses the correct WP methods to store the data, so it is in principal ready for multisite, you just have to get around the activation problem.

    One way to do this is to change the if statement in line 45 of woocommerce-unit-of-measure.php to

    include_once( ABSPATH . ‘wp-admin/includes/plugin.php’ );
    if ( is_plugin_active( ‘woocommerce/woocommerce.php’) ) {

    this should detect the woocommerce plugin correctly and activate the uom plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Plugin doesn’t work’ is closed to new replies.