Plugin Directory

Changeset 3466628


Ignore:
Timestamp:
02/21/2026 10:44:01 PM (6 weeks ago)
Author:
kirillbdev
Message:

Release 1.21.5

Location:
wc-ukr-shipping
Files:
430 added
3 edited

Legend:

Unmodified
Added
Removed
  • wc-ukr-shipping/trunk/readme.txt

    r3466578 r3466628  
    66Requires PHP: 7.4
    77Tested up to: 6.9
    8 Stable tag: 1.21.4
     8Stable tag: 1.21.5
    99
    1010Connect Nova Poshta, Ukrposhta, Meest or international delivery services with your store. Create labels, track orders and calculate rates in one place.
     
    111111== Changelog ==
    112112
     113= Version 1.21.5 / (22.02.2026) =
     114* International shipping improvements.
     115
    113116= Version 1.21.4 / (21.02.2026) =
    114117* [UkrPoshta] Added ability to create international shipping labels.
  • wc-ukr-shipping/trunk/src/Modules/Backend/OptionsPage.php

    r3466578 r3466628  
    256256        }
    257257        // Check UkrPoshta Intl flow
    258         if ($shippingMethod !== null && $shippingMethod->get_method_id() === WCUS_SHIPPING_METHOD_UKRPOSHTA_ADDRESS) {
    259             if ($order->get_billing_country() !== 'UA') {
    260                 $this->processPurchaseLabelV2($order, $shippingMethod);
     258        if (
     259            ($shippingMethod !== null && $shippingMethod->get_method_id() === WCUS_SHIPPING_METHOD_UKRPOSHTA_ADDRESS)
     260            || ($_GET['carrier'] ?? null) === 'ukrposhta'
     261        ) {
     262            if ($order->get_billing_country() !== 'UA' || $order->get_shipping_country() !== 'UA') {
     263                $this->processPurchaseLabelV2($order, $shippingMethod, $_GET['carrier'] ?? null);
    261264                return;
    262265            }
     
    323326    }
    324327
    325     public function processPurchaseLabelV2(\WC_Order $order, \WC_Order_Item_Shipping $orderShipping): void
     328    public function processPurchaseLabelV2(\WC_Order $order, \WC_Order_Item_Shipping $orderShipping, ?string $carrierSlug = null): void
    326329    {
    327330        wp_enqueue_script(
     
    333336        );
    334337
    335         $carrier = SmartyParcelHelper::getCarrierFromShippingMethod($orderShipping->get_method_id());
     338        if ($carrierSlug !== null) {
     339            $carrier = $carrierSlug;
     340        } else {
     341            $carrier = SmartyParcelHelper::getCarrierFromShippingMethod($orderShipping->get_method_id());
     342        }
     343
    336344        if ($carrier === null) {
    337345            esc_html_e('Unable to detect carrier for order', 'wc-ukr-shipping-i18n');
  • wc-ukr-shipping/trunk/wc-ukr-shipping.php

    r3466578 r3466628  
    44 * Plugin URI: https://smartyparcel.com
    55 * Description: Multi-carrier shipping solution for WooCommerce
    6  * Version: 1.21.4
     6 * Version: 1.21.5
    77 * Author: kirillbdev
    88 * License: GPLv3
Note: See TracChangeset for help on using the changeset viewer.