taxar Posted October 26, 2017 Share Posted October 26, 2017 (edited) 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 October 26, 2017 by taxar Solved (see edit history) Link to comment Share on other sites More sharing options...
taxar Posted October 26, 2017 Author Share Posted October 26, 2017 Solution: Create file Order.php in override/classes/order/ With code attach Now is possible, set state of order from webservice Thanks Order.php 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