Jump to content

Web service filter with not equal


smida.haroun

Recommended Posts

  • 3 weeks later...

In php you can do this like so

require_once('PSWebServiceLibrary.php');
$webService = new PrestaShopWebservice('www.example.com', $key, false);

$opts = array();
$opts['resource'] = 'order_details';
$opts['display'] = '[id_order]';
$opts['filter[id]'] = '![4]';

$xml = $webService->get($opts);

This will filter out anything that has an id=4
 

Link to comment
Share on other sites

  • 5 months later...

In php you can do this like so

require_once('PSWebServiceLibrary.php');
$webService = new PrestaShopWebservice('www.example.com', $key, false);

$opts = array();
$opts['resource'] = 'order_details';
$opts['display'] = '[id_order]';
$opts['filter[id]'] = '![4]';

$xml = $webService->get($opts);

This will filter out anything that has an id=4

 

 

 

is this working? its not working for me :(

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...