• Hi,

    There seems to be a bug in your latest update.

    The ‘Search Orders’ in Woocommerce > Orders stops working with the latest update, i.e. the search returns nothing regardless of whether an order ID, customer email address, or customer name is used.

    As I switch back to version 8.1.6, the ‘Search Orders’ functionality is working fine again.

    Please check your update version(s).

    Thanks.

    John

Viewing 6 replies - 16 through 21 (of 21 total)
  • I fixed this for you.

    On search-everything.php replace

    	// add where clause to the search query
    	function se_search_where( $where, $wp_query ) {
    		if ( !$wp_query->is_search() && !$this->ajax_request)
    			return $where;
    
    		$this->query_instance = &$wp_query;

    with

    	// add where clause to the search query
    	function se_search_where( $where, $wp_query ) {
    		if ( !$wp_query->is_search() && !$this->ajax_request)
    			return $where;
    
    		$ignored_post_types = apply_filters( 'se_search_where_ignored_post_types', array(
    			'shop_order'
    		) );
    		if ( in_array( $wp_query->query['post_type'], $ignored_post_types ) )
    			return $where;
    
    		$this->query_instance = &$wp_query;

    Had to stop using this plugin because of this bug. You’ve done a great job with the plugin, I hope you can find a way to fix this bug soon. thanks for your hard work

    majidparan

    (@majidparan)

    @indextwo
    I installed the plugin but ??
    Also having the same issue, awaiting fix ??

    majidparan

    (@majidparan)

    @indextwo
    I installed the plugin but ?? … awaiting fix ??

    indextwo

    (@indextwo)

    @majidparan I’m not the developer of the Search Everything plugin. I’m the developer of the Order Search Repair for WooCommerce plugin – I just suggested that maybe using my plugin might fix the issue, as WooCommerce changed the way that order searches worked after v3.

    Thanks @webdados your fix works. The code referenced starts on line 243 of search-everything.php

Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘Woocommerce ‘Search Orders’ stops working after the plugin update’ is closed to new replies.