Changeset 3012529
- Timestamp:
- 12/20/2023 04:05:39 PM (2 years ago)
- Location:
- woo-postnl
- Files:
-
- 7 edited
- 1 copied
-
tags/5.3.2 (copied) (copied from woo-postnl/tags/5.3.1)
-
tags/5.3.2/README.md (modified) (2 diffs)
-
tags/5.3.2/assets/js/admin-order-bulk.js (modified) (2 diffs)
-
tags/5.3.2/postnl-for-woocommerce.php (modified) (1 diff)
-
tags/5.3.2/readme.txt (modified) (2 diffs)
-
tags/5.3.2/src/Order/Bulk.php (modified) (4 diffs)
-
tags/5.3.2/src/Order/OrdersList.php (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
woo-postnl/tags/5.3.2/README.md
r2999659 r3012529 9 9 * Stable tag: 5.3.2 10 10 * WC requires at least: 4.0 11 * WC tested up to: 8. 211 * WC tested up to: 8.4 12 12 * License: GPLv2 or later 13 13 * License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 38 38 39 39 ### 5.3.2 40 * Add: Made the delivery date sortable by date. 41 * Added Dutch translations in the PostNL settings screen in WooCommerce shipping settings. 40 * Fix: Bulk action does not work in HPOS. 42 41 43 42 ### 5.3.1 44 43 * Fix: Change store address error text. 44 * Add: Made the delivery date sortable by date. 45 * Added Dutch translations in the PostNL settings screen in WooCommerce shipping settings. 45 46 46 47 ### 5.3.0 -
woo-postnl/tags/5.3.2/assets/js/admin-order-bulk.js
r2974370 r3012529 4 4 // init Class 5 5 init: function() { 6 var posts_filter = jQuery( '#posts-filter ' );6 var posts_filter = jQuery( '#posts-filter, #wc-orders-filter' ); 7 7 8 8 posts_filter … … 19 19 var value = jQuery( this ).val(); 20 20 var title = jQuery(':selected', this ).text(); 21 var post_form = jQuery( this ).parents('#posts-filter ');21 var post_form = jQuery( this ).parents('#posts-filter, #wc-orders-filter'); 22 22 23 23 if( 'postnl-create-label' == value ){ -
woo-postnl/tags/5.3.2/postnl-for-woocommerce.php
r2999659 r3012529 6 6 * Author: PostNL 7 7 * Author URI: https://postnl.post/ 8 * Version: 5.3. 18 * Version: 5.3.2 9 9 * Tested up to: 6.3 10 10 * WC requires at least: 4.0 11 * WC tested up to: 8. 211 * WC tested up to: 8.4 12 12 * 13 13 * This program is free software: you can redistribute it and/or modify -
woo-postnl/tags/5.3.2/readme.txt
r2999659 r3012529 5 5 Requires PHP: 5.6 6 6 Tested up to: 6.3 7 Stable tag: 5.3. 17 Stable tag: 5.3.2 8 8 WC requires at least: 4.0 9 WC tested up to: 8. 29 WC tested up to: 8.4 10 10 License: GPLv2 or later 11 11 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 80 80 81 81 == Changelog == 82 83 = 5.3.2 (2023-12-20) = 84 * Fix: Bulk action does not work in HPOS. 82 85 83 86 = 5.3.1 (2023-11-21) = -
woo-postnl/tags/5.3.2/src/Order/Bulk.php
r2974370 r3012529 34 34 add_filter( 'bulk_actions-edit-shop_order', array( $this, 'add_order_bulk_actions' ), 10, 1 ); 35 35 add_filter( 'handle_bulk_actions-edit-shop_order', array( $this, 'process_order_bulk_actions' ), 10, 3 ); 36 37 add_filter( 'bulk_actions-woocommerce_page_wc-orders', array( $this, 'add_order_bulk_actions' ), 10, 1 ); 38 add_filter( 'handle_bulk_actions-woocommerce_page_wc-orders', array( $this, 'process_order_bulk_actions' ), 10, 3 ); 39 36 40 add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_bulk_assets' ) ); 37 41 add_action( 'admin_footer', array( $this, 'model_content_fields_create_label' ) ); … … 220 224 $screen = get_current_screen(); 221 225 222 if ( ! empty( $screen->id ) && 'edit-shop_order' === $screen->id && ! empty( $screen->base ) && 'edit' === $screen->base ) { 226 $is_legacy_order = ! empty( $screen->id ) && 'edit-shop_order' === $screen->id && ! empty( $screen->base ) && 'edit' === $screen->base; 227 $is_hpos_order = ! empty( $screen->id ) && 'woocommerce_page_wc-orders' === $screen->id && ( empty( $_GET['action'] ) || 'edit' !== $_GET['action'] ); 228 if ( $is_legacy_order || $is_hpos_order ) { 223 229 // Enqueue the assets. 224 230 wp_enqueue_style( 'thickbox' ); … … 279 285 */ 280 286 public function model_content_fields_create_label() { 281 global $pagenow, $typenow, $thepostid, $post; 287 global $thepostid, $post; 288 289 $screen = get_current_screen(); 290 291 $is_legacy_order = ! empty( $screen->id ) && 'edit-shop_order' === $screen->id && ! empty( $screen->base ) && 'edit' === $screen->base; 292 $is_hpos_order = ! empty( $screen->id ) && 'woocommerce_page_wc-orders' === $screen->id && ( empty( $_GET['action'] ) || 'edit' !== $_GET['action'] ); 282 293 283 294 // Bugfix, warnings shown for Order table results with no Orders. 284 if ( empty( $thepostid ) && empty( $post ) ) {295 if ( $is_legacy_order && empty( $thepostid ) && empty( $post ) ) { 285 296 return; 286 297 } 287 298 288 if ( 'shop_order' === $typenow && 'edit.php' === $pagenow) {299 if ( $is_legacy_order || $is_hpos_order ) { 289 300 ?> 290 301 <div id="postnl-create-label-modal" style="display:none;"> … … 306 317 $current_screen = get_current_screen(); 307 318 308 if ( isset( $current_screen->id ) && in_array( $current_screen->id, array( 'shop_order', 'edit-shop_order' ), true ) ) { 319 $is_legacy_order = isset( $current_screen->id ) && in_array( $current_screen->id, array( 'shop_order', 'edit-shop_order' ), true ); 320 $is_hpos_order = ! empty( $current_screen->id ) && 'woocommerce_page_wc-orders' === $current_screen->id; 321 322 if ( $is_legacy_order || $is_hpos_order ) { 309 323 310 324 $bulk_action_message_opt = get_option( $this->bulk_option_text_name ); -
woo-postnl/tags/5.3.2/src/Order/OrdersList.php
r2999659 r3012529 27 27 // add 'Delivery Date' orders page column header 28 28 add_filter( 'manage_edit-shop_order_columns', array( $this, 'add_order_delivery_date_column_header' ), 29 ); 29 add_filter( 'manage_woocommerce_page_wc-orders_columns', array( $this, 'add_order_delivery_date_column_header' ), 29 ); 29 30 30 31 // add 'Delivery Date' orders page column content 31 32 add_action( 'manage_shop_order_posts_custom_column', array( $this, 'add_order_delivery_date_column_content' ), 10, 2 ); 33 add_action( 'manage_woocommerce_page_wc-orders_custom_column', array( $this, 'add_order_delivery_date_column_content' ), 10, 2 ); 32 34 33 35 // add 'Shipping options' orders page column header 34 36 add_filter( 'manage_edit-shop_order_columns', array( $this, 'add_order_shipping_options_column_header' ), 30 ); 37 add_filter( 'manage_woocommerce_page_wc-orders_columns', array( $this, 'add_order_shipping_options_column_header' ), 30 ); 35 38 36 39 // add 'Shipping options' orders page column content 37 40 add_action( 'manage_shop_order_posts_custom_column', array( $this, 'add_order_shipping_options_column_content' ), 10, 2 ); 41 add_action( 'manage_woocommerce_page_wc-orders_custom_column', array( $this, 'add_order_shipping_options_column_content' ), 10, 2 ); 38 42 39 43 // add 'Label Created' orders page column header 40 44 add_filter( 'manage_edit-shop_order_columns', array( $this, 'add_order_barcode_column_header' ), 31 ); 45 add_filter( 'manage_woocommerce_page_wc-orders_columns', array( $this, 'add_order_barcode_column_header' ), 31 ); 41 46 42 47 // add 'Label Created' orders page column content 43 48 add_action( 'manage_shop_order_posts_custom_column', array( $this, 'add_order_barcode_column_content' ), 10, 2 ); 49 add_action( 'manage_woocommerce_page_wc-orders_custom_column', array( $this, 'add_order_barcode_column_content' ), 10, 2 ); 44 50 45 51 // Make delivery date column sortable. -
woo-postnl/trunk/readme.txt
r2999659 r3012529 4 4 Requires at least: 3.5.1 & WooCommerce 2.0+ 5 5 Tested up to: 6.1 6 Stable tag: 5.3. 16 Stable tag: 5.3.2 7 7 Requires PHP: 7.1 8 8 License: GPLv3 or later
Note: See TracChangeset
for help on using the changeset viewer.