Quick Fix
-
Hello, the plugin wasn’t working to search orders by SKU.
If you replace line 30:
$posts = get_posts( array( 'post_type' => 'shop_order' ) );
With something like this:
$args = array ( 'post_type' => 'shop_order', 'post_status' => 'wc_completed', ); $posts = get_posts( $args );
This seems to fix the issue
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Quick Fix’ is closed to new replies.