Chris_at_work
Feb 13th, 2024
61
1
Never
This is comment for paste Untitled
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Nice work, thank you.
  2. I had to change the code like this so it could work:
  3. //Get the order ID of processing orders
  4. $order_ids = $wpdb->get_results( $wpdb->prepare("SELECT ID FROM {$wpdb->prefix}wc_orders where status = %s or status = %s;", 'wc-on-hold', 'wc-processing' ));
  5.  
  6. Could you add Variation SKU? At the moment, only Single Product SKUs are shown.
  7. And actual stock level would be nice, also.
Advertisement
Add Comment
Please, Sign In to add comment