Changeset 3313351
- Timestamp:
- 06/17/2025 03:24:32 PM (9 months ago)
- Location:
- woocommerce-shipstation-integration
- Files:
-
- 42 added
- 2 deleted
- 16 edited
- 1 copied
-
tags/4.7.0 (copied) (copied from woocommerce-shipstation-integration/trunk)
-
tags/4.7.0/assets/css/admin.css (modified) (1 diff)
-
tags/4.7.0/assets/css/block-checkout.css (added)
-
tags/4.7.0/assets/css/classic-checkout.css (added)
-
tags/4.7.0/assets/js (added)
-
tags/4.7.0/assets/js/checkout.js (added)
-
tags/4.7.0/assets/js/checkout.min.js (added)
-
tags/4.7.0/assets/sass (added)
-
tags/4.7.0/assets/sass/admin.scss (added)
-
tags/4.7.0/assets/sass/block-checkout.scss (added)
-
tags/4.7.0/assets/sass/classic-checkout.scss (added)
-
tags/4.7.0/changelog.txt (modified) (2 diffs)
-
tags/4.7.0/includes/api (added)
-
tags/4.7.0/includes/api-requests (deleted)
-
tags/4.7.0/includes/api/docs (added)
-
tags/4.7.0/includes/api/docs/inventory-api.md (added)
-
tags/4.7.0/includes/api/requests (added)
-
tags/4.7.0/includes/api/requests/class-wc-safe-domdocument.php (added)
-
tags/4.7.0/includes/api/requests/class-wc-shipstation-api-export.php (added)
-
tags/4.7.0/includes/api/requests/class-wc-shipstation-api-request.php (added)
-
tags/4.7.0/includes/api/requests/class-wc-shipstation-api-shipnotify.php (added)
-
tags/4.7.0/includes/api/rest (added)
-
tags/4.7.0/includes/api/rest/class-inventory-controller.php (added)
-
tags/4.7.0/includes/class-checkout.php (added)
-
tags/4.7.0/includes/class-rest-api-loader.php (added)
-
tags/4.7.0/includes/class-wc-shipstation-api.php (modified) (2 diffs)
-
tags/4.7.0/includes/class-wc-shipstation-integration.php (modified) (2 diffs)
-
tags/4.7.0/includes/data/data-settings.php (modified) (2 diffs)
-
tags/4.7.0/languages/woocommerce-shipstation.pot (modified) (10 diffs)
-
tags/4.7.0/readme.txt (modified) (3 diffs)
-
tags/4.7.0/woocommerce-shipstation.php (modified) (5 diffs)
-
trunk/assets/css/admin.css (modified) (1 diff)
-
trunk/assets/css/block-checkout.css (added)
-
trunk/assets/css/classic-checkout.css (added)
-
trunk/assets/js (added)
-
trunk/assets/js/checkout.js (added)
-
trunk/assets/js/checkout.min.js (added)
-
trunk/assets/sass (added)
-
trunk/assets/sass/admin.scss (added)
-
trunk/assets/sass/block-checkout.scss (added)
-
trunk/assets/sass/classic-checkout.scss (added)
-
trunk/changelog.txt (modified) (2 diffs)
-
trunk/includes/api (added)
-
trunk/includes/api-requests (deleted)
-
trunk/includes/api/docs (added)
-
trunk/includes/api/docs/inventory-api.md (added)
-
trunk/includes/api/requests (added)
-
trunk/includes/api/requests/class-wc-safe-domdocument.php (added)
-
trunk/includes/api/requests/class-wc-shipstation-api-export.php (added)
-
trunk/includes/api/requests/class-wc-shipstation-api-request.php (added)
-
trunk/includes/api/requests/class-wc-shipstation-api-shipnotify.php (added)
-
trunk/includes/api/rest (added)
-
trunk/includes/api/rest/class-inventory-controller.php (added)
-
trunk/includes/class-checkout.php (added)
-
trunk/includes/class-rest-api-loader.php (added)
-
trunk/includes/class-wc-shipstation-api.php (modified) (2 diffs)
-
trunk/includes/class-wc-shipstation-integration.php (modified) (2 diffs)
-
trunk/includes/data/data-settings.php (modified) (2 diffs)
-
trunk/languages/woocommerce-shipstation.pot (modified) (10 diffs)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/woocommerce-shipstation.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woocommerce-shipstation-integration/tags/4.7.0/assets/css/admin.css
r3300481 r3313351 1 .shipstation-logo { 2 width: 150px; 3 margin: 16px 0 0 0; 4 } 5 6 .shipstation-external-link:after { 7 font-family: "dashicons"; 8 content: "\f504"; 9 display: inline-block; 10 vertical-align: bottom; 11 } 12 13 .woocommerce-shipstation-activation-notice-dismiss { 14 position: relative; 15 float: right; 16 padding: 9px 0 9px 9px; 17 text-decoration: none; 18 } 1 .shipstation-logo{width:150px;margin:16px 0 0 0}.shipstation-external-link:after{font-family:dashicons;content:"";display:inline-block;vertical-align:bottom}.woocommerce-shipstation-activation-notice-dismiss{position:relative;float:right;padding:9px 0 9px 9px;text-decoration:none} -
woocommerce-shipstation-integration/tags/4.7.0/changelog.txt
r3308688 r3313351 1 1 *** ShipStation for WooCommerce *** 2 3 = 4.7.0 - 2025-06-17 = 4 * Add - REST API endpoints to update and retrieve product inventory data. 5 * Add - Gift feature. 2 6 3 7 = 4.6.1 - 2025-06-09 = … … 6 10 = 4.6.0 - 2025-06-02 = 7 11 * Add - New hook `woocommerce_shipstation_shipnotify_status_updated` that will be called after the order status is changed. 12 * Add - REST API endpoints to update and retrieve product inventory data. 8 13 9 14 = 4.5.2 - 2025-05-26 = -
woocommerce-shipstation-integration/tags/4.7.0/includes/class-wc-shipstation-api.php
r3111282 r3313351 10 10 } 11 11 12 require_once WC_SHIPSTATION_ABSPATH . 'includes/api -requests/class-wc-shipstation-api-request.php';12 require_once WC_SHIPSTATION_ABSPATH . 'includes/api/requests/class-wc-shipstation-api-request.php'; 13 13 14 14 /** … … 95 95 /* translators: 1: query string */ 96 96 $this->log( sprintf( esc_html__( 'Input params: %s', 'woocommerce-shipstation-integration' ), http_build_query( $obfuscated_request ) ) ); 97 $request_class = include WC_SHIPSTATION_ABSPATH . 'includes/api -requests/class-wc-shipstation-api-' . $this->request['action'] . '.php';97 $request_class = include WC_SHIPSTATION_ABSPATH . 'includes/api/requests/class-wc-shipstation-api-' . $this->request['action'] . '.php'; 98 98 $request_class->request(); 99 99 } else { -
woocommerce-shipstation-integration/tags/4.7.0/includes/class-wc-shipstation-integration.php
r3300481 r3313351 48 48 49 49 /** 50 * Gift enable flag. 51 * 52 * @var boolean 53 */ 54 public static $gift_enabled = false; 55 56 /** 57 * Order meta keys. 58 * 59 * @var array 60 */ 61 public static array $order_meta_keys = array( 62 'is_gift' => 'shipstation_is_gift', 63 'gift_message' => 'shipstation_gift_message', 64 ); 65 66 /** 50 67 * Constructor 51 68 */ … … 69 86 self::$logging_enabled = 'yes' === $this->get_option( 'logging_enabled', 'yes' ); 70 87 self::$shipped_status = $this->get_option( 'shipped_status', 'wc-completed' ); 88 self::$gift_enabled = 'yes' === $this->get_option( 'gift_enabled', 'no' ); 71 89 72 90 // Force saved . -
woocommerce-shipstation-integration/tags/4.7.0/includes/data/data-settings.php
r3054381 r3313351 67 67 'default' => 'wc-completed', 68 68 ), 69 'gift_enabled' => array( 70 'title' => __( 'Gift', 'woocommerce-shipstation-integration' ), 71 'label' => __( 'Enable Gift options at checkout page', 'woocommerce-shipstation-integration' ), 72 'type' => 'checkbox', 73 'description' => __( 'Allow customer to mark their order as a gift and include a personalized message.', 'woocommerce-shipstation-integration' ), 74 'desc_tip' => __( 'Enable gift fields on the checkout page.', 'woocommerce-shipstation-integration' ), 75 'default' => 'no', 76 ), 69 77 'logging_enabled' => array( 70 78 'title' => __( 'Logging', 'woocommerce-shipstation-integration' ), … … 72 80 'type' => 'checkbox', 73 81 'description' => __( 'Note: this may log personal information. We recommend using this for debugging purposes only and deleting the logs when finished.', 'woocommerce-shipstation-integration' ), 74 'desc_tip' => 'Log all API interactions.',82 'desc_tip' => __( 'Log all API interactions.', 'woocommerce-shipstation-integration' ), 75 83 'default' => 'yes', 76 84 ), -
woocommerce-shipstation-integration/tags/4.7.0/languages/woocommerce-shipstation.pot
r3308688 r3313351 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: ShipStation for WooCommerce 4. 6.1\n"5 "Project-Id-Version: ShipStation for WooCommerce 4.7.0\n" 6 6 "Report-Msgid-Bugs-To: " 7 7 "https://wordpress.org/support/plugin/woocommerce-shipstation\n" 8 "POT-Creation-Date: 2025-06- 09 19:53:14+00:00\n"8 "POT-Creation-Date: 2025-06-17 15:22:22+00:00\n" 9 9 "MIME-Version: 1.0\n" 10 10 "Content-Type: text/plain; charset=utf-8\n" … … 15 15 "X-Generator: node-wp-i18n 1.2.7\n" 16 16 17 #: includes/api -requests/class-wc-shipstation-api-export.php:14517 #: includes/api/requests/class-wc-shipstation-api-export.php:146 18 18 #. translators: 1: order id 19 19 msgid "Order %s can not be found." 20 20 msgstr "" 21 21 22 #: includes/api -requests/class-wc-shipstation-api-export.php:44122 #: includes/api/requests/class-wc-shipstation-api-export.php:453 23 23 msgid "Total Discount" 24 24 msgstr "" 25 25 26 #: includes/api -requests/class-wc-shipstation-api-export.php:47026 #: includes/api/requests/class-wc-shipstation-api-export.php:482 27 27 msgid "Order has been exported to Shipstation" 28 28 msgstr "" 29 29 30 #: includes/api -requests/class-wc-shipstation-api-export.php:48230 #: includes/api/requests/class-wc-shipstation-api-export.php:494 31 31 #. translators: 1: total count 32 32 msgid "Exported %s orders" 33 33 msgstr "" 34 34 35 #: includes/api -requests/class-wc-shipstation-api-request.php:5435 #: includes/api/requests/class-wc-shipstation-api-request.php:54 36 36 #. translators: 1: field name 37 37 msgid "Missing required param: %s" 38 38 msgstr "" 39 39 40 #: includes/api -requests/class-wc-shipstation-api-shipnotify.php:17740 #: includes/api/requests/class-wc-shipstation-api-shipnotify.php:177 41 41 msgid "Missing ShipNotify XML input." 42 42 msgstr "" 43 43 44 #: includes/api -requests/class-wc-shipstation-api-shipnotify.php:19744 #: includes/api/requests/class-wc-shipstation-api-shipnotify.php:197 45 45 msgid "Missing SimpleXML extension for parsing ShipStation XML." 46 46 msgstr "" 47 47 48 #: includes/api -requests/class-wc-shipstation-api-shipnotify.php:20448 #: includes/api/requests/class-wc-shipstation-api-shipnotify.php:204 49 49 msgid "ShipNotify XML: " 50 50 msgstr "" 51 51 52 #: includes/api -requests/class-wc-shipstation-api-shipnotify.php:21052 #: includes/api/requests/class-wc-shipstation-api-shipnotify.php:210 53 53 #. translators: %s is an error message. 54 54 msgid "Cannot parse XML : %s" 55 55 msgstr "" 56 56 57 #: includes/api -requests/class-wc-shipstation-api-shipnotify.php:23157 #: includes/api/requests/class-wc-shipstation-api-shipnotify.php:231 58 58 #. translators: %1$s is order number, %2$d is order id 59 59 msgid "Order number: %1$s or Order ID: %2$d can not be found." 60 60 msgstr "" 61 61 62 #: includes/api -requests/class-wc-shipstation-api-shipnotify.php:23962 #: includes/api/requests/class-wc-shipstation-api-shipnotify.php:239 63 63 #. translators: 1: order id 64 64 msgid "Invalid order ID: %s" 65 65 msgstr "" 66 66 67 #: includes/api -requests/class-wc-shipstation-api-shipnotify.php:24867 #: includes/api/requests/class-wc-shipstation-api-shipnotify.php:248 68 68 msgid "ShipNotify Item: " 69 69 msgstr "" 70 70 71 #: includes/api -requests/class-wc-shipstation-api-shipnotify.php:26171 #: includes/api/requests/class-wc-shipstation-api-shipnotify.php:261 72 72 #. translators: 1: item name 73 73 msgid "Item %s is not shippable product. Skipping." 74 74 msgstr "" 75 75 76 #: includes/api -requests/class-wc-shipstation-api-shipnotify.php:27976 #: includes/api/requests/class-wc-shipstation-api-shipnotify.php:279 77 77 #. translators: 1) shipped items 2) carrier's name 3) shipped date, 4) tracking 78 78 #. number … … 80 80 msgstr "" 81 81 82 #: includes/api -requests/class-wc-shipstation-api-shipnotify.php:29582 #: includes/api/requests/class-wc-shipstation-api-shipnotify.php:295 83 83 #. translators: 1) number of shipped items 2) total shipped items 3) order ID 84 84 msgid "Shipped %1$d out of %2$d items in order %3$s" 85 85 msgstr "" 86 86 87 #: includes/api -requests/class-wc-shipstation-api-shipnotify.php:31187 #: includes/api/requests/class-wc-shipstation-api-shipnotify.php:311 88 88 #. translators: 1) carrier's name 2) shipped date, 3) tracking number 89 89 msgid "Items shipped via %1$s on %2$s with tracking number %3$s (Shipstation)." 90 90 msgstr "" 91 91 92 #: includes/api -requests/class-wc-shipstation-api-shipnotify.php:31892 #: includes/api/requests/class-wc-shipstation-api-shipnotify.php:318 93 93 #. translators: 1: order id 94 94 msgid "No items found - shipping entire order %d." 95 95 msgstr "" 96 96 97 #: includes/api -requests/class-wc-shipstation-api-shipnotify.php:42097 #: includes/api/requests/class-wc-shipstation-api-shipnotify.php:420 98 98 #. translators: 1) order ID 2) shipment status 99 99 msgid "Updated order %1$s to status %2$s" 100 msgstr "" 101 102 #: includes/api/rest/class-inventory-controller.php:54 103 msgid "Current page of the collection." 104 msgstr "" 105 106 #: includes/api/rest/class-inventory-controller.php:65 107 msgid "Maximum number of items to be returned in result set." 108 msgstr "" 109 110 #: includes/api/rest/class-inventory-controller.php:89 111 msgid "ID of the product to retrieve stock data for." 112 msgstr "" 113 114 #: includes/api/rest/class-inventory-controller.php:111 115 msgid "SKU of the product to retrieve stock data for." 116 msgstr "" 117 118 #: includes/api/rest/class-inventory-controller.php:224 119 msgid "Product not found." 120 msgstr "" 121 122 #: includes/api/rest/class-inventory-controller.php:285 123 msgid "Error retrieving products." 124 msgstr "" 125 126 #: includes/api/rest/class-inventory-controller.php:339 127 msgid "Invalid item" 128 msgstr "" 129 130 #: includes/api/rest/class-inventory-controller.php:347 131 msgid "Product ID is not numeric" 132 msgstr "" 133 134 #: includes/api/rest/class-inventory-controller.php:355 135 msgid "Stock quantity is not set or not numeric" 136 msgstr "" 137 138 #: includes/api/rest/class-inventory-controller.php:369 139 msgid "Product not found" 140 msgstr "" 141 142 #: includes/api/rest/class-inventory-controller.php:388 143 msgid "Inventory updated successfully." 144 msgstr "" 145 146 #: includes/api/rest/class-inventory-controller.php:392 147 msgid "No inventory updated due to errors." 148 msgstr "" 149 150 #: includes/api/rest/class-inventory-controller.php:397 151 msgid "Inventory updated with some errors." 152 msgstr "" 153 154 #: includes/api/rest/class-inventory-controller.php:402 155 msgid "No inventory changes made." 156 msgstr "" 157 158 #: includes/class-checkout.php:125 159 msgid "Send as gift" 160 msgstr "" 161 162 #: includes/class-checkout.php:126 163 msgid "Mark order as a gift" 164 msgstr "" 165 166 #: includes/class-checkout.php:127 167 msgid "Gift orders include an optional personal message on the packing slip." 168 msgstr "" 169 170 #: includes/class-checkout.php:133 171 #. translators: Aria-label for the gift message checkbox. 172 msgid "" 173 "Mark order as a gift. When enabled order will include an optional personal " 174 "message on the packing slip." 175 msgstr "" 176 177 #: includes/class-checkout.php:140 178 msgid "Gift message" 179 msgstr "" 180 181 #: includes/class-checkout.php:141 182 msgid "Add gift message" 183 msgstr "" 184 185 #: includes/class-checkout.php:143 186 #. translators: %1$d is the maximum length of the gift message. 187 msgid "Use the space above to enter your gift message. Approx., %1$d characters." 188 msgstr "" 189 190 #: includes/class-checkout.php:145 191 msgid "Message for the gift." 192 msgstr "" 193 194 #: includes/class-checkout.php:149 195 #. translators: %1$d is the maximum length of the gift message. 196 msgid "" 197 "Gift message, optional. Use this field to enter your gift message. " 198 "Approximately %1$d characters." 199 msgstr "" 200 201 #: includes/class-checkout.php:221 202 msgid "optional" 203 msgstr "" 204 205 #: includes/class-checkout.php:357 206 #. translators: %1$d is the maximum length of the gift message. 207 msgid "Please ensure the gift message does not exceed %d characters." 208 msgstr "" 209 210 #: includes/class-checkout.php:514 211 msgid "Yes" 212 msgstr "" 213 214 #: includes/class-checkout.php:514 215 msgid "No" 216 msgstr "" 217 218 #: includes/class-checkout.php:577 includes/class-checkout.php:877 219 #: includes/class-checkout.php:882 220 msgid "Additional information" 100 221 msgstr "" 101 222 … … 118 239 msgstr "" 119 240 120 #: includes/class-wc-shipstation-integration.php: 54241 #: includes/class-wc-shipstation-integration.php:71 121 242 #: includes/class-wc-shipstation-privacy.php:22 122 243 msgid "ShipStation" 123 244 msgstr "" 124 245 125 #: includes/class-wc-shipstation-integration.php: 55246 #: includes/class-wc-shipstation-integration.php:72 126 247 msgid "" 127 248 "ShipStation allows you to retrieve & manage orders, then print labels " … … 129 250 msgstr "" 130 251 131 #: includes/class-wc-shipstation-integration.php:2 03252 #: includes/class-wc-shipstation-integration.php:221 132 253 msgid "Action failed. Please refresh the page and retry." 133 254 msgstr "" 134 255 135 #: includes/class-wc-shipstation-integration.php:2 08256 #: includes/class-wc-shipstation-integration.php:226 136 257 msgid "Cheatin’ huh?" 137 258 msgstr "" 138 259 139 #: includes/class-wc-shipstation-integration.php:2 24260 #: includes/class-wc-shipstation-integration.php:242 140 261 msgid "ShipStation logo" 141 262 msgstr "" 142 263 143 #: includes/class-wc-shipstation-integration.php:2 34264 #: includes/class-wc-shipstation-integration.php:252 144 265 #. translators: %s: ShipStation URL 145 266 msgid "" … … 149 270 msgstr "" 150 271 151 #: includes/class-wc-shipstation-integration.php:2 52272 #: includes/class-wc-shipstation-integration.php:270 152 273 #. translators: %s: ShipStation Auth Key 153 274 msgid "" … … 156 277 msgstr "" 157 278 158 #: includes/class-wc-shipstation-integration.php:2 59279 #: includes/class-wc-shipstation-integration.php:277 159 280 msgid "Once connected you're good to go!" 160 281 msgstr "" 161 282 162 #: includes/class-wc-shipstation-integration.php:2 66283 #: includes/class-wc-shipstation-integration.php:284 163 284 #. translators: %1$s: ShipStation plugin settings URL, %2$s: ShipStation 164 285 #. documentation URL … … 242 363 243 364 #: includes/data/data-settings.php:70 365 msgid "Gift" 366 msgstr "" 367 368 #: includes/data/data-settings.php:71 369 msgid "Enable Gift options at checkout page" 370 msgstr "" 371 372 #: includes/data/data-settings.php:73 373 msgid "" 374 "Allow customer to mark their order as a gift and include a personalized " 375 "message." 376 msgstr "" 377 378 #: includes/data/data-settings.php:74 379 msgid "Enable gift fields on the checkout page." 380 msgstr "" 381 382 #: includes/data/data-settings.php:78 244 383 msgid "Logging" 245 384 msgstr "" 246 385 247 #: includes/data/data-settings.php:7 1386 #: includes/data/data-settings.php:79 248 387 msgid "Enable Logging" 249 388 msgstr "" 250 389 251 #: includes/data/data-settings.php: 73390 #: includes/data/data-settings.php:81 252 391 msgid "" 253 392 "Note: this may log personal information. We recommend using this for " … … 255 394 msgstr "" 256 395 257 #: woocommerce-shipstation.php:37 396 #: includes/data/data-settings.php:82 397 msgid "Log all API interactions." 398 msgstr "" 399 400 #: woocommerce-shipstation.php:47 258 401 #. translators: %s WC download URL link. 259 402 msgid "" … … 262 405 msgstr "" 263 406 264 #: woocommerce-shipstation.php:1 37407 #: woocommerce-shipstation.php:163 265 408 msgid "Settings" 266 409 msgstr "" 267 410 268 #: woocommerce-shipstation.php:1 38411 #: woocommerce-shipstation.php:164 269 412 msgid "Support" 270 413 msgstr "" 271 414 272 #: woocommerce-shipstation.php:1 39415 #: woocommerce-shipstation.php:165 273 416 msgid "Docs" 274 417 msgstr "" -
woocommerce-shipstation-integration/tags/4.7.0/readme.txt
r3308688 r3313351 8 8 Requires PHP: 7.4 9 9 Requires Plugins: woocommerce 10 Stable tag: 4. 6.110 Stable tag: 4.7.0 11 11 License: GPLv3 12 12 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 71 71 == Changelog == 72 72 73 = 4.7.0 - 2025-06-17 = 74 * Add - REST API endpoints to update and retrieve product inventory data. 75 * Add - Gift feature. 76 73 77 = 4.6.1 - 2025-06-09 = 74 78 * Tweak - WooCommerce 9.9 compatibility. … … 76 80 = 4.6.0 - 2025-06-02 = 77 81 * Add - New hook `woocommerce_shipstation_shipnotify_status_updated` that will be called after the order status is changed. 82 * Add - REST API endpoints to update and retrieve product inventory data. 78 83 79 84 = 4.5.2 - 2025-05-26 = -
woocommerce-shipstation-integration/tags/4.7.0/woocommerce-shipstation.php
r3308688 r3313351 3 3 * Plugin Name: ShipStation for WooCommerce 4 4 * Plugin URI: https://woocommerce.com/products/shipstation-integration/ 5 * Version: 4. 6.15 * Version: 4.7.0 6 6 * Description: Ship your WooCommerce orders with confidence, save on top carriers, and automate your processes with ShipStation. 7 7 * Author: WooCommerce … … 23 23 } 24 24 25 use WooCommerce\Shipping\ShipStation\REST_API_Loader; 26 25 27 define( 'WC_SHIPSTATION_FILE', __FILE__ ); 26 28 define( 'WC_SHIPSTATION_ABSPATH', trailingslashit( __DIR__ ) ); 29 30 if ( ! defined( 'WC_SHIPSTATION_PLUGIN_DIR' ) ) { 31 define( 'WC_SHIPSTATION_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); 32 } 33 34 if ( ! defined( 'WC_SHIPSTATION_PLUGIN_URL' ) ) { 35 define( 'WC_SHIPSTATION_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); 36 } 27 37 28 38 /** … … 50 60 } 51 61 52 define( 'WC_SHIPSTATION_VERSION', '4. 6.1' ); // WRCS: DEFINED_VERSION.62 define( 'WC_SHIPSTATION_VERSION', '4.7.0' ); // WRCS: DEFINED_VERSION. 53 63 54 64 if ( ! defined( 'WC_SHIPSTATION_EXPORT_LIMIT' ) ) { … … 60 70 add_action( 'before_woocommerce_init', 'woocommerce_shipstation_before_woocommerce_init' ); 61 71 add_action( 'after_setup_theme', 'woocommerce_shipstation_load_textdomain' ); 72 add_action( 'woocommerce_init', 'woocommerce_shipstation_load_rest_api' ); 62 73 } 63 74 … … 82 93 require_once WC_SHIPSTATION_ABSPATH . 'includes/trait-woocommerce-order-util.php'; 83 94 include_once WC_SHIPSTATION_ABSPATH . 'includes/class-wc-shipstation-integration.php'; 95 include_once WC_SHIPSTATION_ABSPATH . 'includes/class-checkout.php'; 84 96 include_once WC_SHIPSTATION_ABSPATH . 'includes/class-wc-shipstation-privacy.php'; 97 } 98 99 /** 100 * Initialize REST API. 101 * 102 * @since 4.5.2 103 */ 104 function woocommerce_shipstation_load_rest_api() { 105 // Load REST API loader class file. 106 require_once WC_SHIPSTATION_ABSPATH . 'includes/class-rest-api-loader.php'; 107 108 // Initialize REST API. 109 $rest_loader = new REST_API_Loader(); 110 $rest_loader->init(); 85 111 } 86 112 -
woocommerce-shipstation-integration/trunk/assets/css/admin.css
r3300481 r3313351 1 .shipstation-logo { 2 width: 150px; 3 margin: 16px 0 0 0; 4 } 5 6 .shipstation-external-link:after { 7 font-family: "dashicons"; 8 content: "\f504"; 9 display: inline-block; 10 vertical-align: bottom; 11 } 12 13 .woocommerce-shipstation-activation-notice-dismiss { 14 position: relative; 15 float: right; 16 padding: 9px 0 9px 9px; 17 text-decoration: none; 18 } 1 .shipstation-logo{width:150px;margin:16px 0 0 0}.shipstation-external-link:after{font-family:dashicons;content:"";display:inline-block;vertical-align:bottom}.woocommerce-shipstation-activation-notice-dismiss{position:relative;float:right;padding:9px 0 9px 9px;text-decoration:none} -
woocommerce-shipstation-integration/trunk/changelog.txt
r3308688 r3313351 1 1 *** ShipStation for WooCommerce *** 2 3 = 4.7.0 - 2025-06-17 = 4 * Add - REST API endpoints to update and retrieve product inventory data. 5 * Add - Gift feature. 2 6 3 7 = 4.6.1 - 2025-06-09 = … … 6 10 = 4.6.0 - 2025-06-02 = 7 11 * Add - New hook `woocommerce_shipstation_shipnotify_status_updated` that will be called after the order status is changed. 12 * Add - REST API endpoints to update and retrieve product inventory data. 8 13 9 14 = 4.5.2 - 2025-05-26 = -
woocommerce-shipstation-integration/trunk/includes/class-wc-shipstation-api.php
r3111282 r3313351 10 10 } 11 11 12 require_once WC_SHIPSTATION_ABSPATH . 'includes/api -requests/class-wc-shipstation-api-request.php';12 require_once WC_SHIPSTATION_ABSPATH . 'includes/api/requests/class-wc-shipstation-api-request.php'; 13 13 14 14 /** … … 95 95 /* translators: 1: query string */ 96 96 $this->log( sprintf( esc_html__( 'Input params: %s', 'woocommerce-shipstation-integration' ), http_build_query( $obfuscated_request ) ) ); 97 $request_class = include WC_SHIPSTATION_ABSPATH . 'includes/api -requests/class-wc-shipstation-api-' . $this->request['action'] . '.php';97 $request_class = include WC_SHIPSTATION_ABSPATH . 'includes/api/requests/class-wc-shipstation-api-' . $this->request['action'] . '.php'; 98 98 $request_class->request(); 99 99 } else { -
woocommerce-shipstation-integration/trunk/includes/class-wc-shipstation-integration.php
r3300481 r3313351 48 48 49 49 /** 50 * Gift enable flag. 51 * 52 * @var boolean 53 */ 54 public static $gift_enabled = false; 55 56 /** 57 * Order meta keys. 58 * 59 * @var array 60 */ 61 public static array $order_meta_keys = array( 62 'is_gift' => 'shipstation_is_gift', 63 'gift_message' => 'shipstation_gift_message', 64 ); 65 66 /** 50 67 * Constructor 51 68 */ … … 69 86 self::$logging_enabled = 'yes' === $this->get_option( 'logging_enabled', 'yes' ); 70 87 self::$shipped_status = $this->get_option( 'shipped_status', 'wc-completed' ); 88 self::$gift_enabled = 'yes' === $this->get_option( 'gift_enabled', 'no' ); 71 89 72 90 // Force saved . -
woocommerce-shipstation-integration/trunk/includes/data/data-settings.php
r3054381 r3313351 67 67 'default' => 'wc-completed', 68 68 ), 69 'gift_enabled' => array( 70 'title' => __( 'Gift', 'woocommerce-shipstation-integration' ), 71 'label' => __( 'Enable Gift options at checkout page', 'woocommerce-shipstation-integration' ), 72 'type' => 'checkbox', 73 'description' => __( 'Allow customer to mark their order as a gift and include a personalized message.', 'woocommerce-shipstation-integration' ), 74 'desc_tip' => __( 'Enable gift fields on the checkout page.', 'woocommerce-shipstation-integration' ), 75 'default' => 'no', 76 ), 69 77 'logging_enabled' => array( 70 78 'title' => __( 'Logging', 'woocommerce-shipstation-integration' ), … … 72 80 'type' => 'checkbox', 73 81 'description' => __( 'Note: this may log personal information. We recommend using this for debugging purposes only and deleting the logs when finished.', 'woocommerce-shipstation-integration' ), 74 'desc_tip' => 'Log all API interactions.',82 'desc_tip' => __( 'Log all API interactions.', 'woocommerce-shipstation-integration' ), 75 83 'default' => 'yes', 76 84 ), -
woocommerce-shipstation-integration/trunk/languages/woocommerce-shipstation.pot
r3308688 r3313351 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: ShipStation for WooCommerce 4. 6.1\n"5 "Project-Id-Version: ShipStation for WooCommerce 4.7.0\n" 6 6 "Report-Msgid-Bugs-To: " 7 7 "https://wordpress.org/support/plugin/woocommerce-shipstation\n" 8 "POT-Creation-Date: 2025-06- 09 19:53:14+00:00\n"8 "POT-Creation-Date: 2025-06-17 15:22:22+00:00\n" 9 9 "MIME-Version: 1.0\n" 10 10 "Content-Type: text/plain; charset=utf-8\n" … … 15 15 "X-Generator: node-wp-i18n 1.2.7\n" 16 16 17 #: includes/api -requests/class-wc-shipstation-api-export.php:14517 #: includes/api/requests/class-wc-shipstation-api-export.php:146 18 18 #. translators: 1: order id 19 19 msgid "Order %s can not be found." 20 20 msgstr "" 21 21 22 #: includes/api -requests/class-wc-shipstation-api-export.php:44122 #: includes/api/requests/class-wc-shipstation-api-export.php:453 23 23 msgid "Total Discount" 24 24 msgstr "" 25 25 26 #: includes/api -requests/class-wc-shipstation-api-export.php:47026 #: includes/api/requests/class-wc-shipstation-api-export.php:482 27 27 msgid "Order has been exported to Shipstation" 28 28 msgstr "" 29 29 30 #: includes/api -requests/class-wc-shipstation-api-export.php:48230 #: includes/api/requests/class-wc-shipstation-api-export.php:494 31 31 #. translators: 1: total count 32 32 msgid "Exported %s orders" 33 33 msgstr "" 34 34 35 #: includes/api -requests/class-wc-shipstation-api-request.php:5435 #: includes/api/requests/class-wc-shipstation-api-request.php:54 36 36 #. translators: 1: field name 37 37 msgid "Missing required param: %s" 38 38 msgstr "" 39 39 40 #: includes/api -requests/class-wc-shipstation-api-shipnotify.php:17740 #: includes/api/requests/class-wc-shipstation-api-shipnotify.php:177 41 41 msgid "Missing ShipNotify XML input." 42 42 msgstr "" 43 43 44 #: includes/api -requests/class-wc-shipstation-api-shipnotify.php:19744 #: includes/api/requests/class-wc-shipstation-api-shipnotify.php:197 45 45 msgid "Missing SimpleXML extension for parsing ShipStation XML." 46 46 msgstr "" 47 47 48 #: includes/api -requests/class-wc-shipstation-api-shipnotify.php:20448 #: includes/api/requests/class-wc-shipstation-api-shipnotify.php:204 49 49 msgid "ShipNotify XML: " 50 50 msgstr "" 51 51 52 #: includes/api -requests/class-wc-shipstation-api-shipnotify.php:21052 #: includes/api/requests/class-wc-shipstation-api-shipnotify.php:210 53 53 #. translators: %s is an error message. 54 54 msgid "Cannot parse XML : %s" 55 55 msgstr "" 56 56 57 #: includes/api -requests/class-wc-shipstation-api-shipnotify.php:23157 #: includes/api/requests/class-wc-shipstation-api-shipnotify.php:231 58 58 #. translators: %1$s is order number, %2$d is order id 59 59 msgid "Order number: %1$s or Order ID: %2$d can not be found." 60 60 msgstr "" 61 61 62 #: includes/api -requests/class-wc-shipstation-api-shipnotify.php:23962 #: includes/api/requests/class-wc-shipstation-api-shipnotify.php:239 63 63 #. translators: 1: order id 64 64 msgid "Invalid order ID: %s" 65 65 msgstr "" 66 66 67 #: includes/api -requests/class-wc-shipstation-api-shipnotify.php:24867 #: includes/api/requests/class-wc-shipstation-api-shipnotify.php:248 68 68 msgid "ShipNotify Item: " 69 69 msgstr "" 70 70 71 #: includes/api -requests/class-wc-shipstation-api-shipnotify.php:26171 #: includes/api/requests/class-wc-shipstation-api-shipnotify.php:261 72 72 #. translators: 1: item name 73 73 msgid "Item %s is not shippable product. Skipping." 74 74 msgstr "" 75 75 76 #: includes/api -requests/class-wc-shipstation-api-shipnotify.php:27976 #: includes/api/requests/class-wc-shipstation-api-shipnotify.php:279 77 77 #. translators: 1) shipped items 2) carrier's name 3) shipped date, 4) tracking 78 78 #. number … … 80 80 msgstr "" 81 81 82 #: includes/api -requests/class-wc-shipstation-api-shipnotify.php:29582 #: includes/api/requests/class-wc-shipstation-api-shipnotify.php:295 83 83 #. translators: 1) number of shipped items 2) total shipped items 3) order ID 84 84 msgid "Shipped %1$d out of %2$d items in order %3$s" 85 85 msgstr "" 86 86 87 #: includes/api -requests/class-wc-shipstation-api-shipnotify.php:31187 #: includes/api/requests/class-wc-shipstation-api-shipnotify.php:311 88 88 #. translators: 1) carrier's name 2) shipped date, 3) tracking number 89 89 msgid "Items shipped via %1$s on %2$s with tracking number %3$s (Shipstation)." 90 90 msgstr "" 91 91 92 #: includes/api -requests/class-wc-shipstation-api-shipnotify.php:31892 #: includes/api/requests/class-wc-shipstation-api-shipnotify.php:318 93 93 #. translators: 1: order id 94 94 msgid "No items found - shipping entire order %d." 95 95 msgstr "" 96 96 97 #: includes/api -requests/class-wc-shipstation-api-shipnotify.php:42097 #: includes/api/requests/class-wc-shipstation-api-shipnotify.php:420 98 98 #. translators: 1) order ID 2) shipment status 99 99 msgid "Updated order %1$s to status %2$s" 100 msgstr "" 101 102 #: includes/api/rest/class-inventory-controller.php:54 103 msgid "Current page of the collection." 104 msgstr "" 105 106 #: includes/api/rest/class-inventory-controller.php:65 107 msgid "Maximum number of items to be returned in result set." 108 msgstr "" 109 110 #: includes/api/rest/class-inventory-controller.php:89 111 msgid "ID of the product to retrieve stock data for." 112 msgstr "" 113 114 #: includes/api/rest/class-inventory-controller.php:111 115 msgid "SKU of the product to retrieve stock data for." 116 msgstr "" 117 118 #: includes/api/rest/class-inventory-controller.php:224 119 msgid "Product not found." 120 msgstr "" 121 122 #: includes/api/rest/class-inventory-controller.php:285 123 msgid "Error retrieving products." 124 msgstr "" 125 126 #: includes/api/rest/class-inventory-controller.php:339 127 msgid "Invalid item" 128 msgstr "" 129 130 #: includes/api/rest/class-inventory-controller.php:347 131 msgid "Product ID is not numeric" 132 msgstr "" 133 134 #: includes/api/rest/class-inventory-controller.php:355 135 msgid "Stock quantity is not set or not numeric" 136 msgstr "" 137 138 #: includes/api/rest/class-inventory-controller.php:369 139 msgid "Product not found" 140 msgstr "" 141 142 #: includes/api/rest/class-inventory-controller.php:388 143 msgid "Inventory updated successfully." 144 msgstr "" 145 146 #: includes/api/rest/class-inventory-controller.php:392 147 msgid "No inventory updated due to errors." 148 msgstr "" 149 150 #: includes/api/rest/class-inventory-controller.php:397 151 msgid "Inventory updated with some errors." 152 msgstr "" 153 154 #: includes/api/rest/class-inventory-controller.php:402 155 msgid "No inventory changes made." 156 msgstr "" 157 158 #: includes/class-checkout.php:125 159 msgid "Send as gift" 160 msgstr "" 161 162 #: includes/class-checkout.php:126 163 msgid "Mark order as a gift" 164 msgstr "" 165 166 #: includes/class-checkout.php:127 167 msgid "Gift orders include an optional personal message on the packing slip." 168 msgstr "" 169 170 #: includes/class-checkout.php:133 171 #. translators: Aria-label for the gift message checkbox. 172 msgid "" 173 "Mark order as a gift. When enabled order will include an optional personal " 174 "message on the packing slip." 175 msgstr "" 176 177 #: includes/class-checkout.php:140 178 msgid "Gift message" 179 msgstr "" 180 181 #: includes/class-checkout.php:141 182 msgid "Add gift message" 183 msgstr "" 184 185 #: includes/class-checkout.php:143 186 #. translators: %1$d is the maximum length of the gift message. 187 msgid "Use the space above to enter your gift message. Approx., %1$d characters." 188 msgstr "" 189 190 #: includes/class-checkout.php:145 191 msgid "Message for the gift." 192 msgstr "" 193 194 #: includes/class-checkout.php:149 195 #. translators: %1$d is the maximum length of the gift message. 196 msgid "" 197 "Gift message, optional. Use this field to enter your gift message. " 198 "Approximately %1$d characters." 199 msgstr "" 200 201 #: includes/class-checkout.php:221 202 msgid "optional" 203 msgstr "" 204 205 #: includes/class-checkout.php:357 206 #. translators: %1$d is the maximum length of the gift message. 207 msgid "Please ensure the gift message does not exceed %d characters." 208 msgstr "" 209 210 #: includes/class-checkout.php:514 211 msgid "Yes" 212 msgstr "" 213 214 #: includes/class-checkout.php:514 215 msgid "No" 216 msgstr "" 217 218 #: includes/class-checkout.php:577 includes/class-checkout.php:877 219 #: includes/class-checkout.php:882 220 msgid "Additional information" 100 221 msgstr "" 101 222 … … 118 239 msgstr "" 119 240 120 #: includes/class-wc-shipstation-integration.php: 54241 #: includes/class-wc-shipstation-integration.php:71 121 242 #: includes/class-wc-shipstation-privacy.php:22 122 243 msgid "ShipStation" 123 244 msgstr "" 124 245 125 #: includes/class-wc-shipstation-integration.php: 55246 #: includes/class-wc-shipstation-integration.php:72 126 247 msgid "" 127 248 "ShipStation allows you to retrieve & manage orders, then print labels " … … 129 250 msgstr "" 130 251 131 #: includes/class-wc-shipstation-integration.php:2 03252 #: includes/class-wc-shipstation-integration.php:221 132 253 msgid "Action failed. Please refresh the page and retry." 133 254 msgstr "" 134 255 135 #: includes/class-wc-shipstation-integration.php:2 08256 #: includes/class-wc-shipstation-integration.php:226 136 257 msgid "Cheatin’ huh?" 137 258 msgstr "" 138 259 139 #: includes/class-wc-shipstation-integration.php:2 24260 #: includes/class-wc-shipstation-integration.php:242 140 261 msgid "ShipStation logo" 141 262 msgstr "" 142 263 143 #: includes/class-wc-shipstation-integration.php:2 34264 #: includes/class-wc-shipstation-integration.php:252 144 265 #. translators: %s: ShipStation URL 145 266 msgid "" … … 149 270 msgstr "" 150 271 151 #: includes/class-wc-shipstation-integration.php:2 52272 #: includes/class-wc-shipstation-integration.php:270 152 273 #. translators: %s: ShipStation Auth Key 153 274 msgid "" … … 156 277 msgstr "" 157 278 158 #: includes/class-wc-shipstation-integration.php:2 59279 #: includes/class-wc-shipstation-integration.php:277 159 280 msgid "Once connected you're good to go!" 160 281 msgstr "" 161 282 162 #: includes/class-wc-shipstation-integration.php:2 66283 #: includes/class-wc-shipstation-integration.php:284 163 284 #. translators: %1$s: ShipStation plugin settings URL, %2$s: ShipStation 164 285 #. documentation URL … … 242 363 243 364 #: includes/data/data-settings.php:70 365 msgid "Gift" 366 msgstr "" 367 368 #: includes/data/data-settings.php:71 369 msgid "Enable Gift options at checkout page" 370 msgstr "" 371 372 #: includes/data/data-settings.php:73 373 msgid "" 374 "Allow customer to mark their order as a gift and include a personalized " 375 "message." 376 msgstr "" 377 378 #: includes/data/data-settings.php:74 379 msgid "Enable gift fields on the checkout page." 380 msgstr "" 381 382 #: includes/data/data-settings.php:78 244 383 msgid "Logging" 245 384 msgstr "" 246 385 247 #: includes/data/data-settings.php:7 1386 #: includes/data/data-settings.php:79 248 387 msgid "Enable Logging" 249 388 msgstr "" 250 389 251 #: includes/data/data-settings.php: 73390 #: includes/data/data-settings.php:81 252 391 msgid "" 253 392 "Note: this may log personal information. We recommend using this for " … … 255 394 msgstr "" 256 395 257 #: woocommerce-shipstation.php:37 396 #: includes/data/data-settings.php:82 397 msgid "Log all API interactions." 398 msgstr "" 399 400 #: woocommerce-shipstation.php:47 258 401 #. translators: %s WC download URL link. 259 402 msgid "" … … 262 405 msgstr "" 263 406 264 #: woocommerce-shipstation.php:1 37407 #: woocommerce-shipstation.php:163 265 408 msgid "Settings" 266 409 msgstr "" 267 410 268 #: woocommerce-shipstation.php:1 38411 #: woocommerce-shipstation.php:164 269 412 msgid "Support" 270 413 msgstr "" 271 414 272 #: woocommerce-shipstation.php:1 39415 #: woocommerce-shipstation.php:165 273 416 msgid "Docs" 274 417 msgstr "" -
woocommerce-shipstation-integration/trunk/readme.txt
r3308688 r3313351 8 8 Requires PHP: 7.4 9 9 Requires Plugins: woocommerce 10 Stable tag: 4. 6.110 Stable tag: 4.7.0 11 11 License: GPLv3 12 12 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 71 71 == Changelog == 72 72 73 = 4.7.0 - 2025-06-17 = 74 * Add - REST API endpoints to update and retrieve product inventory data. 75 * Add - Gift feature. 76 73 77 = 4.6.1 - 2025-06-09 = 74 78 * Tweak - WooCommerce 9.9 compatibility. … … 76 80 = 4.6.0 - 2025-06-02 = 77 81 * Add - New hook `woocommerce_shipstation_shipnotify_status_updated` that will be called after the order status is changed. 82 * Add - REST API endpoints to update and retrieve product inventory data. 78 83 79 84 = 4.5.2 - 2025-05-26 = -
woocommerce-shipstation-integration/trunk/woocommerce-shipstation.php
r3308688 r3313351 3 3 * Plugin Name: ShipStation for WooCommerce 4 4 * Plugin URI: https://woocommerce.com/products/shipstation-integration/ 5 * Version: 4. 6.15 * Version: 4.7.0 6 6 * Description: Ship your WooCommerce orders with confidence, save on top carriers, and automate your processes with ShipStation. 7 7 * Author: WooCommerce … … 23 23 } 24 24 25 use WooCommerce\Shipping\ShipStation\REST_API_Loader; 26 25 27 define( 'WC_SHIPSTATION_FILE', __FILE__ ); 26 28 define( 'WC_SHIPSTATION_ABSPATH', trailingslashit( __DIR__ ) ); 29 30 if ( ! defined( 'WC_SHIPSTATION_PLUGIN_DIR' ) ) { 31 define( 'WC_SHIPSTATION_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); 32 } 33 34 if ( ! defined( 'WC_SHIPSTATION_PLUGIN_URL' ) ) { 35 define( 'WC_SHIPSTATION_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); 36 } 27 37 28 38 /** … … 50 60 } 51 61 52 define( 'WC_SHIPSTATION_VERSION', '4. 6.1' ); // WRCS: DEFINED_VERSION.62 define( 'WC_SHIPSTATION_VERSION', '4.7.0' ); // WRCS: DEFINED_VERSION. 53 63 54 64 if ( ! defined( 'WC_SHIPSTATION_EXPORT_LIMIT' ) ) { … … 60 70 add_action( 'before_woocommerce_init', 'woocommerce_shipstation_before_woocommerce_init' ); 61 71 add_action( 'after_setup_theme', 'woocommerce_shipstation_load_textdomain' ); 72 add_action( 'woocommerce_init', 'woocommerce_shipstation_load_rest_api' ); 62 73 } 63 74 … … 82 93 require_once WC_SHIPSTATION_ABSPATH . 'includes/trait-woocommerce-order-util.php'; 83 94 include_once WC_SHIPSTATION_ABSPATH . 'includes/class-wc-shipstation-integration.php'; 95 include_once WC_SHIPSTATION_ABSPATH . 'includes/class-checkout.php'; 84 96 include_once WC_SHIPSTATION_ABSPATH . 'includes/class-wc-shipstation-privacy.php'; 97 } 98 99 /** 100 * Initialize REST API. 101 * 102 * @since 4.5.2 103 */ 104 function woocommerce_shipstation_load_rest_api() { 105 // Load REST API loader class file. 106 require_once WC_SHIPSTATION_ABSPATH . 'includes/class-rest-api-loader.php'; 107 108 // Initialize REST API. 109 $rest_loader = new REST_API_Loader(); 110 $rest_loader->init(); 85 111 } 86 112
Note: See TracChangeset
for help on using the changeset viewer.