• Both Subscriptions and your plugin use this hook to insert code into the Product Data metabox:
    woocommerce_product_options_reviews

    When Subscriptions is turned on, it takes over this hook, so your plugin will ONLY work on Subscription products.

    I’ve fixed this temporarily by creating a new hook called:
    do_action( 'woocommerce_product_options_tracking' ); // AA-CUSTOM

    I inserted this in the class-wc-meta-box-product-data.php, around line 740, just after the original hook and closing DIV (since your plugin inserts its own product_options DIV), like this:

    do_action( 'woocommerce_product_options_reviews' );
    
    				echo '</div>';	
    
    					do_action( 'woocommerce_product_options_tracking' ); // AA-CUSTOM

    I then changed line 21 in your plugin to:

    add_action( 'woocommerce_product_options_tracking', array($this, 'product_options') ); // AA-CUSTOM

    However, this is only a temporary fix as it will break with any WooCommerce update. Please find another way to hook in the individual product tracking code!

    Thank you!

    https://wordpress.org/plugins/woocommerce-conversion-tracking/

The topic ‘Conflicts with Subscriptions Plugin – Includes TEMP Fix’ is closed to new replies.