Plugin Directory

Changeset 3012529


Ignore:
Timestamp:
12/20/2023 04:05:39 PM (2 years ago)
Author:
shadim
Message:

tagging v5.3.2

Location:
woo-postnl
Files:
7 edited
1 copied

Legend:

Unmodified
Added
Removed
  • woo-postnl/tags/5.3.2/README.md

    r2999659 r3012529  
    99* Stable tag: 5.3.2
    1010* WC requires at least: 4.0
    11 * WC tested up to: 8.2
     11* WC tested up to: 8.4
    1212* License: GPLv2 or later
    1313* License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    3838
    3939### 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.
    4241
    4342### 5.3.1
    4443* 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.
    4546
    4647### 5.3.0
  • woo-postnl/tags/5.3.2/assets/js/admin-order-bulk.js

    r2974370 r3012529  
    44        // init Class
    55        init: function() {
    6             var posts_filter = jQuery( '#posts-filter' );
     6            var posts_filter = jQuery( '#posts-filter, #wc-orders-filter' );
    77           
    88            posts_filter
     
    1919            var value       = jQuery( this ).val();
    2020            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');
    2222
    2323            if( 'postnl-create-label' == value ){
  • woo-postnl/tags/5.3.2/postnl-for-woocommerce.php

    r2999659 r3012529  
    66 * Author: PostNL
    77 * Author URI: https://postnl.post/
    8  * Version: 5.3.1
     8 * Version: 5.3.2
    99 * Tested up to: 6.3
    1010 * WC requires at least: 4.0
    11  * WC tested up to: 8.2
     11 * WC tested up to: 8.4
    1212 *
    1313 * This program is free software: you can redistribute it and/or modify
  • woo-postnl/tags/5.3.2/readme.txt

    r2999659 r3012529  
    55Requires PHP: 5.6
    66Tested up to: 6.3
    7 Stable tag: 5.3.1
     7Stable tag: 5.3.2
    88WC requires at least: 4.0
    9 WC tested up to: 8.2
     9WC tested up to: 8.4
    1010License: GPLv2 or later
    1111License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    8080
    8181== Changelog ==
     82
     83= 5.3.2 (2023-12-20) =
     84* Fix: Bulk action does not work in HPOS.
    8285
    8386= 5.3.1 (2023-11-21) =
  • woo-postnl/tags/5.3.2/src/Order/Bulk.php

    r2974370 r3012529  
    3434        add_filter( 'bulk_actions-edit-shop_order', array( $this, 'add_order_bulk_actions' ), 10, 1 );
    3535        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
    3640        add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_bulk_assets' ) );
    3741        add_action( 'admin_footer', array( $this, 'model_content_fields_create_label' ) );
     
    220224        $screen = get_current_screen();
    221225
    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 ) {
    223229            // Enqueue the assets.
    224230            wp_enqueue_style( 'thickbox' );
     
    279285     */
    280286    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'] );
    282293
    283294        // 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 ) ) {
    285296            return;
    286297        }
    287298
    288         if ( 'shop_order' === $typenow && 'edit.php' === $pagenow ) {
     299        if ( $is_legacy_order || $is_hpos_order ) {
    289300            ?>
    290301            <div id="postnl-create-label-modal" style="display:none;">
     
    306317        $current_screen = get_current_screen();
    307318
    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 ) {
    309323
    310324            $bulk_action_message_opt = get_option( $this->bulk_option_text_name );
  • woo-postnl/tags/5.3.2/src/Order/OrdersList.php

    r2999659 r3012529  
    2727        // add 'Delivery Date' orders page column header
    2828        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 );
    2930
    3031        // add 'Delivery Date' orders page column content
    3132        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 );
    3234
    3335        // add 'Shipping options' orders page column header
    3436        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 );
    3538
    3639        // add 'Shipping options' orders page column content
    3740        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 );
    3842
    3943        // add 'Label Created' orders page column header
    4044        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 );
    4146
    4247        // add 'Label Created' orders page column content
    4348        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 );
    4450
    4551        // Make delivery date column sortable.
  • woo-postnl/trunk/readme.txt

    r2999659 r3012529  
    44Requires at least: 3.5.1 & WooCommerce 2.0+
    55Tested up to: 6.1
    6 Stable tag: 5.3.1
     6Stable tag: 5.3.2
    77Requires PHP: 7.1
    88License: GPLv3 or later
Note: See TracChangeset for help on using the changeset viewer.