Changeset 3027204
- Timestamp:
- 01/26/2024 05:33:28 AM (2 years ago)
- Location:
- ship-depot/trunk
- Files:
-
- 3 edited
-
Ship_Depot_init.php (modified) (2 diffs)
-
helper/class-function-get-data.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ship-depot/trunk/Ship_Depot_init.php
r3026645 r3027204 5 5 * Plugin URI: https://shipdepot.vn/ 6 6 * Description: Ship Depot support shipping couriers in Vietnam like GHN, GHTK, AhaMove. 7 * Version: 1.2.1 27 * Version: 1.2.13 8 8 * Author: ShipDepot.vn 9 9 * Text Domain: ship-depot-translate … … 35 35 36 36 if (!defined('SHIP_DEPOT_VERSION')) { 37 define('SHIP_DEPOT_VERSION', '1.2.1 2');37 define('SHIP_DEPOT_VERSION', '1.2.13'); 38 38 } 39 39 -
ship-depot/trunk/helper/class-function-get-data.php
r3026645 r3027204 23 23 $pk_id = sanitize_text_field($id); 24 24 $pk_size = new Ship_Depot_Package(); 25 $pk_size->Length = str_replace('.', '', sanitize_text_field($this->post_data['shipdepot'][$pk_id]['length'])); 26 $pk_size->Width = str_replace('.', '', sanitize_text_field($this->post_data['shipdepot'][$pk_id]['width'])); 27 $pk_size->Height = str_replace('.', '', sanitize_text_field($this->post_data['shipdepot'][$pk_id]['height'])); 28 $pk_size->Weight = str_replace('.', '', sanitize_text_field($this->post_data['shipdepot'][$pk_id]['weight'])); 25 $length = sanitize_text_field($this->post_data['shipdepot'][$pk_id]['length']); 26 if (!Ship_Depot_Helper::check_null_or_empty($length)) { 27 $pk_size->Length = floatval(str_replace('.', '', $length)); 28 } 29 30 $width = sanitize_text_field($this->post_data['shipdepot'][$pk_id]['width']); 31 if (!Ship_Depot_Helper::check_null_or_empty($width)) { 32 $pk_size->Width = floatval(str_replace('.', '', $width)); 33 } 34 35 $height = sanitize_text_field($this->post_data['shipdepot'][$pk_id]['height']); 36 if (!Ship_Depot_Helper::check_null_or_empty($height)) { 37 $pk_size->Height = floatval(str_replace('.', '', $height)); 38 } 39 40 $weight = sanitize_text_field($this->post_data['shipdepot'][$pk_id]['weight']); 41 if (!Ship_Depot_Helper::check_null_or_empty($weight)) { 42 $pk_size->Weight = floatval(str_replace('.', '', $weight)); 43 } 44 29 45 array_push($list_package_size, $pk_size); 30 46 } 47 Ship_Depot_Logger::wrlog('[get_package_sizes] list_package_size: ' . print_r($list_package_size, true)); 31 48 return $list_package_size; 32 49 } … … 75 92 $receiver->Phone = Ship_Depot_Helper::check_null_or_empty(sanitize_text_field($this->post_data['shipdepot']['receiver']['phone'])) ? '' : sanitize_text_field($this->post_data['shipdepot']['receiver']['phone']); 76 93 } else { 94 // $order = wc_get_order($this->order_id); 95 // $receiver->FirstName = $order->get_shipping_first_name(); 96 // $receiver->LastName = $order->get_shipping_last_name(); 97 // $receiver->Province = $order->get_shipping_city(); 98 // $receiver->District = $order->get_meta('_shipping_district', true); 99 // $receiver->Ward = $order->get_meta('_shipping_ward', true); 100 // $receiver->Address = $order->get_shipping_address_1(); 101 // $receiver->Phone = $order->get_shipping_phone(); 77 102 $receiver->FirstName = Ship_Depot_Helper::check_null_or_empty(sanitize_text_field($this->post_data['_shipping_first_name'])) ? '' : sanitize_text_field($this->post_data['_shipping_first_name']); 78 103 $receiver->LastName = Ship_Depot_Helper::check_null_or_empty(sanitize_text_field($this->post_data['_shipping_last_name'])) ? '' : sanitize_text_field($this->post_data['_shipping_last_name']); -
ship-depot/trunk/readme.txt
r3026645 r3027204 5 5 Tested up to: 6.4.2 6 6 Requires PHP: 7.4.3 7 Stable tag: 1.2.1 27 Stable tag: 1.2.13 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 65 65 66 66 == Changelog == 67 = 1.2.13 = 68 * Sửa một số lỗi nhỏ. 67 69 68 70 = 1.2.12 =
Note: See TracChangeset
for help on using the changeset viewer.