You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
how can i filter order by ther id or oreder_key?
I want to check if the order exsit or no befor ....
With the product :: $client = new WC_API_Client( $Url, $consumer_key, $consumer_secret, $options ); $result = $client->products->get( null, array( "filter[sku]" => $REF ) ); //print_r($result); $errors = array_filter($result); if (!empty($errors)) { echo "existe"; $ID = $result['products'][0]['id']; }else { echo ("OK"); }
The text was updated successfully, but these errors were encountered:
Hi,
how can i filter order by ther id or oreder_key?
I want to check if the order exsit or no befor ....
With the product ::
$client = new WC_API_Client( $Url, $consumer_key, $consumer_secret, $options ); $result = $client->products->get( null, array( "filter[sku]" => $REF ) ); //print_r($result); $errors = array_filter($result); if (!empty($errors)) { echo "existe"; $ID = $result['products'][0]['id']; }else { echo ("OK"); }
The text was updated successfully, but these errors were encountered: