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
[API] Filtering orders by date_add #10822
Comments
Hi @Ludofloria, When I use the date_add filter, I don't get any result.
Reported in the forge. |
In order to this filter to work, you have to add "&date=1" ;) |
@Ludofloria, thanks! Yes, you are right, to show orders that are placed on the 1st of July, or on the 31st of July. I have to change my filter this way : |
Thanks for this extremely quick feedback :) |
@khouloudbelguith Could you try to reproduce it with 1.7.6.0 ? |
Hi @marionf, Yes, I manage to reproduce the issue with PS1.7.6.0. If I make a filter like this http://presta1760/api/orders/?display=full&filter[date_add]=[2019-05-24,2019-05-28]&date=1 I have only the five first products, the orders created on 2019-05-28 are not displayed We need to change the filter to 2019-05-29, to display them Thanks! |
Hi, I manage to reproduce the issue with PS1770rc1build2. Thanks! |
Describe the bug
When querying the API using this type of URL :
https://www.myprestashopsite.com/api/orders/?display=full&filter[current_state]=[4|5|25]&filter[date_add]=[2018-07-01,2018-07-31]&date=1&sort=date_add_DESC (or ASC)
It doesn't show orders that are placed on the 1st of July, or on the 31st of July. I have to change my filter this way :
filter[date_add]=[2018-06-30,2018-08-01]
Only then I have thoses orders.
To Reproduce
Steps to reproduce the behavior:
Additionnal information
PrestaShop version: 1.7.3.3
PHP version: 7.0 (FPM)
The text was updated successfully, but these errors were encountered: