Plugin Directory

Changeset 3208837


Ignore:
Timestamp:
12/17/2024 02:00:41 AM (16 months ago)
Author:
shipdepot
Message:

Update version 1.2.19

Location:
ship-depot/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • ship-depot/trunk/Ship_Depot_init.php

    r3166359 r3208837  
    55 * Plugin URI:        https://shipdepot.vn/
    66 * Description:       Ship Depot support shipping couriers in Vietnam like GHN, GHTK, AhaMove.
    7  * Version:           1.2.18
     7 * Version:           1.2.19
    88 * Author:            ShipDepot.vn
    99 * Text Domain:       ship-depot-translate
     
    3535
    3636if (!defined('SHIP_DEPOT_VERSION')) {
    37     define('SHIP_DEPOT_VERSION', '1.2.18');
     37    define('SHIP_DEPOT_VERSION', '1.2.19');
    3838}
    3939
  • ship-depot/trunk/includes/Address/frontend/class-custom-checkout-fields.php

    r3090008 r3208837  
    152152    new Ship_Depot_Custom_fields();
    153153}
    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_ct
    168             )
    169         );
    170     }
    171 );
  • ship-depot/trunk/page/admin/orders/sd-order-detail.php

    r3090008 r3208837  
    719719        $item_data = $item->get_data();
    720720        $it = new Ship_Depot_Item();
    721 
     721        //Ship_Depot_Logger::wrlog('[calculate_shipping_init] item_data: ' . print_r($item_data, true));
    722722        $it->ID = $item_data['id'];
    723723        $it->Name = $item_data['name'];
     
    731731        $it->RegularPrice = $regular_price;
    732732        $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());
    733737        //
    734738        array_push($list_items, $it);
     
    757761    //
    758762    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);
    759764    $url = SHIP_DEPOT_HOST_API . '/Shipping/CalculateShippingAsync';
    760765    $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  
    601601    //
    602602    //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));
    604604    $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));
    611612    Ship_Depot_Helper::UpdateOrderMetadataWOSave($order, 'sd_selected_shipping', $str_selected_shipping);
    612613
  • ship-depot/trunk/readme.txt

    r3166359 r3208837  
    33Tags: shipping, couriers, ghn, ghtk, aha
    44Requires at least: 6.1.1
    5 Tested up to: 6.6.2
     5Tested up to: 6.7.1
    66Requires PHP: 7.4.3
    7 Stable tag: 1.2.18
     7Stable tag: 1.2.19
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    1111Giải pháp tích hợp giao hàng toàn diện với hàng loạt tiện ích:
    1212
    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.
    1414- 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).
    1515- 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.
     
    6565
    6666== 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
    6771= 1.2.18 =
    6872* 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.