• Hello, I’m writing you because I have an incompatibility problem with a 3rd party plugin (“YITH WOOCOMMERCE BULK PRODUCT EDITING”). I already wrote to YITH support, and they found a solution to let me use both of your plugins, which I need.

    In particular on file “woocommerce-product-price-based-on-countries/woocommerce-product-price-based-on-countries.php” on line 157, instead of:

    $is_ajax_admin = $is_ajax && isset( $_POST[‘action’] ) && in_array( $_POST[‘action’], array( ‘woocommerce_add_variation’, ‘woocommerce_load_variations’, ‘woocommerce_save_variations’, ‘woocommerce_bulk_edit_variations’, ‘inline-save’, ‘woocommerce_add_order_item’, ‘wcpbc_hide_notice’ ) );

    I’d need this code:
    $is_ajax_admin = $is_ajax && isset( $_POST[‘action’] ) && in_array( $_POST[‘action’], array( ‘woocommerce_add_variation’, ‘woocommerce_load_variations’, ‘woocommerce_save_variations’, ‘woocommerce_bulk_edit_variations’, ‘inline-save’, ‘woocommerce_add_order_item’, ‘wcpbc_hide_notice’, ‘yith_wcbep_bulk_edit_products’ ) );

    I would do that by myself, but of course on the next update I’ll miss this fix.

    I’m asking you if you could edit it, I would really appreciate. Of course as a better alternative, if you add a filter in this section to let us edit those parameters with an action would be pretty super too!

    Thanks for the attention, bye.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Oscar Gare

    (@oscargare)

    Hi,
    thank you for your feedback ??
    I’ll add a new filter to the next release that allow fix this issue.

    Thank you again.

    Thread Starter Franco Farnedi

    (@farnedi)

    Hi Oscar, thanks a lot for your answer, I really appreciate that ??
    Do you already know when will you release the update?

    Thanks again.

    Thread Starter Franco Farnedi

    (@farnedi)

    Hello, got any news about the update we talked about on this thread?
    Thanks again.

    Plugin Author Oscar Gare

    (@oscargare)

    Hi,
    I’m working on a new update. When it’s ready, I’ll update this thread with for you can add the code by a hook.

    Thank you.

    Plugin Author Oscar Gare

    (@oscargare)

    Hi,
    version 1.7.11 includes a hook to allow filter “is admin request”. You can add the following snippet to replace the code that you modified.

    function wcbep_is_admin_ajax( $is_admin, $ajax_action ){
        return 'yith_wcbep_bulk_edit_products' === $ajax_action;
    }
    add_filter( 'wc_price_based_country_is_admin_ajax_action', 'wcbep_is_admin_ajax', 10, 2 );

    Regards,
    Oscar.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Incompatibility with 3rd party plugin’ is closed to new replies.