Jump to content

[SOLVED] No set current_state automatically


taxar

Recommended Posts

Hi! 

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'
),

 

and

 $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'),

 

and
 

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