Changeset 3157196
- Timestamp:
- 09/25/2024 02:22:50 AM (18 months ago)
- Location:
- jt-express/trunk
- Files:
-
- 6 edited
-
admin/class-jnt-admin.php (modified) (1 diff)
-
admin/class-jnt-cancel-order.php (modified) (2 diffs)
-
admin/class-jnt-order.php (modified) (4 diffs)
-
includes/class-jnt-api.php (modified) (1 diff)
-
includes/class-jnt-helper.php (modified) (1 diff)
-
jnt.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
jt-express/trunk/admin/class-jnt-admin.php
r3145050 r3157196 26 26 $plugins = get_plugins(); 27 27 $current_version = $plugins[$plugin_slug]['Version']; 28 $latest_version = '2.0.1 2';28 $latest_version = '2.0.13'; 29 29 30 30 if (version_compare($current_version, $latest_version, '<')) { -
jt-express/trunk/admin/class-jnt-cancel-order.php
r3059538 r3157196 55 55 56 56 $detail = json_decode($details['detail'], true); 57 foreach ($detail as $d) { 58 $awb_no = $d[0]['awb_no'];59 $status = $d[0]['status'];60 $reason = $d[0]['reason'];61 } 57 58 $awb_no = $detail['details'][0]['awb_no']; 59 $status = $detail['details'][0]['status']; 60 $reason = $detail['details'][0]['reason']; 61 62 62 63 63 if ($status == 'success') { … … 74 74 $redirect_to = add_query_arg(array( 75 75 'acti' => 'cancel', 76 ' status' => $status,76 'msg' => $status, 77 77 'reasons' => $reasons, 78 78 ), $redirect_to); -
jt-express/trunk/admin/class-jnt-order.php
r3145050 r3157196 61 61 $stt = array(); 62 62 $result = array(); 63 $print_ids = array(); 63 64 64 65 foreach ($post_ids as $post_id) { … … 100 101 101 102 if ($awb) { 103 $print_ids[] = $id; 102 104 $order = wc_get_order($id); 103 105 $order->add_order_note("Tracking number: " . $awb); … … 112 114 array_push($stt, $status); 113 115 } 116 117 $this->jnt_helper->process_print_thermal($print_ids); 114 118 115 119 $redirect_to = add_query_arg(array( … … 291 295 echo "<div id='message' class='updated fade'>"; 292 296 echo "<p>"; 293 echo $_REQUEST[' status'];297 echo $_REQUEST['msg']; 294 298 echo "</p>"; 295 299 echo "</div>"; -
jt-express/trunk/includes/class-jnt-api.php
r3145050 r3157196 137 137 header('Content-Disposition: attachment; filename="' . substr($awbs, 0, 100) . '.pdf"'); 138 138 header('Content-Length: ' . strlen($pdf_content)); 139 139 ob_clean(); 140 flush(); 140 141 echo $pdf_content; 141 142 exit; -
jt-express/trunk/includes/class-jnt-helper.php
r3145050 r3157196 87 87 $cod = 0; 88 88 $subtotal = $order->get_subtotal(); 89 $total = $order->get_total(); 89 90 if ('cod' == $order->get_payment_method()) { 90 $cod = $ subtotal;91 $cod = $total; 91 92 } 92 93 -
jt-express/trunk/jnt.php
r3145050 r3157196 5 5 Description: WooCommerce integration for J&T Express Malaysia. 6 6 Author: woocs 7 Version: 2.0.1 27 Version: 2.0.13 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt … … 14 14 } 15 15 16 define('JNT_VERSION', '2.0.1 2');16 define('JNT_VERSION', '2.0.13'); 17 17 define('JNT_PLUGIN_DIR', plugin_dir_path(__FILE__)); 18 18
Note: See TracChangeset
for help on using the changeset viewer.