Plugin Directory

Changeset 3320225


Ignore:
Timestamp:
06/30/2025 07:17:57 PM (7 months ago)
Author:
ferdev
Message:

Tagging version 4.7.3

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

Legend:

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

    r3317102 r3320225  
    11*** ShipStation for WooCommerce ***
     2
     3= 4.7.3 - 2025-06-30 =
     4* Fix   - Compatibility issue with WooCommerce version lower than 8.9.
    25
    36= 4.7.2 - 2025-06-24 =
  • woocommerce-shipstation-integration/tags/4.7.3/includes/api/requests/class-wc-shipstation-api-export.php

    r3313351 r3320225  
    256256
    257257            // Maybe append the gift and gift message XML element.
    258             if ( $order->get_meta( Checkout::get_block_prefixed_meta_key( 'is_gift' ) ) ) {
     258            if ( class_exists( 'WooCommerce\Shipping\ShipStation\Checkout' ) && $order->get_meta( Checkout::get_block_prefixed_meta_key( 'is_gift' ) ) ) {
    259259                $this->xml_append( $order_xml, 'Gift', 'true', false );
    260260
  • woocommerce-shipstation-integration/tags/4.7.3/includes/class-wc-shipstation-integration.php

    r3313351 r3320225  
    184184    public function init_form_fields() {
    185185        $this->form_fields = include WC_SHIPSTATION_ABSPATH . 'includes/data/data-settings.php';
     186
     187        // If Checkout class does not exist, disable the gift option.
     188        if ( ! class_exists( 'WooCommerce\Shipping\ShipStation\Checkout' ) ) {
     189            $this->form_fields['gift_enabled']['custom_attributes'] = array( 'disabled' => 'disabled' );
     190            $this->form_fields['gift_enabled']['description']       = __( 'This feature requires WooCommerce 9.7.0 or higher.', 'woocommerce-shipstation-integration' );
     191        }
    186192    }
    187193
  • woocommerce-shipstation-integration/tags/4.7.3/languages/woocommerce-shipstation.pot

    r3317102 r3320225  
    11# Copyright (C) 2025 WooCommerce
    2 # This file is distributed under the same license as the ShipStation for WooCommerce package.
    3 msgid ""
    4 msgstr ""
    5 "Project-Id-Version: ShipStation for WooCommerce 4.7.2\n"
     2# This file is distributed under the GPLv3.
     3msgid ""
     4msgstr ""
     5"Project-Id-Version: ShipStation for WooCommerce 4.7.3\n"
    66"Report-Msgid-Bugs-To: "
    77"https://wordpress.org/support/plugin/woocommerce-shipstation\n"
    8 "POT-Creation-Date: 2025-06-24 15:32:25+00:00\n"
     8"POT-Creation-Date: 2025-06-30 19:17:20+00:00\n"
    99"MIME-Version: 1.0\n"
    1010"Content-Type: text/plain; charset=utf-8\n"
     
    250250msgstr ""
    251251
    252 #: includes/class-wc-shipstation-integration.php:221
     252#: includes/class-wc-shipstation-integration.php:190
     253msgid "This feature requires WooCommerce 9.7.0 or higher."
     254msgstr ""
     255
     256#: includes/class-wc-shipstation-integration.php:227
    253257msgid "Action failed. Please refresh the page and retry."
    254258msgstr ""
    255259
    256 #: includes/class-wc-shipstation-integration.php:226
     260#: includes/class-wc-shipstation-integration.php:232
    257261msgid "Cheatin’ huh?"
    258262msgstr ""
    259263
    260 #: includes/class-wc-shipstation-integration.php:242
     264#: includes/class-wc-shipstation-integration.php:248
    261265msgid "ShipStation logo"
    262266msgstr ""
    263267
    264 #: includes/class-wc-shipstation-integration.php:252
     268#: includes/class-wc-shipstation-integration.php:258
    265269#. translators: %s: ShipStation URL
    266270msgid ""
     
    270274msgstr ""
    271275
    272 #: includes/class-wc-shipstation-integration.php:270
     276#: includes/class-wc-shipstation-integration.php:276
    273277#. translators: %s: ShipStation Auth Key
    274278msgid ""
     
    277281msgstr ""
    278282
    279 #: includes/class-wc-shipstation-integration.php:277
     283#: includes/class-wc-shipstation-integration.php:283
    280284msgid "Once connected you're good to go!"
    281285msgstr ""
    282286
    283 #: includes/class-wc-shipstation-integration.php:284
     287#: includes/class-wc-shipstation-integration.php:290
    284288#. translators: %1$s: ShipStation plugin settings URL, %2$s: ShipStation
    285289#. documentation URL
     
    398402msgstr ""
    399403
    400 #: woocommerce-shipstation.php:47
     404#: woocommerce-shipstation.php:51
    401405#. translators: %s WC download URL link.
    402406msgid ""
     
    405409msgstr ""
    406410
    407 #: woocommerce-shipstation.php:163
     411#: woocommerce-shipstation.php:172
    408412msgid "Settings"
    409413msgstr ""
    410414
    411 #: woocommerce-shipstation.php:164
     415#: woocommerce-shipstation.php:173
    412416msgid "Support"
    413417msgstr ""
    414418
    415 #: woocommerce-shipstation.php:165
     419#: woocommerce-shipstation.php:174
    416420msgid "Docs"
    417421msgstr ""
  • woocommerce-shipstation-integration/tags/4.7.3/readme.txt

    r3317102 r3320225  
    88Requires PHP: 7.4
    99Requires Plugins: woocommerce
    10 Stable tag: 4.7.2
     10Stable tag: 4.7.3
    1111License: GPLv3
    1212License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    7070
    7171== Changelog ==
     72
     73= 4.7.3 - 2025-06-30 =
     74* Fix   - Compatibility issue with WooCommerce version lower than 8.9.
    7275
    7376= 4.7.2 - 2025-06-24 =
  • woocommerce-shipstation-integration/tags/4.7.3/woocommerce-shipstation.php

    r3317102 r3320225  
    33 * Plugin Name: ShipStation for WooCommerce
    44 * Plugin URI: https://woocommerce.com/products/shipstation-integration/
    5  * Version: 4.7.2
     5 * Version: 4.7.3
    66 * Description: Ship your WooCommerce orders with confidence, save on top carriers, and automate your processes with ShipStation.
    77 * Author: WooCommerce
     
    1515 * WC requires at least: 9.7
    1616 * WC tested up to: 9.9
     17 *
     18 * Copyright: © 2025 WooCommerce
     19 * License: GPLv3
     20 * License URI: https://www.gnu.org/licenses/gpl-3.0.html
    1721 *
    1822 * @package WC_ShipStation
     
    6064    }
    6165
    62     define( 'WC_SHIPSTATION_VERSION', '4.7.2' ); // WRCS: DEFINED_VERSION.
     66    define( 'WC_SHIPSTATION_VERSION', '4.7.3' ); // WRCS: DEFINED_VERSION.
    6367
    6468    if ( ! defined( 'WC_SHIPSTATION_EXPORT_LIMIT' ) ) {
     
    9397    require_once WC_SHIPSTATION_ABSPATH . 'includes/trait-woocommerce-order-util.php';
    9498    include_once WC_SHIPSTATION_ABSPATH . 'includes/class-wc-shipstation-integration.php';
    95     include_once WC_SHIPSTATION_ABSPATH . 'includes/class-checkout.php';
    9699    include_once WC_SHIPSTATION_ABSPATH . 'includes/class-wc-shipstation-privacy.php';
     100
     101    // Include the Checkout class if WooCommerce version is 9.7.0 or higher.
     102    // This class is used to handle the gift message feature in the checkout process.
     103    if ( version_compare( WC()->version, '9.7.0', '>=' ) ) {
     104        include_once WC_SHIPSTATION_ABSPATH . 'includes/class-checkout.php';
     105    }
    97106}
    98107
  • woocommerce-shipstation-integration/trunk/changelog.txt

    r3317102 r3320225  
    11*** ShipStation for WooCommerce ***
     2
     3= 4.7.3 - 2025-06-30 =
     4* Fix   - Compatibility issue with WooCommerce version lower than 8.9.
    25
    36= 4.7.2 - 2025-06-24 =
  • woocommerce-shipstation-integration/trunk/includes/api/requests/class-wc-shipstation-api-export.php

    r3313351 r3320225  
    256256
    257257            // Maybe append the gift and gift message XML element.
    258             if ( $order->get_meta( Checkout::get_block_prefixed_meta_key( 'is_gift' ) ) ) {
     258            if ( class_exists( 'WooCommerce\Shipping\ShipStation\Checkout' ) && $order->get_meta( Checkout::get_block_prefixed_meta_key( 'is_gift' ) ) ) {
    259259                $this->xml_append( $order_xml, 'Gift', 'true', false );
    260260
  • woocommerce-shipstation-integration/trunk/includes/class-wc-shipstation-integration.php

    r3313351 r3320225  
    184184    public function init_form_fields() {
    185185        $this->form_fields = include WC_SHIPSTATION_ABSPATH . 'includes/data/data-settings.php';
     186
     187        // If Checkout class does not exist, disable the gift option.
     188        if ( ! class_exists( 'WooCommerce\Shipping\ShipStation\Checkout' ) ) {
     189            $this->form_fields['gift_enabled']['custom_attributes'] = array( 'disabled' => 'disabled' );
     190            $this->form_fields['gift_enabled']['description']       = __( 'This feature requires WooCommerce 9.7.0 or higher.', 'woocommerce-shipstation-integration' );
     191        }
    186192    }
    187193
  • woocommerce-shipstation-integration/trunk/languages/woocommerce-shipstation.pot

    r3317102 r3320225  
    11# Copyright (C) 2025 WooCommerce
    2 # This file is distributed under the same license as the ShipStation for WooCommerce package.
    3 msgid ""
    4 msgstr ""
    5 "Project-Id-Version: ShipStation for WooCommerce 4.7.2\n"
     2# This file is distributed under the GPLv3.
     3msgid ""
     4msgstr ""
     5"Project-Id-Version: ShipStation for WooCommerce 4.7.3\n"
    66"Report-Msgid-Bugs-To: "
    77"https://wordpress.org/support/plugin/woocommerce-shipstation\n"
    8 "POT-Creation-Date: 2025-06-24 15:32:25+00:00\n"
     8"POT-Creation-Date: 2025-06-30 19:17:20+00:00\n"
    99"MIME-Version: 1.0\n"
    1010"Content-Type: text/plain; charset=utf-8\n"
     
    250250msgstr ""
    251251
    252 #: includes/class-wc-shipstation-integration.php:221
     252#: includes/class-wc-shipstation-integration.php:190
     253msgid "This feature requires WooCommerce 9.7.0 or higher."
     254msgstr ""
     255
     256#: includes/class-wc-shipstation-integration.php:227
    253257msgid "Action failed. Please refresh the page and retry."
    254258msgstr ""
    255259
    256 #: includes/class-wc-shipstation-integration.php:226
     260#: includes/class-wc-shipstation-integration.php:232
    257261msgid "Cheatin’ huh?"
    258262msgstr ""
    259263
    260 #: includes/class-wc-shipstation-integration.php:242
     264#: includes/class-wc-shipstation-integration.php:248
    261265msgid "ShipStation logo"
    262266msgstr ""
    263267
    264 #: includes/class-wc-shipstation-integration.php:252
     268#: includes/class-wc-shipstation-integration.php:258
    265269#. translators: %s: ShipStation URL
    266270msgid ""
     
    270274msgstr ""
    271275
    272 #: includes/class-wc-shipstation-integration.php:270
     276#: includes/class-wc-shipstation-integration.php:276
    273277#. translators: %s: ShipStation Auth Key
    274278msgid ""
     
    277281msgstr ""
    278282
    279 #: includes/class-wc-shipstation-integration.php:277
     283#: includes/class-wc-shipstation-integration.php:283
    280284msgid "Once connected you're good to go!"
    281285msgstr ""
    282286
    283 #: includes/class-wc-shipstation-integration.php:284
     287#: includes/class-wc-shipstation-integration.php:290
    284288#. translators: %1$s: ShipStation plugin settings URL, %2$s: ShipStation
    285289#. documentation URL
     
    398402msgstr ""
    399403
    400 #: woocommerce-shipstation.php:47
     404#: woocommerce-shipstation.php:51
    401405#. translators: %s WC download URL link.
    402406msgid ""
     
    405409msgstr ""
    406410
    407 #: woocommerce-shipstation.php:163
     411#: woocommerce-shipstation.php:172
    408412msgid "Settings"
    409413msgstr ""
    410414
    411 #: woocommerce-shipstation.php:164
     415#: woocommerce-shipstation.php:173
    412416msgid "Support"
    413417msgstr ""
    414418
    415 #: woocommerce-shipstation.php:165
     419#: woocommerce-shipstation.php:174
    416420msgid "Docs"
    417421msgstr ""
  • woocommerce-shipstation-integration/trunk/readme.txt

    r3317102 r3320225  
    88Requires PHP: 7.4
    99Requires Plugins: woocommerce
    10 Stable tag: 4.7.2
     10Stable tag: 4.7.3
    1111License: GPLv3
    1212License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    7070
    7171== Changelog ==
     72
     73= 4.7.3 - 2025-06-30 =
     74* Fix   - Compatibility issue with WooCommerce version lower than 8.9.
    7275
    7376= 4.7.2 - 2025-06-24 =
  • woocommerce-shipstation-integration/trunk/woocommerce-shipstation.php

    r3317102 r3320225  
    33 * Plugin Name: ShipStation for WooCommerce
    44 * Plugin URI: https://woocommerce.com/products/shipstation-integration/
    5  * Version: 4.7.2
     5 * Version: 4.7.3
    66 * Description: Ship your WooCommerce orders with confidence, save on top carriers, and automate your processes with ShipStation.
    77 * Author: WooCommerce
     
    1515 * WC requires at least: 9.7
    1616 * WC tested up to: 9.9
     17 *
     18 * Copyright: © 2025 WooCommerce
     19 * License: GPLv3
     20 * License URI: https://www.gnu.org/licenses/gpl-3.0.html
    1721 *
    1822 * @package WC_ShipStation
     
    6064    }
    6165
    62     define( 'WC_SHIPSTATION_VERSION', '4.7.2' ); // WRCS: DEFINED_VERSION.
     66    define( 'WC_SHIPSTATION_VERSION', '4.7.3' ); // WRCS: DEFINED_VERSION.
    6367
    6468    if ( ! defined( 'WC_SHIPSTATION_EXPORT_LIMIT' ) ) {
     
    9397    require_once WC_SHIPSTATION_ABSPATH . 'includes/trait-woocommerce-order-util.php';
    9498    include_once WC_SHIPSTATION_ABSPATH . 'includes/class-wc-shipstation-integration.php';
    95     include_once WC_SHIPSTATION_ABSPATH . 'includes/class-checkout.php';
    9699    include_once WC_SHIPSTATION_ABSPATH . 'includes/class-wc-shipstation-privacy.php';
     100
     101    // Include the Checkout class if WooCommerce version is 9.7.0 or higher.
     102    // This class is used to handle the gift message feature in the checkout process.
     103    if ( version_compare( WC()->version, '9.7.0', '>=' ) ) {
     104        include_once WC_SHIPSTATION_ABSPATH . 'includes/class-checkout.php';
     105    }
    97106}
    98107
Note: See TracChangeset for help on using the changeset viewer.