• 1). Why no option to check “Product Reference” on activation/deactivation action?
    Now I use code:

    
    // check "Product Reference" on the activation/deactivation of a license key
    add_action('slm_api_listener_slm_activate', 'check_license_and_product_on_slm' );
    add_action('slm_api_listener_slm_deactivate', 'check_license_and_product_on_slm' );
    function check_license_and_product_on_slm() {
       if (isset($_REQUEST['item_reference'])) {
          $product_ref = sanitize_text_field(urldecode($_REQUEST['item_reference']));
          $key = trim(strip_tags($_REQUEST['license_key']));
    
          global $wpdb;
          $tbl_name = SLM_TBL_LICENSE_KEYS;
          $sql_prep1 = $wpdb->prepare("SELECT * FROM $tbl_name WHERE license_key = %s", $key);
          $retLic = $wpdb->get_row($sql_prep1, OBJECT);
    
          if ($retLic && $retLic->product_ref != $product_ref) {
             $args = (array('result' => 'error', 'message' => 'Your license key was not issued for this product'));
             SLM_API_Utility::output_api_response($args);
          }
       }
    }
    

    Any license code for any product – bad idea.

    2). Please change options “Maximum Allowed Domains” and “Manual Reset Count” from “text” to “number”.

    3). Please add possibility to unset “Date of Expiry” or set default value.

Viewing 1 replies (of 1 total)
  • Plugin Support mbrsolution

    (@mbrsolution)

    Hi, thank you for reaching out to us. I have submitted a message to the developers to investigate further your request.

    Thank you

Viewing 1 replies (of 1 total)
  • The topic ‘Product Reference’ is closed to new replies.