Support » Plugin: License Manager for WooCommerce » WooCommerce Subscription — Active orders

  • Resolved Sébastien SERRE



    When using WooCommerce Subscription, orders paid are “active” and not “complete” so no license key are generated…

    Is there any way to generate a license key on an active order ans not only on complete order ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • Sébastien SERRE


    Sorry to disturb you, I remove_action from your Order Class and add_action on another hook,

    Plugin Author Drazen Bebic


    Hello @sebastienserre

    thank you for your message and for using my plugin.

    The plugin is not yet integrated into WooCommerce Subscriptions, so it probably won’t work out of the box without some tweaks. You seem to already have figured it out though.

    Could you please post your changes here so that other users, who have the same problem, can fix it themselves as well?

    Sébastien SERRE


    of course, I added

    use LicenseManagerForWooCommerce\Integrations\WooCommerce\Order;
    if ( ! defined( 'ABSPATH' ) ) {
    } // Exit if accessed directly.
    if ( class_exists( 'WC_Subscriptions' ) ){
    	$order = new Order();
    	remove_action( 'woocommerce_order_status_completed', array( $order , 'generateOrderLicenses' ) );
    	add_action( 'woocommerce_order_status_processing', array( $order, 'generateOrderLicenses' ) );

    on a custom plugin but I think, it can be added to the functions.php of a theme

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WooCommerce Subscription — Active orders’ is closed to new replies.