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 orders #55

Merged
merged 3 commits into from
Sep 3, 2018
Merged

Filter orders #55

merged 3 commits into from
Sep 3, 2018

Conversation

ddattee
Copy link
Contributor

@ddattee ddattee commented Aug 7, 2018

Resolve #17
Resolve #19

What does the PR do

Adding basic implemented order collection filter

How to test

Only orders for the requested filters should show

$criterias      = [
    'filters' => [
        'tag'            => 'tag',
        'channel'        => 123,
        'since'          => new DateTime('2017-12-01T12:00:00'),
        'until'          => new DateTime('2018-01-31T12:00:00'),
        'acknowledgment' => 'acknowledged'
        'carrier'        => 'UPS'
    ],
];
foreach ($orderDomain->getPage($criterias) as $order) {
    echo $order->getReference();
}

@ddattee ddattee added the docs label Aug 7, 2018
@ddattee ddattee added this to the v0.3 milestone Aug 7, 2018
@ddattee ddattee self-assigned this Aug 7, 2018
@ddattee ddattee requested review from ronan-gloo and mdumoulin August 7, 2018 13:37
@ddattee ddattee force-pushed the filter-orders branch 4 times, most recently from 80a3c74 to 7c5fc2d Compare August 8, 2018 10:12
Copy link
Contributor

@ronan-gloo ronan-gloo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Petite modification sur le format de date

@ddattee ddattee merged commit 7f77bac into shoppingflux:develop Sep 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants