Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Yordan Soares

    (@yordansoares)

    Hi @areklam,

    This subject has been discussed here. In brief, we have added a filter that you can use to force the WooCommerce installation check, returning true:

    /**
     * PDF Invoices & Packing Slips for WooCommerce:
     * Forces the value returned by the WooCommerce check as true.
     */
    add_filter( 'wpo_wcpdf_is_woocommerce_activated', '__return_true' );

    If you haven’t worked with code snippets (actions/filters) or functions.php before, read this guide: How to use filters

    Thread Starter areklam

    (@areklam)

    I’ve tried that filter without success. I could not get it to actually trigger.

    Not sure if this is some incompatibility with Roots Sage, but I could not get this message to appear, but if I use a normal WordPress hook like init I could see the test message:

    add_filter('wpo_wcpdf_is_woocommerce_activated', function () {
       die(var_dump('test'));
    });
    Plugin Contributor Yordan Soares

    (@yordansoares)

    Did you try adding the code snippet in a functions file within /wp-content/mu-plugins?

    Thread Starter areklam

    (@areklam)

    That actually worked.

    I would have thought adding the filter to the theme would be enough, especially since only WooCommerce is a MU plugin and not this plugin. Anyways, thanks for helping out ??

    Plugin Contributor Yordan Soares

    (@yordansoares)

    I’m glad to hear that it worked now!

    If you don’t mind and have the time, do you think you could leave us a review?

    Thanks in advance and all the best with your store!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WooCommerce as MU-plugin’ is closed to new replies.