Plugin Directory

Changeset 3272155


Ignore:
Timestamp:
04/14/2025 09:02:52 AM (12 months ago)
Author:
SamNajian
Message:

Tagging version 4.5.0

Location:
woocommerce-shipstation-integration
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • woocommerce-shipstation-integration/tags/4.5.0/changelog.txt

    r3268088 r3272155  
    11*** ShipStation for WooCommerce ***
     2
     3= 4.5.0 - 2025-04-14 =
     4* Add   - woocommerce_shipstation_shipnotify_order_shipped filter - Allow to override is order shipped.
     5* Add   - woocommerce_shipstation_shipnotify_tracking_note filter - Allow to override tracking note.
     6* Add   - woocommerce_shipstation_shipnotify_send_tracking_note filter - Allow to override should tracking note be sent to customer.
     7* Tweak - Move woocommerce_shipstation_shipnotify action before order status is updated.
    28
    39= 4.4.9 - 2025-04-07 =
  • woocommerce-shipstation-integration/tags/4.5.0/includes/api-requests/class-wc-shipstation-api-shipnotify.php

    r3253325 r3272155  
    338338        }
    339339
    340         $order->add_order_note( $order_note, $is_customer_note );
    341 
    342         // Update order status.
    343         if ( $order_shipped && WC_ShipStation_Integration::$shipped_status !== $current_status ) {
    344             $order->update_status( WC_ShipStation_Integration::$shipped_status );
    345 
    346             /* translators: 1) order ID 2) shipment status */
    347             $this->log( sprintf( __( 'Updated order %1$s to status %2$s', 'woocommerce-shipstation-integration' ), $order_id, WC_ShipStation_Integration::$shipped_status ) );
    348         }
     340        $tracking_data = array(
     341            'tracking_number' => $tracking_number,
     342            'carrier'         => $carrier,
     343            'ship_date'       => $timestamp,
     344            'xml'             => $shipstation_xml,
     345        );
     346
     347        /**
     348        * Allow to override tracking note.
     349        *
     350        * @param string $order_note
     351        * @param WC_Order $order
     352        * @param array $tracking_data
     353        *
     354        * @since 4.5.0
     355        */
     356        $order_note = apply_filters(
     357            'woocommerce_shipstation_shipnotify_tracking_note',
     358            $order_note,
     359            $order,
     360            $tracking_data
     361        );
     362
     363        $order->add_order_note(
     364            $order_note,
     365            /**
     366            * Allow to override should tracking note be sent to customer.
     367            *
     368            * @param bool $order_shipped
     369            * @param string $order_note
     370            * @param WC_Order $order
     371            * @param array $tracking_data
     372            *
     373            * @since 4.5.0
     374            */
     375            apply_filters(
     376                'woocommerce_shipstation_shipnotify_send_tracking_note',
     377                $is_customer_note,
     378                $order_note,
     379                $order,
     380                $tracking_data
     381            )
     382        );
    349383
    350384        /**
     
    356390            'woocommerce_shipstation_shipnotify',
    357391            $order,
    358             array(
    359                 'tracking_number' => $tracking_number,
    360                 'carrier'         => $carrier,
    361                 'ship_date'       => $timestamp,
    362                 'xml'             => $shipstation_xml,
     392            $tracking_data
     393        );
     394
     395        // Update order status.
     396        if (
     397            /**
     398            * Allow to override is order shipped flag.
     399            *
     400            * @param bool $order_shipped
     401            * @param WC_Order $order
     402            * @param array $tracking_data
     403            *
     404            * @since 4.5.0
     405            */
     406            apply_filters(
     407                'woocommerce_shipstation_shipnotify_order_shipped',
     408                $order_shipped,
     409                $order,
     410                $tracking_data
    363411            )
    364         );
     412            && WC_ShipStation_Integration::$shipped_status !== $current_status
     413        ) {
     414            $order->update_status( WC_ShipStation_Integration::$shipped_status );
     415
     416            /* translators: 1) order ID 2) shipment status */
     417            $this->log( sprintf( __( 'Updated order %1$s to status %2$s', 'woocommerce-shipstation-integration' ), $order_id, WC_ShipStation_Integration::$shipped_status ) );
     418        }
    365419
    366420        status_header( 200 );
  • woocommerce-shipstation-integration/tags/4.5.0/languages/woocommerce-shipstation.pot

    r3268088 r3272155  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: WooCommerce - ShipStation Integration 4.4.9\n"
     5"Project-Id-Version: WooCommerce - ShipStation Integration 4.5.0\n"
    66"Report-Msgid-Bugs-To: "
    77"https://wordpress.org/support/plugin/woocommerce-shipstation\n"
    8 "POT-Creation-Date: 2025-04-07 19:42:35+00:00\n"
     8"POT-Creation-Date: 2025-04-14 09:02:31+00:00\n"
    99"MIME-Version: 1.0\n"
    1010"Content-Type: text/plain; charset=utf-8\n"
     
    9595msgstr ""
    9696
    97 #: includes/api-requests/class-wc-shipstation-api-shipnotify.php:347
     97#: includes/api-requests/class-wc-shipstation-api-shipnotify.php:417
    9898#. translators: 1) order ID 2) shipment status
    9999msgid "Updated order %1$s to status %2$s"
  • woocommerce-shipstation-integration/tags/4.5.0/readme.txt

    r3268088 r3272155  
    88Requires PHP: 7.4
    99Requires Plugins: woocommerce
    10 Stable tag: 4.4.9
     10Stable tag: 4.5.0
    1111License: GPLv3
    1212License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    6868
    6969== Changelog ==
     70
     71= 4.5.0 - 2025-04-14 =
     72* Add   - woocommerce_shipstation_shipnotify_order_shipped filter - Allow to override is order shipped.
     73* Add   - woocommerce_shipstation_shipnotify_tracking_note filter - Allow to override tracking note.
     74* Add   - woocommerce_shipstation_shipnotify_send_tracking_note filter - Allow to override should tracking note be sent to customer.
     75* Tweak - Move woocommerce_shipstation_shipnotify action before order status is updated.
    7076
    7177= 4.4.9 - 2025-04-07 =
  • woocommerce-shipstation-integration/tags/4.5.0/woocommerce-shipstation.php

    r3268088 r3272155  
    33 * Plugin Name: WooCommerce - ShipStation Integration
    44 * Plugin URI: https://woocommerce.com/products/shipstation-integration/
    5  * Version: 4.4.9
     5 * Version: 4.5.0
    66 * Description: Adds ShipStation label printing support to WooCommerce. Requires server DomDocument support.
    77 * Author: WooCommerce
     
    5050    }
    5151
    52     define( 'WC_SHIPSTATION_VERSION', '4.4.9' ); // WRCS: DEFINED_VERSION.
     52    define( 'WC_SHIPSTATION_VERSION', '4.5.0' ); // WRCS: DEFINED_VERSION.
    5353
    5454    if ( ! defined( 'WC_SHIPSTATION_EXPORT_LIMIT' ) ) {
  • woocommerce-shipstation-integration/trunk/changelog.txt

    r3268088 r3272155  
    11*** ShipStation for WooCommerce ***
     2
     3= 4.5.0 - 2025-04-14 =
     4* Add   - woocommerce_shipstation_shipnotify_order_shipped filter - Allow to override is order shipped.
     5* Add   - woocommerce_shipstation_shipnotify_tracking_note filter - Allow to override tracking note.
     6* Add   - woocommerce_shipstation_shipnotify_send_tracking_note filter - Allow to override should tracking note be sent to customer.
     7* Tweak - Move woocommerce_shipstation_shipnotify action before order status is updated.
    28
    39= 4.4.9 - 2025-04-07 =
  • woocommerce-shipstation-integration/trunk/includes/api-requests/class-wc-shipstation-api-shipnotify.php

    r3253325 r3272155  
    338338        }
    339339
    340         $order->add_order_note( $order_note, $is_customer_note );
    341 
    342         // Update order status.
    343         if ( $order_shipped && WC_ShipStation_Integration::$shipped_status !== $current_status ) {
    344             $order->update_status( WC_ShipStation_Integration::$shipped_status );
    345 
    346             /* translators: 1) order ID 2) shipment status */
    347             $this->log( sprintf( __( 'Updated order %1$s to status %2$s', 'woocommerce-shipstation-integration' ), $order_id, WC_ShipStation_Integration::$shipped_status ) );
    348         }
     340        $tracking_data = array(
     341            'tracking_number' => $tracking_number,
     342            'carrier'         => $carrier,
     343            'ship_date'       => $timestamp,
     344            'xml'             => $shipstation_xml,
     345        );
     346
     347        /**
     348        * Allow to override tracking note.
     349        *
     350        * @param string $order_note
     351        * @param WC_Order $order
     352        * @param array $tracking_data
     353        *
     354        * @since 4.5.0
     355        */
     356        $order_note = apply_filters(
     357            'woocommerce_shipstation_shipnotify_tracking_note',
     358            $order_note,
     359            $order,
     360            $tracking_data
     361        );
     362
     363        $order->add_order_note(
     364            $order_note,
     365            /**
     366            * Allow to override should tracking note be sent to customer.
     367            *
     368            * @param bool $order_shipped
     369            * @param string $order_note
     370            * @param WC_Order $order
     371            * @param array $tracking_data
     372            *
     373            * @since 4.5.0
     374            */
     375            apply_filters(
     376                'woocommerce_shipstation_shipnotify_send_tracking_note',
     377                $is_customer_note,
     378                $order_note,
     379                $order,
     380                $tracking_data
     381            )
     382        );
    349383
    350384        /**
     
    356390            'woocommerce_shipstation_shipnotify',
    357391            $order,
    358             array(
    359                 'tracking_number' => $tracking_number,
    360                 'carrier'         => $carrier,
    361                 'ship_date'       => $timestamp,
    362                 'xml'             => $shipstation_xml,
     392            $tracking_data
     393        );
     394
     395        // Update order status.
     396        if (
     397            /**
     398            * Allow to override is order shipped flag.
     399            *
     400            * @param bool $order_shipped
     401            * @param WC_Order $order
     402            * @param array $tracking_data
     403            *
     404            * @since 4.5.0
     405            */
     406            apply_filters(
     407                'woocommerce_shipstation_shipnotify_order_shipped',
     408                $order_shipped,
     409                $order,
     410                $tracking_data
    363411            )
    364         );
     412            && WC_ShipStation_Integration::$shipped_status !== $current_status
     413        ) {
     414            $order->update_status( WC_ShipStation_Integration::$shipped_status );
     415
     416            /* translators: 1) order ID 2) shipment status */
     417            $this->log( sprintf( __( 'Updated order %1$s to status %2$s', 'woocommerce-shipstation-integration' ), $order_id, WC_ShipStation_Integration::$shipped_status ) );
     418        }
    365419
    366420        status_header( 200 );
  • woocommerce-shipstation-integration/trunk/languages/woocommerce-shipstation.pot

    r3268088 r3272155  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: WooCommerce - ShipStation Integration 4.4.9\n"
     5"Project-Id-Version: WooCommerce - ShipStation Integration 4.5.0\n"
    66"Report-Msgid-Bugs-To: "
    77"https://wordpress.org/support/plugin/woocommerce-shipstation\n"
    8 "POT-Creation-Date: 2025-04-07 19:42:35+00:00\n"
     8"POT-Creation-Date: 2025-04-14 09:02:31+00:00\n"
    99"MIME-Version: 1.0\n"
    1010"Content-Type: text/plain; charset=utf-8\n"
     
    9595msgstr ""
    9696
    97 #: includes/api-requests/class-wc-shipstation-api-shipnotify.php:347
     97#: includes/api-requests/class-wc-shipstation-api-shipnotify.php:417
    9898#. translators: 1) order ID 2) shipment status
    9999msgid "Updated order %1$s to status %2$s"
  • woocommerce-shipstation-integration/trunk/readme.txt

    r3268088 r3272155  
    88Requires PHP: 7.4
    99Requires Plugins: woocommerce
    10 Stable tag: 4.4.9
     10Stable tag: 4.5.0
    1111License: GPLv3
    1212License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    6868
    6969== Changelog ==
     70
     71= 4.5.0 - 2025-04-14 =
     72* Add   - woocommerce_shipstation_shipnotify_order_shipped filter - Allow to override is order shipped.
     73* Add   - woocommerce_shipstation_shipnotify_tracking_note filter - Allow to override tracking note.
     74* Add   - woocommerce_shipstation_shipnotify_send_tracking_note filter - Allow to override should tracking note be sent to customer.
     75* Tweak - Move woocommerce_shipstation_shipnotify action before order status is updated.
    7076
    7177= 4.4.9 - 2025-04-07 =
  • woocommerce-shipstation-integration/trunk/woocommerce-shipstation.php

    r3268088 r3272155  
    33 * Plugin Name: WooCommerce - ShipStation Integration
    44 * Plugin URI: https://woocommerce.com/products/shipstation-integration/
    5  * Version: 4.4.9
     5 * Version: 4.5.0
    66 * Description: Adds ShipStation label printing support to WooCommerce. Requires server DomDocument support.
    77 * Author: WooCommerce
     
    5050    }
    5151
    52     define( 'WC_SHIPSTATION_VERSION', '4.4.9' ); // WRCS: DEFINED_VERSION.
     52    define( 'WC_SHIPSTATION_VERSION', '4.5.0' ); // WRCS: DEFINED_VERSION.
    5353
    5454    if ( ! defined( 'WC_SHIPSTATION_EXPORT_LIMIT' ) ) {
Note: See TracChangeset for help on using the changeset viewer.