Plugin Directory

Changeset 2971477


Ignore:
Timestamp:
09/25/2023 05:43:59 PM (3 years ago)
Author:
soraco
Message:

Automatically detect if WooCommerce Custom Product Add-ons is active.

Location:
quick-license-manager/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • quick-license-manager/trunk/Readme.txt

    r2971426 r2971477  
    33Tags: quick license manager, software protection, ecommerce
    44Requires at least: 4.2
    5 Tested up to: 6.1.1
    6 Stable tag: 2.4.14
     5Tested up to: 6.3.1
     6Stable tag: 2.4.15
    77License: GPLv2
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4040
    4141== Changelog ==
     42
     43= 2.4.15 - 09/25/2023 =
     44Automatically detect if WooCommerce Custom Product Add-ons is active.
    4245
    4346= 2.4.14 - 09/25/2023 =
  • quick-license-manager/trunk/classes/qlm_api_view.php

    r2971426 r2971477  
    388388            $qlm_product_addon = get_option( 'qlm_product_addon');
    389389
     390            if (is_plugin_active('woo-custom-product-addons/start.php') == false)
     391            {
     392                debug_message (610, $order, __FUNCTION__ , 'WooCommerce Custom Product Add-on is not installed .');
     393                $qlm_product_addon = false;
     394                update_option( 'qlm_product_addon', $qlm_product_addon );               
     395            }
     396
    390397            $qlm_revoke_when_order_cancelled = get_option( 'qlm_revoke_when_order_cancelled');
    391398            $qlm_revoke_when_subscription_cancelled = get_option( 'qlm_revoke_when_subscription_cancelled');
  • quick-license-manager/trunk/wc_qlm.php

    r2971426 r2971477  
    55 * Plugin URI: https://wordpress.org/plugins/quick-license-manager/
    66 * Description: Automates the creation of license keys when orders are placed with WooCommerce
    7  * Version: 2.4.14
     7 * Version: 2.4.15
    88 * Author: Soraco Technologies Inc.
    99 * Author URI: https://soraco.co
    1010 * WC requires at least: 4.0.0
    11  * WC tested up to: 7.4.0
     11 * WC tested up to: 8.1.1
    1212 */
    1313
     
    2121
    2222//
    23 //Debug Message Next Index: 610
     23//Debug Message Next Index: 615
    2424//
    2525
     
    8989    if ($qlm_product_addon == false)
    9090    {
    91         debug_message (9, $order, __FUNCTION__ , 'Product Add-on support is not enabled.');
     91        debug_message (9, $order, __FUNCTION__ , 'WooCommerce Custom Product Add-on is not enabled.');
    9292        return;
    9393    }
     94
     95    if (is_plugin_active('woo-custom-product-addons/start.php') == false)
     96    {
     97        debug_message (610, $order, __FUNCTION__ , 'WooCommerce Custom Product Add-on is not installed .');
     98        return;
     99    }
     100   
    94101
    95102    $meta_data = $item->get_meta(WCPA_ORDER_META_KEY);
Note: See TracChangeset for help on using the changeset viewer.