liu25 Posted December 8, 2014 Share Posted December 8, 2014 Hi, I'm developing an app using Prestashop webservice. After reading the tutorial on webservices, I learned that orders can be filtered by adding filters such as "&filter[current_state]=[2,12]". This will return every order that has current_state between 2 and 12. I'm wondering if I can use filter to get only current_state is 2 and 12. I can do this by making two calls one with filter of current_state 2 and another with filter of current_state 12. But is it possible to do it with one call? That I can specify multiple order_states. Please let me know. Thanks, Link to comment Share on other sites More sharing options...
salbrech Posted February 5, 2015 Share Posted February 5, 2015 Hi, I'm developing an app using Prestashop webservice. After reading the tutorial on webservices, I learned that orders can be filtered by adding filters such as "&filter[current_state]=[2,12]". This will return every order that has current_state between 2 and 12. I'm wondering if I can use filter to get only current_state is 2 and 12. I can do this by making two calls one with filter of current_state 2 and another with filter of current_state 12. But is it possible to do it with one call? That I can specify multiple order_states. Please let me know. Thanks, Hi Liu25, I'm expecting the same "limitation" of webservices, i'm wondering if you founded any solution or work-arround ? Thanks Sébastien Link to comment Share on other sites More sharing options...
boxerprod Posted February 18, 2015 Share Posted February 18, 2015 From what I know : using [1,12] means all id between 1 and 12 ( 1 2 3 4 .... 11 12) try to use [1|12] , should return only id of 1 and 12 3 Link to comment Share on other sites More sharing options...
NBlack Posted May 28, 2020 Share Posted May 28, 2020 @boxerprod You are totally right. Working in Prestashop 1.7.6 Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now