Jump to content

Webservice not filter for current_status


Totti

Recommended Posts

With the latest version of prestashop I have two problems that were not there before.

Now you can not filter the orders for the current state.

When I modify an order via webservice and then save it, it also updates the current status of the order (first he did not), you can avoid this behavior?

Thank you.

 

Con l'ultima versione di prestashop ho due problemi che prima non c'erano.

Adesso non è possibile filtrare gli ordini per lo stato corrente.

Quando tramite webservice modifico un ordine e poi lo salvo , mi aggiorna anche lo stato corrente dell'ordine (prima non lo faceva), è possibile evitare questo comportamento ?

Grazie.

Link to comment
Share on other sites

  • 3 weeks later...

Working with the same problem, i just found that the cause of the "notFilterable" status is produced by this (order class, function webserviceparameters):

 

'current_state' => array(
    'xlink_resource'=> 'order_states',
    'getter' => 'getWsCurrentState',
    'setter' => 'setWsCurrentState'
),
 
I made no investigation on the theme, but found that if you remove this two lines, notFilterable dissapears.
Hope it can help you
Link to comment
Share on other sites

  • 5 weeks later...

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...