• after updating to the latest Woocommerce and Software License Manager version the plugin is not generating new licenses on new orders.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter michelve

    (@michelve)

    for now i found a temp fix:

    inside: /wc-software-license-manager/includes/purchase.php

    remove the following (from line 63-65):

    		if (wc_slm_is_licensing_enabled($product_id)) {
    			//if ($product->is_downloadable() && $product->has_file()) {
    			if ($product->is_downloadable()) {
    

    and then the closing brackets liens 138 and 140

    a least with this fix, the plugin allows the creation of the license for single and variable products on new orders using the latest WC and WP versions.

    • This reply was modified 7 years, 4 months ago by michelve.
    • This reply was modified 7 years, 4 months ago by michelve.
    Thread Starter michelve

    (@michelve)

    Hello Michel,

    Thank you very much. I will try it and give you feedback.

    Hi!

    I tried your fix, but I still can’t get licenses sent. When an order is completed I get the following result in the mail I get while testing this:
    Notice : post was called incorrectly . Order properties should not be accessed directly. Backtrace: require(‘wp-blog-header.php’), wp, WP->main, WP->parse_request, do_action_ref_array, WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_API->handle_api_requests, do_action(‘woocommerce_api_wc_gateway_paypal’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_Gateway_Paypal_IPN_Handler->check_response, do_action(‘valid-paypal-standard-ipn-request’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_Gateway_Paypal_IPN_Handler->valid_response, call_user_func, WC_Gateway_Paypal_IPN_Handler->payment_status_completed, WC_Gateway_Paypal_Response->payment_complete, WC_Order->payment_complete, WC_Order->save, WC_Order->status_transition, do_action(‘woocommerce_order_status_pending_to_processing’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_Emails::send_transactional_email, do_action_ref_array, WP_Hook->do_action, WP_Hook->apply_fil in wp-includes/functions.php on line 4139

    I have downloaded the latest version from the WordPress plugin directory, but should I try to take a look at the Github page instead?

    Thanks in advance

    Plugin Contributor Anthony Hortin

    (@ahortin)

    I’ve updated this plugin so that it works with the latest WP and WooCommerce versions. I’ve also fixed a number of issues and added some improvements, including the ability to create a debug log.

    @coolfortheblind – I believe I’ve also fixed that issue that you mentioned (which was a similar error to the one that was appearing when viewing the Order Page on your account).

    @michelve – I looked at your version that you created and simply removing those few lines is not really the proper way to fix things. Also, you mentioned that yours works with Variations, but I tested it, and it didn’t. It didn’t added the License checkbox and fields to each variation.

    You can read more details and find a link to the plugin on my repo in this topic.

    You could try my plugin for Software License Manager and WooCommerce. It works great and has more features. It will also allow for renewing license keys at checkout. https://bitbucket.org/fluiditystudio/slm-woocommerce-addon

    I have video tutorials on how to use it as well!

    Here is another alternative:
    https://www.ads-software.com/plugins/woo-license-keys/

    • This reply was modified 6 years, 8 months ago by pirulee.
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Not creating new licenses on new orders’ is closed to new replies.