Plugin Directory

Changeset 2951257

Timestamp:
08/10/2023 07:20:58 AM (12 months ago)
Author:
aslamdoctor
Message:

Version 4.1.7

  • Fix - under admin, some products not visible while sorting by category
  • tested with wordpress version 6.3
  • tested with woocommerce version 8.0.1
Location:
rearrange-woocommerce-products/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • rearrange-woocommerce-products/trunk/readme.txt

    r2945852 r2951257  
    44Tags: woocommerce, ecommerce, product, reorder, rearrange, sort, sortbycategory, Woo
    55Requires at least: 4.6
    6 Tested up to: 6.2.2
    7 Stable tag: 4.1.6
     6Tested up to: 6.
     7Stable tag: 4.1.
    88Requires PHP: 7.4.0
    99License: GPLv3 or later License
     
    8888
    8989== ChangeLog ==
     90
     91
     92
     93
     94
    9095
    9196= Version 4.1.6 =
  • rearrange-woocommerce-products/trunk/rearrange-woocommerce-products.php

    r2945852 r2951257  
    44 * Plugin URI: https://wordpress.org/plugins/rearrange-woocommerce-products/
    55 * Description: a WordPress plugin to Rearrange Woocommerce Products listed on the Shop page
    6  * Version: 4.1.6
     6 * Version: 4.1.
    77 * Author: Aslam Doctor
    88 * Author URI: https://aslamdoctor.com/
     
    1414 *
    1515 * WC requires at least: 4.3
    16  * WC tested up to: 7.9.0
     16 * WC tested up to:
    1717 *
    1818 * License: GNU General Public License v3.0
  • rearrange-woocommerce-products/trunk/views/template-parts/-tab-all-products.php

    r2943375 r2951257  
    3030    );
    3131
    32     if ( $this->meta_field_exists( $meta_key ) ) {
    33         $args['meta_key'] = $meta_key; // phpcs:ignore
    34         $args['orderby']  = 'meta_value_num menu_order title';
    35         $args['order']    = 'ASC';
    36     }
     32    $args['meta_query'] = array(
     33        'relation' => 'OR',
     34        array(
     35            'key'     => $meta_key,
     36            'compare' => 'EXISTS',
     37        ),
     38        array(
     39            'key'     => $meta_key,
     40            'compare' => 'NOT EXISTS',
     41        ),
     42    );
     43
     44    $args['orderby'] = 'meta_value_num menu_order title';
     45    $args['order']   = 'ASC';
    3746} else {
    3847    $args['orderby'] = 'menu_order title';
Note: See TracChangeset for help on using the changeset viewer.