Plugin Directory

Changeset 3382638


Ignore:
Timestamp:
10/22/2025 01:24:52 PM (5 months ago)
Author:
montonio
Message:

Update to version 9.1.5 from GitHub

Location:
montonio-for-woocommerce
Files:
32 edited
1 copied

Legend:

Unmodified
Added
Removed
  • montonio-for-woocommerce/tags/9.1.5/assets/css/montonio-admin-style.css

    r3381865 r3382638  
    552552
    553553.order-status.status-mon-label-printed {
    554   background: #D6D1F8;
    555   color: #442DD2;
     554  background: #f0ebff;
     555  color: #260071;
    556556}
    557557
     
    623623  color: #e9283f;
    624624}
    625 .order-status.montonio-shippment-status--labelPrinted,
    626 .montonio-shipping-panel__status--labelPrinted {
     625.order-status.montonio-shippment-status--labelsCreated,
     626.montonio-shipping-panel__status--labelsCreated {
    627627  background-color: #f0ebff;
    628628  color: #260071;
  • montonio-for-woocommerce/tags/9.1.5/assets/css/montonio-admin-style.scss

    r3381865 r3382638  
    663663
    664664.order-status.status-mon-label-printed {
    665     background: #D6D1F8;
    666     color: #442DD2;
     665    background: #f0ebff;
     666    color: #260071;
    667667}
    668668
     
    737737    }   
    738738   
    739     &--labelPrinted {
     739    &--labelsCreated {
    740740        background-color: #f0ebff;
    741741        color: #260071;
  • montonio-for-woocommerce/tags/9.1.5/includes/shipping/class-wc-montonio-shipping-order.php

    r3381865 r3382638  
    238238                'registered'         => __( 'Registered', 'montonio-for-woocommerce' ),
    239239                'registrationFailed' => __( 'Registration failed', 'montonio-for-woocommerce' ),
    240                 'labelsCreated'      => __( 'Labels created', 'montonio-for-woocommerce' ),
     240                'labelsCreated'      => __( 'Label printed', 'montonio-for-woocommerce' ),
    241241                'inTransit'          => __( 'In transit', 'montonio-for-woocommerce' ),
    242242                'awaitingCollection' => __( 'Awaiting collection', 'montonio-for-woocommerce' ),
  • montonio-for-woocommerce/tags/9.1.5/includes/shipping/class-wc-montonio-shipping.php

    r3381865 r3382638  
    139139
    140140        if ( in_array( $method_type, array( 'parcelMachine', 'postOffice', 'parcelShop' ) ) ) {
     141            // Handle pickup point methods
    141142            if ( empty( $shipping_method_item_id ) ) {
    142143                return;
     
    172173            }
    173174
    174             $uuid = $shipping_method_item_id;
    175175            $carrier_assigned_id = $pickup_point->carrier_assigned_id ?? '';
    176176            $method_type = 'pickupPoint';
    177177        } else {
    178             $courier_item = WC_Montonio_Shipping_Item_Manager::get_shipping_method_items( WC_Montonio_Shipping_Helper::get_customer_shipping_country(), $carrier, 'courier' );
     178            // Handle courier methods
     179            $shipping_method_item_id = WC_Montonio_Shipping_Item_Manager::get_courier_id( WC_Montonio_Shipping_Helper::get_customer_shipping_country(), $carrier );
    179180           
     181            if ( empty( $shipping_method_item_id ) ) {
     182                return;
     183            }
     184
     185            $courier_item = WC_Montonio_Shipping_Item_Manager::get_shipping_method_item( $shipping_method_item_id );
     186
    180187            if ( empty( $courier_item ) ) {
    181188                return;
    182189            }
    183            
    184             $uuid = $courier_item->item_id ?? '';
     190
    185191            $carrier_assigned_id = $courier_item->carrier_assigned_id ?? '';
    186192        }
    187193
    188         $order->update_meta_data( '_montonio_pickup_point_uuid', $uuid );
     194        $order->update_meta_data( '_montonio_pickup_point_uuid', $shipping_method_item_id );
    189195        $order->update_meta_data( '_wc_montonio_shipping_method_type', $method_type );
    190196        $order->update_meta_data( '_wc_montonio_carrier_pickup_point_id', $carrier_assigned_id );
  • montonio-for-woocommerce/tags/9.1.5/includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php

    r3381865 r3382638  
    2424            add_action( 'handle_bulk_actions-edit-shop_order', array( $this, 'handle_label_printed_bulk_action' ), 10, 3 );
    2525        }
    26 
    27         add_action( 'wc_montonio_shipping_labels_ready', array( $this, 'mark_orders_as_labels_printed' ) );
    2826    }
    2927
     
    3836    public function create_label( $order_ids ) {
    3937        $shipment_ids = $this->get_shipment_ids_from_order_ids( $order_ids );
     38
     39        if ( empty( $shipment_ids ) ) {
     40            throw new Exception( __( 'No shipments available for label creation. Only shipments with status "registered" or "labels printed" can be printed.', 'montonio-for-woocommerce' ) );
     41        }
     42
    4043        $sandbox_mode = get_option( 'montonio_shipping_sandbox_mode', 'no' );
    4144        $shipping_api = new WC_Montonio_Shipping_API( $sandbox_mode );
     
    187190        return $redirect_to;
    188191    }
    189 
    190     /**
    191      * Mark orders as labels printed. This is used after the label file has been downloaded.
    192      *
    193      * @since 7.0.0
    194      * @param array $order_ids The order IDs to mark as labels printed.
    195      * @return void
    196      */
    197     public function mark_orders_as_labels_printed( $order_ids ) {
    198         $new_status = get_option( 'montonio_shipping_orderStatusWhenLabelPrinted', 'wc-mon-label-printed' );
    199 
    200         foreach ( $order_ids as $order_id ) {
    201             $order = wc_get_order( $order_id );
    202 
    203             if ( $order->get_status() === 'processing' && 'no-change' !== $new_status ) {
    204                 $order->update_status( $new_status );
    205                 $order->add_order_note( 'Montonio shipping label printed' );
    206 
    207                 WC_Montonio_Logger::log( 'Shipping -> Label Printing -> Order ' . $order_id . ' status changed from processing to ' . $new_status );
    208             }
    209 
    210             $order->update_meta_data( '_wc_montonio_shipping_label_printed', 'yes' );
    211             $order->save();
    212         }
    213     }
    214192}
    215193
  • montonio-for-woocommerce/tags/9.1.5/includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php

    r3381865 r3382638  
    4141                return self::handle_shipment_registered( $payload );
    4242            case 'shipment.registrationFailed':
    43                 return self::handle_registration_failed( $payload );
     43                return self::handle_shipment_registration_failed( $payload );
    4444            case 'shipment.statusUpdated':
    45                 return self::handle_status_updated( $payload );
     45                return self::handle_shipment_status_updated( $payload );
    4646            case 'shipment.labelsCreated':
    47                 return self::handle_labels_created( $payload );
     47                return self::handle_shipment_labels_created( $payload );
    4848            default:
    4949                WC_Montonio_Logger::log( 'Received unhandled webhook event type: ' . $payload->eventType );
     
    6565        // Verify that the meta data is correct with what we just searched for
    6666        if ( empty( $order ) || $order->get_meta( '_wc_montonio_shipping_shipment_id', true ) !== $payload->shipmentId ) {
    67             WC_Montonio_Logger::log( __( 'add_tracking_codes: Order not found.', 'montonio-for-woocommerce' ) );
     67            WC_Montonio_Logger::log( __( 'handle_shipment_registered: Order not found.', 'montonio-for-woocommerce' ) );
    6868            return new WP_REST_Response( array( 'message' => 'Order not found' ), 400 );
    6969        }
     
    107107     * @return WP_REST_Response The response object
    108108     */
    109     private static function handle_status_updated( $payload ) {
    110         $order_id = WC_Montonio_Helper::get_order_id_by_meta_data( $payload->shipmentId, '_wc_montonio_shipping_shipment_id' );
    111         $order    = wc_get_order( $order_id );
    112 
    113         // Verify that the meta data is correct with what we just searched for
    114         if ( empty( $order ) || $order->get_meta( '_wc_montonio_shipping_shipment_id', true ) !== $payload->shipmentId ) {
    115             WC_Montonio_Logger::log( __( 'handle_status_update_webhook: Order not found.', 'montonio-for-woocommerce' ) );
     109    private static function handle_shipment_status_updated( $payload ) {
     110        $order_id = WC_Montonio_Helper::get_order_id_by_meta_data( $payload->shipmentId, '_wc_montonio_shipping_shipment_id' );
     111        $order    = wc_get_order( $order_id );
     112
     113        // Verify that the meta data is correct with what we just searched for
     114        if ( empty( $order ) || $order->get_meta( '_wc_montonio_shipping_shipment_id', true ) !== $payload->shipmentId ) {
     115            WC_Montonio_Logger::log( __( 'handle_shipment_status_update: Order not found.', 'montonio-for-woocommerce' ) );
    116116            return new WP_REST_Response( array( 'message' => 'Order not found' ), 400 );
    117117        }
     
    125125            $order->save_meta_data();
    126126
    127             $new_status = get_option( 'montonio_shipping_order_status_when_delivered', 'wc-completed' );
    128 
    129             if ( 'delivered' === $status && 'no-change' !== $new_status ) {
    130                 $order->update_status( $new_status );
     127            $new_order_status = get_option( 'montonio_shipping_order_status_when_delivered', 'wc-completed' );
     128
     129            if ( 'delivered' === $status && 'no-change' !== $new_order_status ) {
     130                $order->update_status( $new_order_status );
    131131            }
    132132        }
     
    142142     * @return WP_REST_Response The response object
    143143     */
    144     private static function handle_registration_failed( $payload ) {
    145         $order_id = WC_Montonio_Helper::get_order_id_by_meta_data( $payload->shipmentId, '_wc_montonio_shipping_shipment_id' );
    146         $order    = wc_get_order( $order_id );
    147 
    148         error_log( 'error_log test' );
    149         error_log( print_r( $payload->data->errors, true ) );
    150 
    151         // Verify that the meta data is correct with what we just searched for
    152         if ( empty( $order ) || $order->get_meta( '_wc_montonio_shipping_shipment_id', true ) !== $payload->shipmentId ) {
    153             WC_Montonio_Logger::log( 'handle_registration_failed_webhook: Order not found.' );
     144    private static function handle_shipment_registration_failed( $payload ) {
     145        $order_id = WC_Montonio_Helper::get_order_id_by_meta_data( $payload->shipmentId, '_wc_montonio_shipping_shipment_id' );
     146        $order    = wc_get_order( $order_id );
     147
     148        // Verify that the meta data is correct with what we just searched for
     149        if ( empty( $order ) || $order->get_meta( '_wc_montonio_shipping_shipment_id', true ) !== $payload->shipmentId ) {
     150            WC_Montonio_Logger::log( 'handle_shipment_registration_failed: Order not found.' );
    154151            return new WP_REST_Response( array( 'message' => 'Order not found' ), 400 );
    155152        }
     
    210207     * @return WP_REST_Response The response object
    211208     */
    212     private static function handle_labels_created( $payload ) {
    213         $order_id = WC_Montonio_Helper::get_order_id_by_meta_data( $payload->shipmentId, '_wc_montonio_shipping_shipment_id' );
    214         $order    = wc_get_order( $order_id );
    215 
    216         // Verify that the meta data is correct with what we just searched for
    217         if ( empty( $order ) || $order->get_meta( '_wc_montonio_shipping_shipment_id', true ) !== $payload->shipmentId ) {
    218             WC_Montonio_Logger::log( 'handle_registration_failed_webhook: Order not found.' );
    219             return new WP_REST_Response( array( 'message' => 'Order not found' ), 400 );
    220         }
    221 
    222         do_action( 'wc_montonio_shipping_labels_ready', array( $order_id ) );
     209    private static function handle_shipment_labels_created( $payload ) {
     210        $order_id = WC_Montonio_Helper::get_order_id_by_meta_data( $payload->shipmentId, '_wc_montonio_shipping_shipment_id' );
     211        $order    = wc_get_order( $order_id );
     212
     213        // Verify that the meta data is correct with what we just searched for
     214        if ( empty( $order ) || $order->get_meta( '_wc_montonio_shipping_shipment_id', true ) !== $payload->shipmentId ) {
     215            WC_Montonio_Logger::log( 'handle_shipment_labels_created: Order not found.' );
     216            return new WP_REST_Response( array( 'message' => 'Order not found' ), 400 );
     217        }
     218
     219        $new_order_status = get_option( 'montonio_shipping_orderStatusWhenLabelPrinted', 'wc-mon-label-printed' );
     220
     221        if ( $order->get_status() === 'processing' && 'no-change' !== $new_order_status ) {
     222            $order->update_status( $new_order_status );
     223            $order->add_order_note( 'Montonio shipping label printed' );
     224
     225            WC_Montonio_Logger::log( 'handle_shipment_labels_created: Order ' . $order_id . ' status changed to ' . $new_order_status );
     226        }
     227
     228        $order->update_meta_data( '_wc_montonio_shipping_shipment_status', 'labelsCreated' );
     229        $order->update_meta_data( '_wc_montonio_shipping_label_printed', 'yes' );
     230        $order->save_meta_data();
    223231
    224232        return new WP_REST_Response( array( 'message' => 'labelsCreated event handled successfully' ), 200 );
  • montonio-for-woocommerce/tags/9.1.5/languages/montonio-for-woocommerce-et.po

    r3381865 r3382638  
    199199msgstr ""
    200200
     201#: includes/shipping/class-wc-montonio-shipping-order.php:240
    201202#: includes/shipping/class-wc-montonio-shipping-settings.php:53
     203#: templates/admin-order-shipping-panel.php:80
    202204msgid "Label printed"
    203205msgstr ""
     
    242244
    243245#: includes/shipping/class-wc-montonio-shipping-settings.php:108
    244 #: includes/shipping/class-wc-montonio-shipping.php:338
     246#: includes/shipping/class-wc-montonio-shipping.php:344
    245247msgid "Track your shipment:"
    246248msgstr "Jälgi oma saadetist:"
     
    300302msgstr "Palun vali pakipunkt."
    301303
    302 #: includes/shipping/class-wc-montonio-shipping.php:227
     304#: includes/shipping/class-wc-montonio-shipping.php:233
    303305msgid "Please add Montonio API keys!"
    304306msgstr ""
    305307
    306 #: includes/shipping/class-wc-montonio-shipping.php:310
     308#: includes/shipping/class-wc-montonio-shipping.php:316
    307309msgid "Montonio Shipping: Pickup point sync successful!"
    308310msgstr ""
     
    313315#: includes/payment/payment-methods/class-wc-montonio-hire-purchase.php:256
    314316#: includes/payment/payment-methods/class-wc-montonio-payments.php:313
    315 #: includes/shipping/class-wc-montonio-shipping.php:314
     317#: includes/shipping/class-wc-montonio-shipping.php:320
    316318msgid "Montonio API response: "
    317319msgstr ""
    318320
    319 #: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:125
     321#: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:128
    320322msgid "Print shipping labels"
    321323msgstr ""
     
    869871msgstr ""
    870872
    871 #: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:191
     873#: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:188
    872874msgid "Shipment registration failed."
    873875msgstr ""
     
    993995msgstr ""
    994996
    995 #: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:155
     997#: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:158
    996998msgid "Change status to label printed"
    997999msgstr ""
    9981000
    999 #: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:180
     1001#: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:183
    10001002msgid "Order marked as Label Printed."
    10011003msgstr ""
     
    10701072#: includes/payment/payment-methods/class-wc-montonio-payments.php:61
    10711073msgid "Montonio Bank Payments"
    1072 msgstr ""
    1073 
    1074 #: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:67
    1075 msgid "add_tracking_codes: Order not found."
    10761074msgstr ""
    10771075
     
    12601258msgstr ""
    12611259
    1262 #: includes/shipping/class-wc-montonio-shipping-order.php:240
    1263 #: templates/admin-order-shipping-panel.php:80
    1264 msgid "Labels created"
    1265 msgstr ""
    1266 
    12671260#: includes/shipping/class-wc-montonio-shipping-order.php:241
    12681261#: templates/admin-order-shipping-panel.php:81
     
    13481341#: includes/shipping/shipping-methods/shipping-method-settings.php:122
    13491342msgid "When calculating the cart total for free shipping, exclude the price of virtual products"
    1350 msgstr ""
    1351 
    1352 #: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:115
    1353 msgid "handle_status_update_webhook: Order not found."
    13541343msgstr ""
    13551344
     
    16351624msgid "Cash on Delivery is not available for the selected pickup point. Please choose a different pickup point or payment method."
    16361625msgstr "Lunamaks ei ole valitud väljastuspunktis saadaval. Palun vali teine väljastuspunkt või makseviis."
     1626
     1627#: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:40
     1628msgid "No shipments available for label creation. Only shipments with status \"registered\" or \"labels printed\" can be printed."
     1629msgstr ""
     1630
     1631#: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:67
     1632msgid "handle_shipment_registered: Order not found."
     1633msgstr ""
     1634
     1635#: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:115
     1636msgid "handle_shipment_status_update: Order not found."
     1637msgstr ""
  • montonio-for-woocommerce/tags/9.1.5/languages/montonio-for-woocommerce-lt_LT.po

    r3381865 r3382638  
    199199msgstr ""
    200200
     201#: includes/shipping/class-wc-montonio-shipping-order.php:240
    201202#: includes/shipping/class-wc-montonio-shipping-settings.php:53
     203#: templates/admin-order-shipping-panel.php:80
    202204msgid "Label printed"
    203205msgstr ""
     
    242244
    243245#: includes/shipping/class-wc-montonio-shipping-settings.php:108
    244 #: includes/shipping/class-wc-montonio-shipping.php:338
     246#: includes/shipping/class-wc-montonio-shipping.php:344
    245247msgid "Track your shipment:"
    246248msgstr ""
     
    300302msgstr "Pasirinkite atsiėmimo būdą."
    301303
    302 #: includes/shipping/class-wc-montonio-shipping.php:227
     304#: includes/shipping/class-wc-montonio-shipping.php:233
    303305msgid "Please add Montonio API keys!"
    304306msgstr ""
    305307
    306 #: includes/shipping/class-wc-montonio-shipping.php:310
     308#: includes/shipping/class-wc-montonio-shipping.php:316
    307309msgid "Montonio Shipping: Pickup point sync successful!"
    308310msgstr ""
     
    313315#: includes/payment/payment-methods/class-wc-montonio-hire-purchase.php:256
    314316#: includes/payment/payment-methods/class-wc-montonio-payments.php:313
    315 #: includes/shipping/class-wc-montonio-shipping.php:314
     317#: includes/shipping/class-wc-montonio-shipping.php:320
    316318msgid "Montonio API response: "
    317319msgstr ""
    318320
    319 #: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:125
     321#: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:128
    320322msgid "Print shipping labels"
    321323msgstr ""
     
    869871msgstr ""
    870872
    871 #: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:191
     873#: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:188
    872874msgid "Shipment registration failed."
    873875msgstr ""
     
    993995msgstr ""
    994996
    995 #: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:155
     997#: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:158
    996998msgid "Change status to label printed"
    997999msgstr ""
    9981000
    999 #: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:180
     1001#: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:183
    10001002msgid "Order marked as Label Printed."
    10011003msgstr ""
     
    10701072#: includes/payment/payment-methods/class-wc-montonio-payments.php:61
    10711073msgid "Montonio Bank Payments"
    1072 msgstr ""
    1073 
    1074 #: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:67
    1075 msgid "add_tracking_codes: Order not found."
    10761074msgstr ""
    10771075
     
    12601258msgstr ""
    12611259
    1262 #: includes/shipping/class-wc-montonio-shipping-order.php:240
    1263 #: templates/admin-order-shipping-panel.php:80
    1264 msgid "Labels created"
    1265 msgstr ""
    1266 
    12671260#: includes/shipping/class-wc-montonio-shipping-order.php:241
    12681261#: templates/admin-order-shipping-panel.php:81
     
    13481341#: includes/shipping/shipping-methods/shipping-method-settings.php:122
    13491342msgid "When calculating the cart total for free shipping, exclude the price of virtual products"
    1350 msgstr ""
    1351 
    1352 #: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:115
    1353 msgid "handle_status_update_webhook: Order not found."
    13541343msgstr ""
    13551344
     
    16351624msgid "Cash on Delivery is not available for the selected pickup point. Please choose a different pickup point or payment method."
    16361625msgstr "Apmokėjimas pristatymo metu pasirinktam atsiėmimo taškui negalimas. Prašome pasirinkti kitą atsiėmimo tašką ar atsiskaitymo būdą."
     1626
     1627#: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:40
     1628msgid "No shipments available for label creation. Only shipments with status \"registered\" or \"labels printed\" can be printed."
     1629msgstr ""
     1630
     1631#: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:67
     1632msgid "handle_shipment_registered: Order not found."
     1633msgstr ""
     1634
     1635#: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:115
     1636msgid "handle_shipment_status_update: Order not found."
     1637msgstr ""
  • montonio-for-woocommerce/tags/9.1.5/languages/montonio-for-woocommerce-lv.po

    r3381865 r3382638  
    199199msgstr ""
    200200
     201#: includes/shipping/class-wc-montonio-shipping-order.php:240
    201202#: includes/shipping/class-wc-montonio-shipping-settings.php:53
     203#: templates/admin-order-shipping-panel.php:80
    202204msgid "Label printed"
    203205msgstr ""
     
    242244
    243245#: includes/shipping/class-wc-montonio-shipping-settings.php:108
    244 #: includes/shipping/class-wc-montonio-shipping.php:338
     246#: includes/shipping/class-wc-montonio-shipping.php:344
    245247msgid "Track your shipment:"
    246248msgstr ""
     
    300302msgstr "Lūdzu izvēlēties pakomātu"
    301303
    302 #: includes/shipping/class-wc-montonio-shipping.php:227
     304#: includes/shipping/class-wc-montonio-shipping.php:233
    303305msgid "Please add Montonio API keys!"
    304306msgstr ""
    305307
    306 #: includes/shipping/class-wc-montonio-shipping.php:310
     308#: includes/shipping/class-wc-montonio-shipping.php:316
    307309msgid "Montonio Shipping: Pickup point sync successful!"
    308310msgstr ""
     
    313315#: includes/payment/payment-methods/class-wc-montonio-hire-purchase.php:256
    314316#: includes/payment/payment-methods/class-wc-montonio-payments.php:313
    315 #: includes/shipping/class-wc-montonio-shipping.php:314
     317#: includes/shipping/class-wc-montonio-shipping.php:320
    316318msgid "Montonio API response: "
    317319msgstr ""
    318320
    319 #: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:125
     321#: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:128
    320322msgid "Print shipping labels"
    321323msgstr ""
     
    869871msgstr ""
    870872
    871 #: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:191
     873#: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:188
    872874msgid "Shipment registration failed."
    873875msgstr ""
     
    993995msgstr ""
    994996
    995 #: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:155
     997#: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:158
    996998msgid "Change status to label printed"
    997999msgstr ""
    9981000
    999 #: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:180
     1001#: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:183
    10001002msgid "Order marked as Label Printed."
    10011003msgstr ""
     
    10701072#: includes/payment/payment-methods/class-wc-montonio-payments.php:61
    10711073msgid "Montonio Bank Payments"
    1072 msgstr ""
    1073 
    1074 #: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:67
    1075 msgid "add_tracking_codes: Order not found."
    10761074msgstr ""
    10771075
     
    12601258msgstr ""
    12611259
    1262 #: includes/shipping/class-wc-montonio-shipping-order.php:240
    1263 #: templates/admin-order-shipping-panel.php:80
    1264 msgid "Labels created"
    1265 msgstr ""
    1266 
    12671260#: includes/shipping/class-wc-montonio-shipping-order.php:241
    12681261#: templates/admin-order-shipping-panel.php:81
     
    13481341#: includes/shipping/shipping-methods/shipping-method-settings.php:122
    13491342msgid "When calculating the cart total for free shipping, exclude the price of virtual products"
    1350 msgstr ""
    1351 
    1352 #: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:115
    1353 msgid "handle_status_update_webhook: Order not found."
    13541343msgstr ""
    13551344
     
    16351624msgid "Cash on Delivery is not available for the selected pickup point. Please choose a different pickup point or payment method."
    16361625msgstr "Apmaksa saņemšanas brīdī nav pieejama izvēlētajam saņemšanas punktam. Lūdzu, izvēlieties citu saņemšanas punktu vai citu apmaksas veidu."
     1626
     1627#: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:40
     1628msgid "No shipments available for label creation. Only shipments with status \"registered\" or \"labels printed\" can be printed."
     1629msgstr ""
     1630
     1631#: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:67
     1632msgid "handle_shipment_registered: Order not found."
     1633msgstr ""
     1634
     1635#: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:115
     1636msgid "handle_shipment_status_update: Order not found."
     1637msgstr ""
  • montonio-for-woocommerce/tags/9.1.5/languages/montonio-for-woocommerce-lv_LV.po

    r3381865 r3382638  
    199199msgstr ""
    200200
     201#: includes/shipping/class-wc-montonio-shipping-order.php:240
    201202#: includes/shipping/class-wc-montonio-shipping-settings.php:53
     203#: templates/admin-order-shipping-panel.php:80
    202204msgid "Label printed"
    203205msgstr ""
     
    242244
    243245#: includes/shipping/class-wc-montonio-shipping-settings.php:108
    244 #: includes/shipping/class-wc-montonio-shipping.php:338
     246#: includes/shipping/class-wc-montonio-shipping.php:344
    245247msgid "Track your shipment:"
    246248msgstr ""
     
    300302msgstr "Lūdzu izvēlēties pakomātu"
    301303
    302 #: includes/shipping/class-wc-montonio-shipping.php:227
     304#: includes/shipping/class-wc-montonio-shipping.php:233
    303305msgid "Please add Montonio API keys!"
    304306msgstr ""
    305307
    306 #: includes/shipping/class-wc-montonio-shipping.php:310
     308#: includes/shipping/class-wc-montonio-shipping.php:316
    307309msgid "Montonio Shipping: Pickup point sync successful!"
    308310msgstr ""
     
    313315#: includes/payment/payment-methods/class-wc-montonio-hire-purchase.php:256
    314316#: includes/payment/payment-methods/class-wc-montonio-payments.php:313
    315 #: includes/shipping/class-wc-montonio-shipping.php:314
     317#: includes/shipping/class-wc-montonio-shipping.php:320
    316318msgid "Montonio API response: "
    317319msgstr ""
    318320
    319 #: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:125
     321#: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:128
    320322msgid "Print shipping labels"
    321323msgstr ""
     
    869871msgstr ""
    870872
    871 #: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:191
     873#: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:188
    872874msgid "Shipment registration failed."
    873875msgstr ""
     
    993995msgstr ""
    994996
    995 #: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:155
     997#: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:158
    996998msgid "Change status to label printed"
    997999msgstr ""
    9981000
    999 #: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:180
     1001#: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:183
    10001002msgid "Order marked as Label Printed."
    10011003msgstr ""
     
    10701072#: includes/payment/payment-methods/class-wc-montonio-payments.php:61
    10711073msgid "Montonio Bank Payments"
    1072 msgstr ""
    1073 
    1074 #: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:67
    1075 msgid "add_tracking_codes: Order not found."
    10761074msgstr ""
    10771075
     
    12601258msgstr ""
    12611259
    1262 #: includes/shipping/class-wc-montonio-shipping-order.php:240
    1263 #: templates/admin-order-shipping-panel.php:80
    1264 msgid "Labels created"
    1265 msgstr ""
    1266 
    12671260#: includes/shipping/class-wc-montonio-shipping-order.php:241
    12681261#: templates/admin-order-shipping-panel.php:81
     
    13481341#: includes/shipping/shipping-methods/shipping-method-settings.php:122
    13491342msgid "When calculating the cart total for free shipping, exclude the price of virtual products"
    1350 msgstr ""
    1351 
    1352 #: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:115
    1353 msgid "handle_status_update_webhook: Order not found."
    13541343msgstr ""
    13551344
     
    16351624msgid "Cash on Delivery is not available for the selected pickup point. Please choose a different pickup point or payment method."
    16361625msgstr "Apmaksa saņemšanas brīdī nav pieejama izvēlētajam saņemšanas punktam. Lūdzu, izvēlieties citu saņemšanas punktu vai citu apmaksas veidu."
     1626
     1627#: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:40
     1628msgid "No shipments available for label creation. Only shipments with status \"registered\" or \"labels printed\" can be printed."
     1629msgstr ""
     1630
     1631#: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:67
     1632msgid "handle_shipment_registered: Order not found."
     1633msgstr ""
     1634
     1635#: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:115
     1636msgid "handle_shipment_status_update: Order not found."
     1637msgstr ""
  • montonio-for-woocommerce/tags/9.1.5/languages/montonio-for-woocommerce-pl_PL.po

    r3381865 r3382638  
    200200msgstr ""
    201201
     202#: includes/shipping/class-wc-montonio-shipping-order.php:240
    202203#: includes/shipping/class-wc-montonio-shipping-settings.php:53
     204#: templates/admin-order-shipping-panel.php:80
    203205msgid "Label printed"
    204206msgstr ""
     
    243245
    244246#: includes/shipping/class-wc-montonio-shipping-settings.php:108
    245 #: includes/shipping/class-wc-montonio-shipping.php:338
     247#: includes/shipping/class-wc-montonio-shipping.php:344
    246248msgid "Track your shipment:"
    247249msgstr ""
     
    301303msgstr ""
    302304
    303 #: includes/shipping/class-wc-montonio-shipping.php:227
     305#: includes/shipping/class-wc-montonio-shipping.php:233
    304306msgid "Please add Montonio API keys!"
    305307msgstr ""
    306308
    307 #: includes/shipping/class-wc-montonio-shipping.php:310
     309#: includes/shipping/class-wc-montonio-shipping.php:316
    308310msgid "Montonio Shipping: Pickup point sync successful!"
    309311msgstr ""
     
    314316#: includes/payment/payment-methods/class-wc-montonio-hire-purchase.php:256
    315317#: includes/payment/payment-methods/class-wc-montonio-payments.php:313
    316 #: includes/shipping/class-wc-montonio-shipping.php:314
     318#: includes/shipping/class-wc-montonio-shipping.php:320
    317319msgid "Montonio API response: "
    318320msgstr ""
    319321
    320 #: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:125
     322#: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:128
    321323msgid "Print shipping labels"
    322324msgstr ""
     
    870872msgstr ""
    871873
    872 #: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:191
     874#: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:188
    873875msgid "Shipment registration failed."
    874876msgstr ""
     
    995997msgstr ""
    996998
    997 #: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:155
     999#: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:158
    9981000msgid "Change status to label printed"
    9991001msgstr ""
    10001002
    1001 #: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:180
     1003#: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:183
    10021004msgid "Order marked as Label Printed."
    10031005msgstr ""
     
    10721074#: includes/payment/payment-methods/class-wc-montonio-payments.php:61
    10731075msgid "Montonio Bank Payments"
    1074 msgstr ""
    1075 
    1076 #: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:67
    1077 msgid "add_tracking_codes: Order not found."
    10781076msgstr ""
    10791077
     
    12631261msgstr ""
    12641262
    1265 #: includes/shipping/class-wc-montonio-shipping-order.php:240
    1266 #: templates/admin-order-shipping-panel.php:80
    1267 msgid "Labels created"
    1268 msgstr ""
    1269 
    12701263#: includes/shipping/class-wc-montonio-shipping-order.php:241
    12711264#: templates/admin-order-shipping-panel.php:81
     
    13511344#: includes/shipping/shipping-methods/shipping-method-settings.php:122
    13521345msgid "When calculating the cart total for free shipping, exclude the price of virtual products"
    1353 msgstr ""
    1354 
    1355 #: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:115
    1356 msgid "handle_status_update_webhook: Order not found."
    13571346msgstr ""
    13581347
     
    16401629msgid "Cash on Delivery is not available for the selected pickup point. Please choose a different pickup point or payment method."
    16411630msgstr ""
     1631
     1632#: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:40
     1633msgid "No shipments available for label creation. Only shipments with status \"registered\" or \"labels printed\" can be printed."
     1634msgstr ""
     1635
     1636#: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:67
     1637msgid "handle_shipment_registered: Order not found."
     1638msgstr ""
     1639
     1640#: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:115
     1641msgid "handle_shipment_status_update: Order not found."
     1642msgstr ""
  • montonio-for-woocommerce/tags/9.1.5/languages/montonio-for-woocommerce-ru_RU.po

    r3381865 r3382638  
    199199msgstr ""
    200200
     201#: includes/shipping/class-wc-montonio-shipping-order.php:240
    201202#: includes/shipping/class-wc-montonio-shipping-settings.php:53
     203#: templates/admin-order-shipping-panel.php:80
    202204msgid "Label printed"
    203205msgstr ""
     
    242244
    243245#: includes/shipping/class-wc-montonio-shipping-settings.php:108
    244 #: includes/shipping/class-wc-montonio-shipping.php:338
     246#: includes/shipping/class-wc-montonio-shipping.php:344
    245247msgid "Track your shipment:"
    246248msgstr "Отслеживай доставку:"
     
    300302msgstr "Пожалуйста выберите способ доставки."
    301303
    302 #: includes/shipping/class-wc-montonio-shipping.php:227
     304#: includes/shipping/class-wc-montonio-shipping.php:233
    303305msgid "Please add Montonio API keys!"
    304306msgstr ""
    305307
    306 #: includes/shipping/class-wc-montonio-shipping.php:310
     308#: includes/shipping/class-wc-montonio-shipping.php:316
    307309msgid "Montonio Shipping: Pickup point sync successful!"
    308310msgstr ""
     
    313315#: includes/payment/payment-methods/class-wc-montonio-hire-purchase.php:256
    314316#: includes/payment/payment-methods/class-wc-montonio-payments.php:313
    315 #: includes/shipping/class-wc-montonio-shipping.php:314
     317#: includes/shipping/class-wc-montonio-shipping.php:320
    316318msgid "Montonio API response: "
    317319msgstr ""
    318320
    319 #: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:125
     321#: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:128
    320322msgid "Print shipping labels"
    321323msgstr ""
     
    869871msgstr ""
    870872
    871 #: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:191
     873#: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:188
    872874msgid "Shipment registration failed."
    873875msgstr ""
     
    993995msgstr ""
    994996
    995 #: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:155
     997#: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:158
    996998msgid "Change status to label printed"
    997999msgstr ""
    9981000
    999 #: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:180
     1001#: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:183
    10001002msgid "Order marked as Label Printed."
    10011003msgstr ""
     
    10701072#: includes/payment/payment-methods/class-wc-montonio-payments.php:61
    10711073msgid "Montonio Bank Payments"
    1072 msgstr ""
    1073 
    1074 #: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:67
    1075 msgid "add_tracking_codes: Order not found."
    10761074msgstr ""
    10771075
     
    12601258msgstr ""
    12611259
    1262 #: includes/shipping/class-wc-montonio-shipping-order.php:240
    1263 #: templates/admin-order-shipping-panel.php:80
    1264 msgid "Labels created"
    1265 msgstr ""
    1266 
    12671260#: includes/shipping/class-wc-montonio-shipping-order.php:241
    12681261#: templates/admin-order-shipping-panel.php:81
     
    13481341#: includes/shipping/shipping-methods/shipping-method-settings.php:122
    13491342msgid "When calculating the cart total for free shipping, exclude the price of virtual products"
    1350 msgstr ""
    1351 
    1352 #: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:115
    1353 msgid "handle_status_update_webhook: Order not found."
    13541343msgstr ""
    13551344
     
    16351624msgid "Cash on Delivery is not available for the selected pickup point. Please choose a different pickup point or payment method."
    16361625msgstr ""
     1626
     1627#: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:40
     1628msgid "No shipments available for label creation. Only shipments with status \"registered\" or \"labels printed\" can be printed."
     1629msgstr ""
     1630
     1631#: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:67
     1632msgid "handle_shipment_registered: Order not found."
     1633msgstr ""
     1634
     1635#: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:115
     1636msgid "handle_shipment_status_update: Order not found."
     1637msgstr ""
  • montonio-for-woocommerce/tags/9.1.5/languages/montonio-for-woocommerce.pot

    r3381865 r3382638  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Montonio for WooCommerce 9.1.4\n"
     5"Project-Id-Version: Montonio for WooCommerce 9.1.5\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/montonio-for-woocommerce\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2025-10-21T10:12:30+00:00\n"
     12"POT-Creation-Date: 2025-10-22T13:20:27+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.11.0\n"
     
    567567#: includes/payment/payment-methods/class-wc-montonio-hire-purchase.php:256
    568568#: includes/payment/payment-methods/class-wc-montonio-payments.php:313
    569 #: includes/shipping/class-wc-montonio-shipping.php:314
     569#: includes/shipping/class-wc-montonio-shipping.php:320
    570570msgid "Montonio API response: "
    571571msgstr ""
     
    898898
    899899#: includes/shipping/class-wc-montonio-shipping-order.php:240
     900#: includes/shipping/class-wc-montonio-shipping-settings.php:53
    900901#: templates/admin-order-shipping-panel.php:80
    901 msgid "Labels created"
     902msgid "Label printed"
    902903msgstr ""
    903904
     
    966967msgstr ""
    967968
    968 #: includes/shipping/class-wc-montonio-shipping-settings.php:53
    969 msgid "Label printed"
    970 msgstr ""
    971 
    972969#: includes/shipping/class-wc-montonio-shipping-settings.php:59
    973970msgid "Enable Montonio Shipping"
     
    10201017
    10211018#: includes/shipping/class-wc-montonio-shipping-settings.php:108
    1022 #: includes/shipping/class-wc-montonio-shipping.php:338
     1019#: includes/shipping/class-wc-montonio-shipping.php:344
    10231020msgid "Track your shipment:"
    10241021msgstr ""
     
    10721069msgstr ""
    10731070
    1074 #: includes/shipping/class-wc-montonio-shipping.php:227
     1071#: includes/shipping/class-wc-montonio-shipping.php:233
    10751072msgid "Please add Montonio API keys!"
    10761073msgstr ""
    10771074
    1078 #: includes/shipping/class-wc-montonio-shipping.php:310
     1075#: includes/shipping/class-wc-montonio-shipping.php:316
    10791076msgid "Montonio Shipping: Pickup point sync successful!"
    10801077msgstr ""
    10811078
    1082 #: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:125
     1079#: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:40
     1080msgid "No shipments available for label creation. Only shipments with status \"registered\" or \"labels printed\" can be printed."
     1081msgstr ""
     1082
     1083#: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:128
    10831084msgid "Print shipping labels"
    10841085msgstr ""
    10851086
    1086 #: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:155
     1087#: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:158
    10871088msgid "Change status to label printed"
    10881089msgstr ""
    10891090
    1090 #: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:180
     1091#: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:183
    10911092msgid "Order marked as Label Printed."
    10921093msgstr ""
     
    14311432
    14321433#: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:67
    1433 msgid "add_tracking_codes: Order not found."
     1434msgid "handle_shipment_registered: Order not found."
    14341435msgstr ""
    14351436
     
    14391440
    14401441#: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:115
    1441 msgid "handle_status_update_webhook: Order not found."
    1442 msgstr ""
    1443 
    1444 #: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:191
     1442msgid "handle_shipment_status_update: Order not found."
     1443msgstr ""
     1444
     1445#: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:188
    14451446msgid "Shipment registration failed."
    14461447msgstr ""
  • montonio-for-woocommerce/tags/9.1.5/montonio.php

    r3381865 r3382638  
    44 * Plugin URI:        https://www.montonio.com
    55 * Description:       All-in-one plug & play checkout solution
    6  * Version:           9.1.4
     6 * Version:           9.1.5
    77 * Author:            Montonio
    88 * Author URI:        https://www.montonio.com
     
    2121}
    2222
    23 define( 'WC_MONTONIO_PLUGIN_VERSION', '9.1.4' );
     23define( 'WC_MONTONIO_PLUGIN_VERSION', '9.1.5' );
    2424define( 'WC_MONTONIO_PLUGIN_URL', plugins_url( '', __FILE__ ) );
    2525define( 'WC_MONTONIO_PLUGIN_PATH', dirname( __FILE__ ) );
  • montonio-for-woocommerce/tags/9.1.5/readme.txt

    r3381865 r3382638  
    11=== Montonio for WooCommerce ===
    2 Version: 9.1.4
     2Version: 9.1.5
    33Date: 2019-09-04
    44Contributors: Montonio
     
    66Requires at least: 5.0
    77Tested up to: 6.8
    8 Stable tag: 9.1.4
     8Stable tag: 9.1.5
    99Requires PHP: 7.0
    1010Minimum requirements: WooCommerce 4.0 or greater
     
    137137
    138138== Changelog ==
     139= 9.1.5 =
     140* Tweak – Updated shipment status to "Label printed" after labels are printed
     141* Fix – Resolved issue where courier shipping method data was not being saved to order metadata, causing shipment creation failure
     142
    139143= 9.1.4 =
    140144* Added – Cash on Delivery payment method support for supported shipping methods
  • montonio-for-woocommerce/tags/9.1.5/templates/admin-order-shipping-panel.php

    r3351222 r3382638  
    2828    if ( $shipping_method_item ) {
    2929        $carrier_name = $shipping_method_item->carrier_code ?? '';
    30         $type         = $shipping_method_item->item_type ?? '';
     30        $type         = $shipping_method_item->method_type ?? '';
    3131    }
    3232}
     
    7878                'registered'         => __( 'Registered', 'montonio-for-woocommerce' ),
    7979                'registrationFailed' => __( 'Registration failed', 'montonio-for-woocommerce' ),
    80                 'labelsCreated'      => __( 'Labels created', 'montonio-for-woocommerce' ),
     80                'labelsCreated'      => __( 'Label printed', 'montonio-for-woocommerce' ),
    8181                'inTransit'          => __( 'In transit', 'montonio-for-woocommerce' ),
    8282                'awaitingCollection' => __( 'Awaiting collection', 'montonio-for-woocommerce' ),
  • montonio-for-woocommerce/trunk/assets/css/montonio-admin-style.css

    r3381865 r3382638  
    552552
    553553.order-status.status-mon-label-printed {
    554   background: #D6D1F8;
    555   color: #442DD2;
     554  background: #f0ebff;
     555  color: #260071;
    556556}
    557557
     
    623623  color: #e9283f;
    624624}
    625 .order-status.montonio-shippment-status--labelPrinted,
    626 .montonio-shipping-panel__status--labelPrinted {
     625.order-status.montonio-shippment-status--labelsCreated,
     626.montonio-shipping-panel__status--labelsCreated {
    627627  background-color: #f0ebff;
    628628  color: #260071;
  • montonio-for-woocommerce/trunk/assets/css/montonio-admin-style.scss

    r3381865 r3382638  
    663663
    664664.order-status.status-mon-label-printed {
    665     background: #D6D1F8;
    666     color: #442DD2;
     665    background: #f0ebff;
     666    color: #260071;
    667667}
    668668
     
    737737    }   
    738738   
    739     &--labelPrinted {
     739    &--labelsCreated {
    740740        background-color: #f0ebff;
    741741        color: #260071;
  • montonio-for-woocommerce/trunk/includes/shipping/class-wc-montonio-shipping-order.php

    r3381865 r3382638  
    238238                'registered'         => __( 'Registered', 'montonio-for-woocommerce' ),
    239239                'registrationFailed' => __( 'Registration failed', 'montonio-for-woocommerce' ),
    240                 'labelsCreated'      => __( 'Labels created', 'montonio-for-woocommerce' ),
     240                'labelsCreated'      => __( 'Label printed', 'montonio-for-woocommerce' ),
    241241                'inTransit'          => __( 'In transit', 'montonio-for-woocommerce' ),
    242242                'awaitingCollection' => __( 'Awaiting collection', 'montonio-for-woocommerce' ),
  • montonio-for-woocommerce/trunk/includes/shipping/class-wc-montonio-shipping.php

    r3381865 r3382638  
    139139
    140140        if ( in_array( $method_type, array( 'parcelMachine', 'postOffice', 'parcelShop' ) ) ) {
     141            // Handle pickup point methods
    141142            if ( empty( $shipping_method_item_id ) ) {
    142143                return;
     
    172173            }
    173174
    174             $uuid = $shipping_method_item_id;
    175175            $carrier_assigned_id = $pickup_point->carrier_assigned_id ?? '';
    176176            $method_type = 'pickupPoint';
    177177        } else {
    178             $courier_item = WC_Montonio_Shipping_Item_Manager::get_shipping_method_items( WC_Montonio_Shipping_Helper::get_customer_shipping_country(), $carrier, 'courier' );
     178            // Handle courier methods
     179            $shipping_method_item_id = WC_Montonio_Shipping_Item_Manager::get_courier_id( WC_Montonio_Shipping_Helper::get_customer_shipping_country(), $carrier );
    179180           
     181            if ( empty( $shipping_method_item_id ) ) {
     182                return;
     183            }
     184
     185            $courier_item = WC_Montonio_Shipping_Item_Manager::get_shipping_method_item( $shipping_method_item_id );
     186
    180187            if ( empty( $courier_item ) ) {
    181188                return;
    182189            }
    183            
    184             $uuid = $courier_item->item_id ?? '';
     190
    185191            $carrier_assigned_id = $courier_item->carrier_assigned_id ?? '';
    186192        }
    187193
    188         $order->update_meta_data( '_montonio_pickup_point_uuid', $uuid );
     194        $order->update_meta_data( '_montonio_pickup_point_uuid', $shipping_method_item_id );
    189195        $order->update_meta_data( '_wc_montonio_shipping_method_type', $method_type );
    190196        $order->update_meta_data( '_wc_montonio_carrier_pickup_point_id', $carrier_assigned_id );
  • montonio-for-woocommerce/trunk/includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php

    r3381865 r3382638  
    2424            add_action( 'handle_bulk_actions-edit-shop_order', array( $this, 'handle_label_printed_bulk_action' ), 10, 3 );
    2525        }
    26 
    27         add_action( 'wc_montonio_shipping_labels_ready', array( $this, 'mark_orders_as_labels_printed' ) );
    2826    }
    2927
     
    3836    public function create_label( $order_ids ) {
    3937        $shipment_ids = $this->get_shipment_ids_from_order_ids( $order_ids );
     38
     39        if ( empty( $shipment_ids ) ) {
     40            throw new Exception( __( 'No shipments available for label creation. Only shipments with status "registered" or "labels printed" can be printed.', 'montonio-for-woocommerce' ) );
     41        }
     42
    4043        $sandbox_mode = get_option( 'montonio_shipping_sandbox_mode', 'no' );
    4144        $shipping_api = new WC_Montonio_Shipping_API( $sandbox_mode );
     
    187190        return $redirect_to;
    188191    }
    189 
    190     /**
    191      * Mark orders as labels printed. This is used after the label file has been downloaded.
    192      *
    193      * @since 7.0.0
    194      * @param array $order_ids The order IDs to mark as labels printed.
    195      * @return void
    196      */
    197     public function mark_orders_as_labels_printed( $order_ids ) {
    198         $new_status = get_option( 'montonio_shipping_orderStatusWhenLabelPrinted', 'wc-mon-label-printed' );
    199 
    200         foreach ( $order_ids as $order_id ) {
    201             $order = wc_get_order( $order_id );
    202 
    203             if ( $order->get_status() === 'processing' && 'no-change' !== $new_status ) {
    204                 $order->update_status( $new_status );
    205                 $order->add_order_note( 'Montonio shipping label printed' );
    206 
    207                 WC_Montonio_Logger::log( 'Shipping -> Label Printing -> Order ' . $order_id . ' status changed from processing to ' . $new_status );
    208             }
    209 
    210             $order->update_meta_data( '_wc_montonio_shipping_label_printed', 'yes' );
    211             $order->save();
    212         }
    213     }
    214192}
    215193
  • montonio-for-woocommerce/trunk/includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php

    r3381865 r3382638  
    4141                return self::handle_shipment_registered( $payload );
    4242            case 'shipment.registrationFailed':
    43                 return self::handle_registration_failed( $payload );
     43                return self::handle_shipment_registration_failed( $payload );
    4444            case 'shipment.statusUpdated':
    45                 return self::handle_status_updated( $payload );
     45                return self::handle_shipment_status_updated( $payload );
    4646            case 'shipment.labelsCreated':
    47                 return self::handle_labels_created( $payload );
     47                return self::handle_shipment_labels_created( $payload );
    4848            default:
    4949                WC_Montonio_Logger::log( 'Received unhandled webhook event type: ' . $payload->eventType );
     
    6565        // Verify that the meta data is correct with what we just searched for
    6666        if ( empty( $order ) || $order->get_meta( '_wc_montonio_shipping_shipment_id', true ) !== $payload->shipmentId ) {
    67             WC_Montonio_Logger::log( __( 'add_tracking_codes: Order not found.', 'montonio-for-woocommerce' ) );
     67            WC_Montonio_Logger::log( __( 'handle_shipment_registered: Order not found.', 'montonio-for-woocommerce' ) );
    6868            return new WP_REST_Response( array( 'message' => 'Order not found' ), 400 );
    6969        }
     
    107107     * @return WP_REST_Response The response object
    108108     */
    109     private static function handle_status_updated( $payload ) {
    110         $order_id = WC_Montonio_Helper::get_order_id_by_meta_data( $payload->shipmentId, '_wc_montonio_shipping_shipment_id' );
    111         $order    = wc_get_order( $order_id );
    112 
    113         // Verify that the meta data is correct with what we just searched for
    114         if ( empty( $order ) || $order->get_meta( '_wc_montonio_shipping_shipment_id', true ) !== $payload->shipmentId ) {
    115             WC_Montonio_Logger::log( __( 'handle_status_update_webhook: Order not found.', 'montonio-for-woocommerce' ) );
     109    private static function handle_shipment_status_updated( $payload ) {
     110        $order_id = WC_Montonio_Helper::get_order_id_by_meta_data( $payload->shipmentId, '_wc_montonio_shipping_shipment_id' );
     111        $order    = wc_get_order( $order_id );
     112
     113        // Verify that the meta data is correct with what we just searched for
     114        if ( empty( $order ) || $order->get_meta( '_wc_montonio_shipping_shipment_id', true ) !== $payload->shipmentId ) {
     115            WC_Montonio_Logger::log( __( 'handle_shipment_status_update: Order not found.', 'montonio-for-woocommerce' ) );
    116116            return new WP_REST_Response( array( 'message' => 'Order not found' ), 400 );
    117117        }
     
    125125            $order->save_meta_data();
    126126
    127             $new_status = get_option( 'montonio_shipping_order_status_when_delivered', 'wc-completed' );
    128 
    129             if ( 'delivered' === $status && 'no-change' !== $new_status ) {
    130                 $order->update_status( $new_status );
     127            $new_order_status = get_option( 'montonio_shipping_order_status_when_delivered', 'wc-completed' );
     128
     129            if ( 'delivered' === $status && 'no-change' !== $new_order_status ) {
     130                $order->update_status( $new_order_status );
    131131            }
    132132        }
     
    142142     * @return WP_REST_Response The response object
    143143     */
    144     private static function handle_registration_failed( $payload ) {
    145         $order_id = WC_Montonio_Helper::get_order_id_by_meta_data( $payload->shipmentId, '_wc_montonio_shipping_shipment_id' );
    146         $order    = wc_get_order( $order_id );
    147 
    148         error_log( 'error_log test' );
    149         error_log( print_r( $payload->data->errors, true ) );
    150 
    151         // Verify that the meta data is correct with what we just searched for
    152         if ( empty( $order ) || $order->get_meta( '_wc_montonio_shipping_shipment_id', true ) !== $payload->shipmentId ) {
    153             WC_Montonio_Logger::log( 'handle_registration_failed_webhook: Order not found.' );
     144    private static function handle_shipment_registration_failed( $payload ) {
     145        $order_id = WC_Montonio_Helper::get_order_id_by_meta_data( $payload->shipmentId, '_wc_montonio_shipping_shipment_id' );
     146        $order    = wc_get_order( $order_id );
     147
     148        // Verify that the meta data is correct with what we just searched for
     149        if ( empty( $order ) || $order->get_meta( '_wc_montonio_shipping_shipment_id', true ) !== $payload->shipmentId ) {
     150            WC_Montonio_Logger::log( 'handle_shipment_registration_failed: Order not found.' );
    154151            return new WP_REST_Response( array( 'message' => 'Order not found' ), 400 );
    155152        }
     
    210207     * @return WP_REST_Response The response object
    211208     */
    212     private static function handle_labels_created( $payload ) {
    213         $order_id = WC_Montonio_Helper::get_order_id_by_meta_data( $payload->shipmentId, '_wc_montonio_shipping_shipment_id' );
    214         $order    = wc_get_order( $order_id );
    215 
    216         // Verify that the meta data is correct with what we just searched for
    217         if ( empty( $order ) || $order->get_meta( '_wc_montonio_shipping_shipment_id', true ) !== $payload->shipmentId ) {
    218             WC_Montonio_Logger::log( 'handle_registration_failed_webhook: Order not found.' );
    219             return new WP_REST_Response( array( 'message' => 'Order not found' ), 400 );
    220         }
    221 
    222         do_action( 'wc_montonio_shipping_labels_ready', array( $order_id ) );
     209    private static function handle_shipment_labels_created( $payload ) {
     210        $order_id = WC_Montonio_Helper::get_order_id_by_meta_data( $payload->shipmentId, '_wc_montonio_shipping_shipment_id' );
     211        $order    = wc_get_order( $order_id );
     212
     213        // Verify that the meta data is correct with what we just searched for
     214        if ( empty( $order ) || $order->get_meta( '_wc_montonio_shipping_shipment_id', true ) !== $payload->shipmentId ) {
     215            WC_Montonio_Logger::log( 'handle_shipment_labels_created: Order not found.' );
     216            return new WP_REST_Response( array( 'message' => 'Order not found' ), 400 );
     217        }
     218
     219        $new_order_status = get_option( 'montonio_shipping_orderStatusWhenLabelPrinted', 'wc-mon-label-printed' );
     220
     221        if ( $order->get_status() === 'processing' && 'no-change' !== $new_order_status ) {
     222            $order->update_status( $new_order_status );
     223            $order->add_order_note( 'Montonio shipping label printed' );
     224
     225            WC_Montonio_Logger::log( 'handle_shipment_labels_created: Order ' . $order_id . ' status changed to ' . $new_order_status );
     226        }
     227
     228        $order->update_meta_data( '_wc_montonio_shipping_shipment_status', 'labelsCreated' );
     229        $order->update_meta_data( '_wc_montonio_shipping_label_printed', 'yes' );
     230        $order->save_meta_data();
    223231
    224232        return new WP_REST_Response( array( 'message' => 'labelsCreated event handled successfully' ), 200 );
  • montonio-for-woocommerce/trunk/languages/montonio-for-woocommerce-et.po

    r3381865 r3382638  
    199199msgstr ""
    200200
     201#: includes/shipping/class-wc-montonio-shipping-order.php:240
    201202#: includes/shipping/class-wc-montonio-shipping-settings.php:53
     203#: templates/admin-order-shipping-panel.php:80
    202204msgid "Label printed"
    203205msgstr ""
     
    242244
    243245#: includes/shipping/class-wc-montonio-shipping-settings.php:108
    244 #: includes/shipping/class-wc-montonio-shipping.php:338
     246#: includes/shipping/class-wc-montonio-shipping.php:344
    245247msgid "Track your shipment:"
    246248msgstr "Jälgi oma saadetist:"
     
    300302msgstr "Palun vali pakipunkt."
    301303
    302 #: includes/shipping/class-wc-montonio-shipping.php:227
     304#: includes/shipping/class-wc-montonio-shipping.php:233
    303305msgid "Please add Montonio API keys!"
    304306msgstr ""
    305307
    306 #: includes/shipping/class-wc-montonio-shipping.php:310
     308#: includes/shipping/class-wc-montonio-shipping.php:316
    307309msgid "Montonio Shipping: Pickup point sync successful!"
    308310msgstr ""
     
    313315#: includes/payment/payment-methods/class-wc-montonio-hire-purchase.php:256
    314316#: includes/payment/payment-methods/class-wc-montonio-payments.php:313
    315 #: includes/shipping/class-wc-montonio-shipping.php:314
     317#: includes/shipping/class-wc-montonio-shipping.php:320
    316318msgid "Montonio API response: "
    317319msgstr ""
    318320
    319 #: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:125
     321#: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:128
    320322msgid "Print shipping labels"
    321323msgstr ""
     
    869871msgstr ""
    870872
    871 #: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:191
     873#: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:188
    872874msgid "Shipment registration failed."
    873875msgstr ""
     
    993995msgstr ""
    994996
    995 #: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:155
     997#: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:158
    996998msgid "Change status to label printed"
    997999msgstr ""
    9981000
    999 #: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:180
     1001#: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:183
    10001002msgid "Order marked as Label Printed."
    10011003msgstr ""
     
    10701072#: includes/payment/payment-methods/class-wc-montonio-payments.php:61
    10711073msgid "Montonio Bank Payments"
    1072 msgstr ""
    1073 
    1074 #: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:67
    1075 msgid "add_tracking_codes: Order not found."
    10761074msgstr ""
    10771075
     
    12601258msgstr ""
    12611259
    1262 #: includes/shipping/class-wc-montonio-shipping-order.php:240
    1263 #: templates/admin-order-shipping-panel.php:80
    1264 msgid "Labels created"
    1265 msgstr ""
    1266 
    12671260#: includes/shipping/class-wc-montonio-shipping-order.php:241
    12681261#: templates/admin-order-shipping-panel.php:81
     
    13481341#: includes/shipping/shipping-methods/shipping-method-settings.php:122
    13491342msgid "When calculating the cart total for free shipping, exclude the price of virtual products"
    1350 msgstr ""
    1351 
    1352 #: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:115
    1353 msgid "handle_status_update_webhook: Order not found."
    13541343msgstr ""
    13551344
     
    16351624msgid "Cash on Delivery is not available for the selected pickup point. Please choose a different pickup point or payment method."
    16361625msgstr "Lunamaks ei ole valitud väljastuspunktis saadaval. Palun vali teine väljastuspunkt või makseviis."
     1626
     1627#: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:40
     1628msgid "No shipments available for label creation. Only shipments with status \"registered\" or \"labels printed\" can be printed."
     1629msgstr ""
     1630
     1631#: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:67
     1632msgid "handle_shipment_registered: Order not found."
     1633msgstr ""
     1634
     1635#: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:115
     1636msgid "handle_shipment_status_update: Order not found."
     1637msgstr ""
  • montonio-for-woocommerce/trunk/languages/montonio-for-woocommerce-lt_LT.po

    r3381865 r3382638  
    199199msgstr ""
    200200
     201#: includes/shipping/class-wc-montonio-shipping-order.php:240
    201202#: includes/shipping/class-wc-montonio-shipping-settings.php:53
     203#: templates/admin-order-shipping-panel.php:80
    202204msgid "Label printed"
    203205msgstr ""
     
    242244
    243245#: includes/shipping/class-wc-montonio-shipping-settings.php:108
    244 #: includes/shipping/class-wc-montonio-shipping.php:338
     246#: includes/shipping/class-wc-montonio-shipping.php:344
    245247msgid "Track your shipment:"
    246248msgstr ""
     
    300302msgstr "Pasirinkite atsiėmimo būdą."
    301303
    302 #: includes/shipping/class-wc-montonio-shipping.php:227
     304#: includes/shipping/class-wc-montonio-shipping.php:233
    303305msgid "Please add Montonio API keys!"
    304306msgstr ""
    305307
    306 #: includes/shipping/class-wc-montonio-shipping.php:310
     308#: includes/shipping/class-wc-montonio-shipping.php:316
    307309msgid "Montonio Shipping: Pickup point sync successful!"
    308310msgstr ""
     
    313315#: includes/payment/payment-methods/class-wc-montonio-hire-purchase.php:256
    314316#: includes/payment/payment-methods/class-wc-montonio-payments.php:313
    315 #: includes/shipping/class-wc-montonio-shipping.php:314
     317#: includes/shipping/class-wc-montonio-shipping.php:320
    316318msgid "Montonio API response: "
    317319msgstr ""
    318320
    319 #: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:125
     321#: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:128
    320322msgid "Print shipping labels"
    321323msgstr ""
     
    869871msgstr ""
    870872
    871 #: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:191
     873#: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:188
    872874msgid "Shipment registration failed."
    873875msgstr ""
     
    993995msgstr ""
    994996
    995 #: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:155
     997#: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:158
    996998msgid "Change status to label printed"
    997999msgstr ""
    9981000
    999 #: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:180
     1001#: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:183
    10001002msgid "Order marked as Label Printed."
    10011003msgstr ""
     
    10701072#: includes/payment/payment-methods/class-wc-montonio-payments.php:61
    10711073msgid "Montonio Bank Payments"
    1072 msgstr ""
    1073 
    1074 #: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:67
    1075 msgid "add_tracking_codes: Order not found."
    10761074msgstr ""
    10771075
     
    12601258msgstr ""
    12611259
    1262 #: includes/shipping/class-wc-montonio-shipping-order.php:240
    1263 #: templates/admin-order-shipping-panel.php:80
    1264 msgid "Labels created"
    1265 msgstr ""
    1266 
    12671260#: includes/shipping/class-wc-montonio-shipping-order.php:241
    12681261#: templates/admin-order-shipping-panel.php:81
     
    13481341#: includes/shipping/shipping-methods/shipping-method-settings.php:122
    13491342msgid "When calculating the cart total for free shipping, exclude the price of virtual products"
    1350 msgstr ""
    1351 
    1352 #: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:115
    1353 msgid "handle_status_update_webhook: Order not found."
    13541343msgstr ""
    13551344
     
    16351624msgid "Cash on Delivery is not available for the selected pickup point. Please choose a different pickup point or payment method."
    16361625msgstr "Apmokėjimas pristatymo metu pasirinktam atsiėmimo taškui negalimas. Prašome pasirinkti kitą atsiėmimo tašką ar atsiskaitymo būdą."
     1626
     1627#: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:40
     1628msgid "No shipments available for label creation. Only shipments with status \"registered\" or \"labels printed\" can be printed."
     1629msgstr ""
     1630
     1631#: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:67
     1632msgid "handle_shipment_registered: Order not found."
     1633msgstr ""
     1634
     1635#: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:115
     1636msgid "handle_shipment_status_update: Order not found."
     1637msgstr ""
  • montonio-for-woocommerce/trunk/languages/montonio-for-woocommerce-lv.po

    r3381865 r3382638  
    199199msgstr ""
    200200
     201#: includes/shipping/class-wc-montonio-shipping-order.php:240
    201202#: includes/shipping/class-wc-montonio-shipping-settings.php:53
     203#: templates/admin-order-shipping-panel.php:80
    202204msgid "Label printed"
    203205msgstr ""
     
    242244
    243245#: includes/shipping/class-wc-montonio-shipping-settings.php:108
    244 #: includes/shipping/class-wc-montonio-shipping.php:338
     246#: includes/shipping/class-wc-montonio-shipping.php:344
    245247msgid "Track your shipment:"
    246248msgstr ""
     
    300302msgstr "Lūdzu izvēlēties pakomātu"
    301303
    302 #: includes/shipping/class-wc-montonio-shipping.php:227
     304#: includes/shipping/class-wc-montonio-shipping.php:233
    303305msgid "Please add Montonio API keys!"
    304306msgstr ""
    305307
    306 #: includes/shipping/class-wc-montonio-shipping.php:310
     308#: includes/shipping/class-wc-montonio-shipping.php:316
    307309msgid "Montonio Shipping: Pickup point sync successful!"
    308310msgstr ""
     
    313315#: includes/payment/payment-methods/class-wc-montonio-hire-purchase.php:256
    314316#: includes/payment/payment-methods/class-wc-montonio-payments.php:313
    315 #: includes/shipping/class-wc-montonio-shipping.php:314
     317#: includes/shipping/class-wc-montonio-shipping.php:320
    316318msgid "Montonio API response: "
    317319msgstr ""
    318320
    319 #: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:125
     321#: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:128
    320322msgid "Print shipping labels"
    321323msgstr ""
     
    869871msgstr ""
    870872
    871 #: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:191
     873#: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:188
    872874msgid "Shipment registration failed."
    873875msgstr ""
     
    993995msgstr ""
    994996
    995 #: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:155
     997#: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:158
    996998msgid "Change status to label printed"
    997999msgstr ""
    9981000
    999 #: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:180
     1001#: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:183
    10001002msgid "Order marked as Label Printed."
    10011003msgstr ""
     
    10701072#: includes/payment/payment-methods/class-wc-montonio-payments.php:61
    10711073msgid "Montonio Bank Payments"
    1072 msgstr ""
    1073 
    1074 #: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:67
    1075 msgid "add_tracking_codes: Order not found."
    10761074msgstr ""
    10771075
     
    12601258msgstr ""
    12611259
    1262 #: includes/shipping/class-wc-montonio-shipping-order.php:240
    1263 #: templates/admin-order-shipping-panel.php:80
    1264 msgid "Labels created"
    1265 msgstr ""
    1266 
    12671260#: includes/shipping/class-wc-montonio-shipping-order.php:241
    12681261#: templates/admin-order-shipping-panel.php:81
     
    13481341#: includes/shipping/shipping-methods/shipping-method-settings.php:122
    13491342msgid "When calculating the cart total for free shipping, exclude the price of virtual products"
    1350 msgstr ""
    1351 
    1352 #: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:115
    1353 msgid "handle_status_update_webhook: Order not found."
    13541343msgstr ""
    13551344
     
    16351624msgid "Cash on Delivery is not available for the selected pickup point. Please choose a different pickup point or payment method."
    16361625msgstr "Apmaksa saņemšanas brīdī nav pieejama izvēlētajam saņemšanas punktam. Lūdzu, izvēlieties citu saņemšanas punktu vai citu apmaksas veidu."
     1626
     1627#: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:40
     1628msgid "No shipments available for label creation. Only shipments with status \"registered\" or \"labels printed\" can be printed."
     1629msgstr ""
     1630
     1631#: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:67
     1632msgid "handle_shipment_registered: Order not found."
     1633msgstr ""
     1634
     1635#: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:115
     1636msgid "handle_shipment_status_update: Order not found."
     1637msgstr ""
  • montonio-for-woocommerce/trunk/languages/montonio-for-woocommerce-lv_LV.po

    r3381865 r3382638  
    199199msgstr ""
    200200
     201#: includes/shipping/class-wc-montonio-shipping-order.php:240
    201202#: includes/shipping/class-wc-montonio-shipping-settings.php:53
     203#: templates/admin-order-shipping-panel.php:80
    202204msgid "Label printed"
    203205msgstr ""
     
    242244
    243245#: includes/shipping/class-wc-montonio-shipping-settings.php:108
    244 #: includes/shipping/class-wc-montonio-shipping.php:338
     246#: includes/shipping/class-wc-montonio-shipping.php:344
    245247msgid "Track your shipment:"
    246248msgstr ""
     
    300302msgstr "Lūdzu izvēlēties pakomātu"
    301303
    302 #: includes/shipping/class-wc-montonio-shipping.php:227
     304#: includes/shipping/class-wc-montonio-shipping.php:233
    303305msgid "Please add Montonio API keys!"
    304306msgstr ""
    305307
    306 #: includes/shipping/class-wc-montonio-shipping.php:310
     308#: includes/shipping/class-wc-montonio-shipping.php:316
    307309msgid "Montonio Shipping: Pickup point sync successful!"
    308310msgstr ""
     
    313315#: includes/payment/payment-methods/class-wc-montonio-hire-purchase.php:256
    314316#: includes/payment/payment-methods/class-wc-montonio-payments.php:313
    315 #: includes/shipping/class-wc-montonio-shipping.php:314
     317#: includes/shipping/class-wc-montonio-shipping.php:320
    316318msgid "Montonio API response: "
    317319msgstr ""
    318320
    319 #: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:125
     321#: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:128
    320322msgid "Print shipping labels"
    321323msgstr ""
     
    869871msgstr ""
    870872
    871 #: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:191
     873#: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:188
    872874msgid "Shipment registration failed."
    873875msgstr ""
     
    993995msgstr ""
    994996
    995 #: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:155
     997#: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:158
    996998msgid "Change status to label printed"
    997999msgstr ""
    9981000
    999 #: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:180
     1001#: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:183
    10001002msgid "Order marked as Label Printed."
    10011003msgstr ""
     
    10701072#: includes/payment/payment-methods/class-wc-montonio-payments.php:61
    10711073msgid "Montonio Bank Payments"
    1072 msgstr ""
    1073 
    1074 #: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:67
    1075 msgid "add_tracking_codes: Order not found."
    10761074msgstr ""
    10771075
     
    12601258msgstr ""
    12611259
    1262 #: includes/shipping/class-wc-montonio-shipping-order.php:240
    1263 #: templates/admin-order-shipping-panel.php:80
    1264 msgid "Labels created"
    1265 msgstr ""
    1266 
    12671260#: includes/shipping/class-wc-montonio-shipping-order.php:241
    12681261#: templates/admin-order-shipping-panel.php:81
     
    13481341#: includes/shipping/shipping-methods/shipping-method-settings.php:122
    13491342msgid "When calculating the cart total for free shipping, exclude the price of virtual products"
    1350 msgstr ""
    1351 
    1352 #: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:115
    1353 msgid "handle_status_update_webhook: Order not found."
    13541343msgstr ""
    13551344
     
    16351624msgid "Cash on Delivery is not available for the selected pickup point. Please choose a different pickup point or payment method."
    16361625msgstr "Apmaksa saņemšanas brīdī nav pieejama izvēlētajam saņemšanas punktam. Lūdzu, izvēlieties citu saņemšanas punktu vai citu apmaksas veidu."
     1626
     1627#: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:40
     1628msgid "No shipments available for label creation. Only shipments with status \"registered\" or \"labels printed\" can be printed."
     1629msgstr ""
     1630
     1631#: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:67
     1632msgid "handle_shipment_registered: Order not found."
     1633msgstr ""
     1634
     1635#: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:115
     1636msgid "handle_shipment_status_update: Order not found."
     1637msgstr ""
  • montonio-for-woocommerce/trunk/languages/montonio-for-woocommerce-pl_PL.po

    r3381865 r3382638  
    200200msgstr ""
    201201
     202#: includes/shipping/class-wc-montonio-shipping-order.php:240
    202203#: includes/shipping/class-wc-montonio-shipping-settings.php:53
     204#: templates/admin-order-shipping-panel.php:80
    203205msgid "Label printed"
    204206msgstr ""
     
    243245
    244246#: includes/shipping/class-wc-montonio-shipping-settings.php:108
    245 #: includes/shipping/class-wc-montonio-shipping.php:338
     247#: includes/shipping/class-wc-montonio-shipping.php:344
    246248msgid "Track your shipment:"
    247249msgstr ""
     
    301303msgstr ""
    302304
    303 #: includes/shipping/class-wc-montonio-shipping.php:227
     305#: includes/shipping/class-wc-montonio-shipping.php:233
    304306msgid "Please add Montonio API keys!"
    305307msgstr ""
    306308
    307 #: includes/shipping/class-wc-montonio-shipping.php:310
     309#: includes/shipping/class-wc-montonio-shipping.php:316
    308310msgid "Montonio Shipping: Pickup point sync successful!"
    309311msgstr ""
     
    314316#: includes/payment/payment-methods/class-wc-montonio-hire-purchase.php:256
    315317#: includes/payment/payment-methods/class-wc-montonio-payments.php:313
    316 #: includes/shipping/class-wc-montonio-shipping.php:314
     318#: includes/shipping/class-wc-montonio-shipping.php:320
    317319msgid "Montonio API response: "
    318320msgstr ""
    319321
    320 #: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:125
     322#: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:128
    321323msgid "Print shipping labels"
    322324msgstr ""
     
    870872msgstr ""
    871873
    872 #: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:191
     874#: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:188
    873875msgid "Shipment registration failed."
    874876msgstr ""
     
    995997msgstr ""
    996998
    997 #: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:155
     999#: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:158
    9981000msgid "Change status to label printed"
    9991001msgstr ""
    10001002
    1001 #: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:180
     1003#: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:183
    10021004msgid "Order marked as Label Printed."
    10031005msgstr ""
     
    10721074#: includes/payment/payment-methods/class-wc-montonio-payments.php:61
    10731075msgid "Montonio Bank Payments"
    1074 msgstr ""
    1075 
    1076 #: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:67
    1077 msgid "add_tracking_codes: Order not found."
    10781076msgstr ""
    10791077
     
    12631261msgstr ""
    12641262
    1265 #: includes/shipping/class-wc-montonio-shipping-order.php:240
    1266 #: templates/admin-order-shipping-panel.php:80
    1267 msgid "Labels created"
    1268 msgstr ""
    1269 
    12701263#: includes/shipping/class-wc-montonio-shipping-order.php:241
    12711264#: templates/admin-order-shipping-panel.php:81
     
    13511344#: includes/shipping/shipping-methods/shipping-method-settings.php:122
    13521345msgid "When calculating the cart total for free shipping, exclude the price of virtual products"
    1353 msgstr ""
    1354 
    1355 #: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:115
    1356 msgid "handle_status_update_webhook: Order not found."
    13571346msgstr ""
    13581347
     
    16401629msgid "Cash on Delivery is not available for the selected pickup point. Please choose a different pickup point or payment method."
    16411630msgstr ""
     1631
     1632#: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:40
     1633msgid "No shipments available for label creation. Only shipments with status \"registered\" or \"labels printed\" can be printed."
     1634msgstr ""
     1635
     1636#: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:67
     1637msgid "handle_shipment_registered: Order not found."
     1638msgstr ""
     1639
     1640#: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:115
     1641msgid "handle_shipment_status_update: Order not found."
     1642msgstr ""
  • montonio-for-woocommerce/trunk/languages/montonio-for-woocommerce-ru_RU.po

    r3381865 r3382638  
    199199msgstr ""
    200200
     201#: includes/shipping/class-wc-montonio-shipping-order.php:240
    201202#: includes/shipping/class-wc-montonio-shipping-settings.php:53
     203#: templates/admin-order-shipping-panel.php:80
    202204msgid "Label printed"
    203205msgstr ""
     
    242244
    243245#: includes/shipping/class-wc-montonio-shipping-settings.php:108
    244 #: includes/shipping/class-wc-montonio-shipping.php:338
     246#: includes/shipping/class-wc-montonio-shipping.php:344
    245247msgid "Track your shipment:"
    246248msgstr "Отслеживай доставку:"
     
    300302msgstr "Пожалуйста выберите способ доставки."
    301303
    302 #: includes/shipping/class-wc-montonio-shipping.php:227
     304#: includes/shipping/class-wc-montonio-shipping.php:233
    303305msgid "Please add Montonio API keys!"
    304306msgstr ""
    305307
    306 #: includes/shipping/class-wc-montonio-shipping.php:310
     308#: includes/shipping/class-wc-montonio-shipping.php:316
    307309msgid "Montonio Shipping: Pickup point sync successful!"
    308310msgstr ""
     
    313315#: includes/payment/payment-methods/class-wc-montonio-hire-purchase.php:256
    314316#: includes/payment/payment-methods/class-wc-montonio-payments.php:313
    315 #: includes/shipping/class-wc-montonio-shipping.php:314
     317#: includes/shipping/class-wc-montonio-shipping.php:320
    316318msgid "Montonio API response: "
    317319msgstr ""
    318320
    319 #: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:125
     321#: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:128
    320322msgid "Print shipping labels"
    321323msgstr ""
     
    869871msgstr ""
    870872
    871 #: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:191
     873#: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:188
    872874msgid "Shipment registration failed."
    873875msgstr ""
     
    993995msgstr ""
    994996
    995 #: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:155
     997#: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:158
    996998msgid "Change status to label printed"
    997999msgstr ""
    9981000
    999 #: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:180
     1001#: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:183
    10001002msgid "Order marked as Label Printed."
    10011003msgstr ""
     
    10701072#: includes/payment/payment-methods/class-wc-montonio-payments.php:61
    10711073msgid "Montonio Bank Payments"
    1072 msgstr ""
    1073 
    1074 #: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:67
    1075 msgid "add_tracking_codes: Order not found."
    10761074msgstr ""
    10771075
     
    12601258msgstr ""
    12611259
    1262 #: includes/shipping/class-wc-montonio-shipping-order.php:240
    1263 #: templates/admin-order-shipping-panel.php:80
    1264 msgid "Labels created"
    1265 msgstr ""
    1266 
    12671260#: includes/shipping/class-wc-montonio-shipping-order.php:241
    12681261#: templates/admin-order-shipping-panel.php:81
     
    13481341#: includes/shipping/shipping-methods/shipping-method-settings.php:122
    13491342msgid "When calculating the cart total for free shipping, exclude the price of virtual products"
    1350 msgstr ""
    1351 
    1352 #: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:115
    1353 msgid "handle_status_update_webhook: Order not found."
    13541343msgstr ""
    13551344
     
    16351624msgid "Cash on Delivery is not available for the selected pickup point. Please choose a different pickup point or payment method."
    16361625msgstr ""
     1626
     1627#: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:40
     1628msgid "No shipments available for label creation. Only shipments with status \"registered\" or \"labels printed\" can be printed."
     1629msgstr ""
     1630
     1631#: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:67
     1632msgid "handle_shipment_registered: Order not found."
     1633msgstr ""
     1634
     1635#: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:115
     1636msgid "handle_shipment_status_update: Order not found."
     1637msgstr ""
  • montonio-for-woocommerce/trunk/languages/montonio-for-woocommerce.pot

    r3381865 r3382638  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Montonio for WooCommerce 9.1.4\n"
     5"Project-Id-Version: Montonio for WooCommerce 9.1.5\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/montonio-for-woocommerce\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2025-10-21T10:12:30+00:00\n"
     12"POT-Creation-Date: 2025-10-22T13:20:27+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.11.0\n"
     
    567567#: includes/payment/payment-methods/class-wc-montonio-hire-purchase.php:256
    568568#: includes/payment/payment-methods/class-wc-montonio-payments.php:313
    569 #: includes/shipping/class-wc-montonio-shipping.php:314
     569#: includes/shipping/class-wc-montonio-shipping.php:320
    570570msgid "Montonio API response: "
    571571msgstr ""
     
    898898
    899899#: includes/shipping/class-wc-montonio-shipping-order.php:240
     900#: includes/shipping/class-wc-montonio-shipping-settings.php:53
    900901#: templates/admin-order-shipping-panel.php:80
    901 msgid "Labels created"
     902msgid "Label printed"
    902903msgstr ""
    903904
     
    966967msgstr ""
    967968
    968 #: includes/shipping/class-wc-montonio-shipping-settings.php:53
    969 msgid "Label printed"
    970 msgstr ""
    971 
    972969#: includes/shipping/class-wc-montonio-shipping-settings.php:59
    973970msgid "Enable Montonio Shipping"
     
    10201017
    10211018#: includes/shipping/class-wc-montonio-shipping-settings.php:108
    1022 #: includes/shipping/class-wc-montonio-shipping.php:338
     1019#: includes/shipping/class-wc-montonio-shipping.php:344
    10231020msgid "Track your shipment:"
    10241021msgstr ""
     
    10721069msgstr ""
    10731070
    1074 #: includes/shipping/class-wc-montonio-shipping.php:227
     1071#: includes/shipping/class-wc-montonio-shipping.php:233
    10751072msgid "Please add Montonio API keys!"
    10761073msgstr ""
    10771074
    1078 #: includes/shipping/class-wc-montonio-shipping.php:310
     1075#: includes/shipping/class-wc-montonio-shipping.php:316
    10791076msgid "Montonio Shipping: Pickup point sync successful!"
    10801077msgstr ""
    10811078
    1082 #: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:125
     1079#: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:40
     1080msgid "No shipments available for label creation. Only shipments with status \"registered\" or \"labels printed\" can be printed."
     1081msgstr ""
     1082
     1083#: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:128
    10831084msgid "Print shipping labels"
    10841085msgstr ""
    10851086
    1086 #: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:155
     1087#: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:158
    10871088msgid "Change status to label printed"
    10881089msgstr ""
    10891090
    1090 #: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:180
     1091#: includes/shipping/label-printing/class-wc-montonio-shipping-label-printing.php:183
    10911092msgid "Order marked as Label Printed."
    10921093msgstr ""
     
    14311432
    14321433#: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:67
    1433 msgid "add_tracking_codes: Order not found."
     1434msgid "handle_shipment_registered: Order not found."
    14341435msgstr ""
    14351436
     
    14391440
    14401441#: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:115
    1441 msgid "handle_status_update_webhook: Order not found."
    1442 msgstr ""
    1443 
    1444 #: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:191
     1442msgid "handle_shipment_status_update: Order not found."
     1443msgstr ""
     1444
     1445#: includes/shipping/webhooks/class-wc-montonio-shipping-webhooks.php:188
    14451446msgid "Shipment registration failed."
    14461447msgstr ""
  • montonio-for-woocommerce/trunk/montonio.php

    r3381865 r3382638  
    44 * Plugin URI:        https://www.montonio.com
    55 * Description:       All-in-one plug & play checkout solution
    6  * Version:           9.1.4
     6 * Version:           9.1.5
    77 * Author:            Montonio
    88 * Author URI:        https://www.montonio.com
     
    2121}
    2222
    23 define( 'WC_MONTONIO_PLUGIN_VERSION', '9.1.4' );
     23define( 'WC_MONTONIO_PLUGIN_VERSION', '9.1.5' );
    2424define( 'WC_MONTONIO_PLUGIN_URL', plugins_url( '', __FILE__ ) );
    2525define( 'WC_MONTONIO_PLUGIN_PATH', dirname( __FILE__ ) );
  • montonio-for-woocommerce/trunk/readme.txt

    r3381865 r3382638  
    11=== Montonio for WooCommerce ===
    2 Version: 9.1.4
     2Version: 9.1.5
    33Date: 2019-09-04
    44Contributors: Montonio
     
    66Requires at least: 5.0
    77Tested up to: 6.8
    8 Stable tag: 9.1.4
     8Stable tag: 9.1.5
    99Requires PHP: 7.0
    1010Minimum requirements: WooCommerce 4.0 or greater
     
    137137
    138138== Changelog ==
     139= 9.1.5 =
     140* Tweak – Updated shipment status to "Label printed" after labels are printed
     141* Fix – Resolved issue where courier shipping method data was not being saved to order metadata, causing shipment creation failure
     142
    139143= 9.1.4 =
    140144* Added – Cash on Delivery payment method support for supported shipping methods
  • montonio-for-woocommerce/trunk/templates/admin-order-shipping-panel.php

    r3351222 r3382638  
    2828    if ( $shipping_method_item ) {
    2929        $carrier_name = $shipping_method_item->carrier_code ?? '';
    30         $type         = $shipping_method_item->item_type ?? '';
     30        $type         = $shipping_method_item->method_type ?? '';
    3131    }
    3232}
     
    7878                'registered'         => __( 'Registered', 'montonio-for-woocommerce' ),
    7979                'registrationFailed' => __( 'Registration failed', 'montonio-for-woocommerce' ),
    80                 'labelsCreated'      => __( 'Labels created', 'montonio-for-woocommerce' ),
     80                'labelsCreated'      => __( 'Label printed', 'montonio-for-woocommerce' ),
    8181                'inTransit'          => __( 'In transit', 'montonio-for-woocommerce' ),
    8282                'awaitingCollection' => __( 'Awaiting collection', 'montonio-for-woocommerce' ),
Note: See TracChangeset for help on using the changeset viewer.