Changeset 2800258
- Timestamp:
- 10/17/2022 10:40:13 PM (3 years ago)
- Location:
- quick-license-manager/trunk
- Files:
-
- 2 edited
-
Readme.txt (modified) (2 diffs)
-
wc_qlm.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
quick-license-manager/trunk/Readme.txt
r2763155 r2800258 4 4 Requires at least: 4.2 5 5 Tested up to: 6.0.1 6 Stable tag: 2.4. 66 Stable tag: 2.4.7 7 7 License: GPLv2 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 40 40 41 41 == Changelog == 42 43 = 2.4.7 - 10/17/2022 = 44 Tested compatibility with WooCommerce 7.0.0 45 Fixed an issue that caused an incompatibiliy with the WooCommerce Invoice plugin. 42 46 43 47 = 2.4.6 - 07/28/2022 = -
quick-license-manager/trunk/wc_qlm.php
r2763155 r2800258 5 5 * Plugin URI: https://wordpress.org/plugins/quick-license-manager/ 6 6 * Description: Automates the creation of license keys when orders are placed with WooCommerce 7 * Version: 2.4. 67 * Version: 2.4.7 8 8 * Author: Soraco Technologies Inc. 9 9 * Author URI: https://soraco.co … … 61 61 $fieldValue= ''; 62 62 63 foreach ($meta_data as $v) 64 { 65 if($v['name']== $field) 66 { 67 $fieldValue = $v['value']; 68 debug_message (5, $order, $field.': '.$fieldValue); 69 return $fieldValue; 70 } 71 } 63 if (is_array($meta_data) || is_object($meta_data)) 64 { 65 foreach ($meta_data as $v) 66 { 67 if($v['name']== $field) 68 { 69 $fieldValue = $v['value']; 70 debug_message (5, $order, $field.': '.$fieldValue); 71 return $fieldValue; 72 } 73 } 74 } 72 75 } 73 76 … … 89 92 90 93 $meta_data = $item->get_meta(WCPA_ORDER_META_KEY); 94 95 if (is_null($meta_data)) 96 { 97 debug_message (12, $order, __FUNCTION__ , ':metadata is null .'); 98 return ""; 99 } 100 101 102 91 103 // $meta_data this $meta_data will have all the user submited data. 92 104 // You can iterate through this and get the required value 93 105 $fieldValue= ''; 94 106 95 foreach ($meta_data as $v)107 if (is_array($meta_data) || is_object($meta_data)) 96 108 { 97 if($v['name']== $field) 98 { 99 $fieldValue = $v['value']; 100 debug_message (10, $order, __FUNCTION__ , $field.': '.$fieldValue); 101 return $fieldValue; 102 } 103 else 104 { 105 debug_message (11, $order, __FUNCTION__ , $v['name'].': '.$v['value']); 106 } 107 } 109 foreach ($meta_data as $v) 110 { 111 if($v['name']== $field) 112 { 113 $fieldValue = $v['value']; 114 debug_message (10, $order, __FUNCTION__ , $field.': '.$fieldValue); 115 return $fieldValue; 116 } 117 else 118 { 119 debug_message (11, $order, __FUNCTION__ , $v['name'].': '.$v['value']); 120 } 121 } 122 } 108 123 109 124 … … 561 576 562 577 $date_time = date('Y-m-d H:i:s'); 578 $orig_order_id=""; 563 579 564 580 //create order object … … 608 624 $orig_subscription = $subscription; 609 625 610 debug_message(195, $order, __FUNCTION__, 'parent order id:'.$orig_order_id); 626 if (is_null($orig_order_id)) 627 { 628 debug_message(194, $order, __FUNCTION__, 'parent order id: Null'); 629 } 630 else 631 { 632 debug_message(195, $order, __FUNCTION__, 'parent order id:'.$orig_order_id); 633 } 611 634 612 635 // we only support one subscription … … 972 995 $qty = $item['qty']; 973 996 $qlm_activation_key = get_item_addon_value($order, $item, 'qlm_activation_key'); 997 $yearly = 0; 974 998 debug_message(418, $order, __FUNCTION__, 'Activation Key: '.$qlm_activation_key); 975 999 976 1000 debug_message(419, $order, __FUNCTION__, 'Processing simple item:'.$item); 977 1001
Note: See TracChangeset
for help on using the changeset viewer.