Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter order by ID or order_key #240

Open
marotn opened this issue Feb 1, 2018 · 0 comments
Open

Filter order by ID or order_key #240

marotn opened this issue Feb 1, 2018 · 0 comments

Comments

@marotn
Copy link

marotn commented Feb 1, 2018

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"); }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant