Changeset 3208837
- Timestamp:
- 12/17/2024 02:00:41 AM (16 months ago)
- Location:
- ship-depot/trunk
- Files:
-
- 5 edited
-
Ship_Depot_init.php (modified) (2 diffs)
-
includes/Address/frontend/class-custom-checkout-fields.php (modified) (1 diff)
-
page/admin/orders/sd-order-detail.php (modified) (3 diffs)
-
page/frontend/sd-checkout-page.php (modified) (1 diff)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ship-depot/trunk/Ship_Depot_init.php
r3166359 r3208837 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 87 * Version: 1.2.19 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 8');37 define('SHIP_DEPOT_VERSION', '1.2.19'); 38 38 } 39 39 -
ship-depot/trunk/includes/Address/frontend/class-custom-checkout-fields.php
r3090008 r3208837 152 152 new Ship_Depot_Custom_fields(); 153 153 } 154 155 156 add_action(157 'woocommerce_blocks_loaded',158 function () {159 $option_ct = array(['value' => -1, 'label' => SD_SELECT_CITY_TEXT]) + Ship_Depot_Address_Helper::get_all_province_key_value_block_checkout(true);160 __experimental_woocommerce_blocks_register_checkout_field(161 array(162 'id' => 'namespace/sd-city',163 'label' => esc_html__('Tỉnh/Thành Phố', 'ship-depot-translate'),164 'required' => true,165 'location' => 'address',166 'type' => 'select',167 'options' => $option_ct168 )169 );170 }171 ); -
ship-depot/trunk/page/admin/orders/sd-order-detail.php
r3090008 r3208837 719 719 $item_data = $item->get_data(); 720 720 $it = new Ship_Depot_Item(); 721 721 //Ship_Depot_Logger::wrlog('[calculate_shipping_init] item_data: ' . print_r($item_data, true)); 722 722 $it->ID = $item_data['id']; 723 723 $it->Name = $item_data['name']; … … 731 731 $it->RegularPrice = $regular_price; 732 732 $item_regular_price_total += floatval($regular_price) * $item->get_quantity(); 733 $it->Length = Ship_Depot_Helper::ConvertToShipDepotDimension($product->get_length()); 734 $it->Width = Ship_Depot_Helper::ConvertToShipDepotDimension($product->get_width()); 735 $it->Height = Ship_Depot_Helper::ConvertToShipDepotDimension($product->get_height()); 736 $it->Weight = Ship_Depot_Helper::ConvertToShipDepotWeight($product->get_weight()); 733 737 // 734 738 array_push($list_items, $it); … … 757 761 // 758 762 Ship_Depot_Logger::wrlog('[calculate_shipping_init] order_id: ' . print_r($order_id, true)); 763 //Ship_Depot_Logger::wrlog('[calculate_shipping_init] data_input: ' . print_r($data_input, true), 99999); 759 764 $url = SHIP_DEPOT_HOST_API . '/Shipping/CalculateShippingAsync'; 760 765 $rs = Ship_Depot_Helper::http_post_php($url, Ship_Depot_Helper::ParseObjectToArray($data_input), array('ShopAPIKey' => $shop_api_key)); -
ship-depot/trunk/page/frontend/sd-checkout-page.php
r3166359 r3208837 601 601 // 602 602 //selected_shipping and selected_courier 603 Ship_Depot_Logger::wrlog('[sd_action_checkout_order_processed]get selected_shipping : ' . print_r(WC()->session->get('selected_shipping'), true));603 Ship_Depot_Logger::wrlog('[sd_action_checkout_order_processed]get selected_shipping from session: ' . print_r(WC()->session->get('selected_shipping'), true)); 604 604 $str_selected_shipping = ''; 605 if (Ship_Depot_Helper::check_null_or_empty(WC()->session->get('selected_shipping'))) { 606 $str_selected_shipping = GetSelectedShippingFromPostData($_POST); 607 } else { 608 $str_selected_shipping = WC()->session->get('selected_shipping'); 609 } 610 Ship_Depot_Logger::wrlog('[sd_action_checkout_order_processed] str_selected_shipping: ' . print_r($str_selected_shipping, true)); 605 $str_selected_shipping = GetSelectedShippingFromPostData($_POST); 606 // if (Ship_Depot_Helper::check_null_or_empty(WC()->session->get('selected_shipping'))) { 607 // $str_selected_shipping = GetSelectedShippingFromPostData($_POST); 608 // } else { 609 // $str_selected_shipping = WC()->session->get('selected_shipping'); 610 // } 611 Ship_Depot_Logger::wrlog('[sd_action_checkout_order_processed] str_selected_shipping from POST: ' . print_r($str_selected_shipping, true)); 611 612 Ship_Depot_Helper::UpdateOrderMetadataWOSave($order, 'sd_selected_shipping', $str_selected_shipping); 612 613 -
ship-depot/trunk/readme.txt
r3166359 r3208837 3 3 Tags: shipping, couriers, ghn, ghtk, aha 4 4 Requires at least: 6.1.1 5 Tested up to: 6. 6.25 Tested up to: 6.7.1 6 6 Requires PHP: 7.4.3 7 Stable tag: 1.2.1 87 Stable tag: 1.2.19 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 11 11 Giải pháp tích hợp giao hàng toàn diện với hàng loạt tiện ích: 12 12 13 - Tích hợp các nhà vận chuyển hàng đầu tại Việt Nam (GHN, GHTK, Ahamove và nhiều khác) cho cửa hàng của bạn một cách dễ dàng.13 - Tích hợp các nhà vận chuyển hàng đầu tại Việt Nam (GHN, GHTK, Ahamove và nhiều khác) cho cửa hàng của bạn một cách dễ dàng. 14 14 - Trang Checkout đơn hàng với hệ thống địa chỉ Việt Nam: Lựa chọn dịch vụ vận chuyển linh hoạt với giá dựa trên khoảng cách và cân nặng từng đơn hàng (có thể điều chỉnh markup so với giá thực tế từ nhà vận chuyển). 15 15 - Sử dụng tài khoản giao hàng của Ship Depot (không phải kí mới với giá cạnh tranh nhất) hoặc tài khoản hiện có của cửa hàng để tối ưu chi phí giao hàng. … … 65 65 66 66 == Changelog == 67 = 1.2.19 = 68 * Sửa một số lỗi nhỏ. 69 * Thêm dịch vụ vận chuyển hàng cồng kềnh cho Giao hàng tiết kiệm. 70 67 71 = 1.2.18 = 68 72 * Sửa lỗi tính phí vận chuyển ở trang thanh toán.
Note: See TracChangeset
for help on using the changeset viewer.