-
Notifications
You must be signed in to change notification settings - Fork 12
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
Allow filter of orders by status #18
Labels
enhancement
New feature or request
Milestone
Comments
@ronan-gloo I propose to allow to add filtering that way : $orderDomain = $store->getOrderApi();
$orderDomain->setfilter(
[
'status' => 'shipped'
]
);
foreach($orderDomain->getPages() as $order) {
// Will retrieve filtered items
} and add easier interface to retrieve filtered orders foreach($orderDomain->getShippedOrders() as $order) {
// Will retrieve filtered items
} |
Non, car on a une conservation de l'état entre deux calls, qui va provoquer des effets de bord. |
Ok directyl like this then : $criterias = [
'page' => 1,
'limit' => 5,
'filters' => [
'status' => ['shipped','created'],
'createdAt' => date_create('now')
]
];
foreach($orderDomain->getPages($criterias) as $order) {
// Will retrieve filtered items
} |
ddattee
pushed a commit
to ddattee/php-sdk
that referenced
this issue
May 31, 2018
ddattee
pushed a commit
to ddattee/php-sdk
that referenced
this issue
May 31, 2018
ddattee
pushed a commit
to ddattee/php-sdk
that referenced
this issue
May 31, 2018
ddattee
pushed a commit
to ddattee/php-sdk
that referenced
this issue
May 31, 2018
ddattee
pushed a commit
to ddattee/php-sdk
that referenced
this issue
May 31, 2018
ddattee
pushed a commit
to ddattee/php-sdk
that referenced
this issue
May 31, 2018
ddattee
pushed a commit
to ddattee/php-sdk
that referenced
this issue
Jun 1, 2018
ddattee
pushed a commit
to ddattee/php-sdk
that referenced
this issue
Jun 1, 2018
ddattee
pushed a commit
to ddattee/php-sdk
that referenced
this issue
Jun 1, 2018
ddattee
pushed a commit
to ddattee/php-sdk
that referenced
this issue
Jun 1, 2018
ddattee
pushed a commit
to ddattee/php-sdk
that referenced
this issue
Jun 1, 2018
ddattee
pushed a commit
to ddattee/php-sdk
that referenced
this issue
Jun 1, 2018
ddattee
pushed a commit
to ddattee/php-sdk
that referenced
this issue
Jun 1, 2018
ddattee
pushed a commit
to ddattee/php-sdk
that referenced
this issue
Jun 4, 2018
…ce in constructor, setting $reference as optionnal, better count method, renaming exception method, updating ut
ddattee
pushed a commit
to ddattee/php-sdk
that referenced
this issue
Jun 4, 2018
ddattee
pushed a commit
to ddattee/php-sdk
that referenced
this issue
Jun 6, 2018
ddattee
pushed a commit
to ddattee/php-sdk
that referenced
this issue
Jun 6, 2018
ddattee
pushed a commit
to ddattee/php-sdk
that referenced
this issue
Jun 6, 2018
ddattee
pushed a commit
to ddattee/php-sdk
that referenced
this issue
Jun 6, 2018
ddattee
pushed a commit
to ddattee/php-sdk
that referenced
this issue
Jun 6, 2018
ddattee
pushed a commit
to ddattee/php-sdk
that referenced
this issue
Jun 6, 2018
ddattee
pushed a commit
to ddattee/php-sdk
that referenced
this issue
Jun 6, 2018
ddattee
pushed a commit
to ddattee/php-sdk
that referenced
this issue
Jun 6, 2018
ddattee
pushed a commit
to ddattee/php-sdk
that referenced
this issue
Jun 6, 2018
ddattee
pushed a commit
to ddattee/php-sdk
that referenced
this issue
Jun 6, 2018
ddattee
pushed a commit
to ddattee/php-sdk
that referenced
this issue
Jun 6, 2018
ddattee
pushed a commit
to ddattee/php-sdk
that referenced
this issue
Jun 6, 2018
ddattee
pushed a commit
to ddattee/php-sdk
that referenced
this issue
Jun 6, 2018
Merged
ddattee
pushed a commit
to ddattee/php-sdk
that referenced
this issue
Jun 6, 2018
ddattee
pushed a commit
to ddattee/php-sdk
that referenced
this issue
Jun 6, 2018
ddattee
pushed a commit
to ddattee/php-sdk
that referenced
this issue
Jun 6, 2018
ddattee
pushed a commit
to ddattee/php-sdk
that referenced
this issue
Jun 6, 2018
ddattee
pushed a commit
to ddattee/php-sdk
that referenced
this issue
Jun 6, 2018
…ria to url method
ddattee
pushed a commit
to ddattee/php-sdk
that referenced
this issue
Jun 6, 2018
ddattee
pushed a commit
to ddattee/php-sdk
that referenced
this issue
Jun 6, 2018
ddattee
pushed a commit
to ddattee/php-sdk
that referenced
this issue
Jun 6, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I should be able to filter order by status
The text was updated successfully, but these errors were encountered: