Jump to content

[SOLVED] No set current_state automatically


Recommended Posts


I work adding orders with webservice at a module, but for default current_state set automatically in 12, (External Payment Success).

I need send current_state in XML, i see in /classes/order/Order.php :

$webserviceParameters = 'current_state' => array(
		'xlink_resource'=> 'order_states',
		setter' => 'setWsCurrentState'



 $payment_module->validateOrder($this->id_cart, Configuration::get('PS_OS_WS_PAYMENT'), $this->total_paid, $this->payment, null, array(), null, false, $customer->secure_key);


if i change this code to

$webserviceParameters = 'current_state' => array('xlink_resource'=> 'order_states'),



$payment_module->validateOrder($this->id_cart, $this->current_state, $this->total_paid, $this->payment, null, array(), null, false, $customer->secure_key);


Work well

How create override for this change, with out modify order.php?

Thanks :)

Edited by taxar
Solved (see edit history)

Share this post

Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More