valentin_11 Posted June 19, 2020 Share Posted June 19, 2020 Hi, does anybody know if there is a hook available for partial refund in the backoffice? actionOrderReturn doesn't seem to work and i haven't found any other hooks regarding returns in the list of hooks. Thank you in advance! Link to comment Share on other sites More sharing options...
Razi Posted June 19, 2020 Share Posted June 19, 2020 you can use the hook hookActionOrderStatusUpdate and from this you will easily make the condition for any action. example public function hookActionOrderStatusUpdate($params) { if($params['newOrderStatus']->id == 2) { $this->doSomething(); } } 1 Link to comment Share on other sites More sharing options...
valentin_11 Posted June 22, 2020 Author Share Posted June 22, 2020 On 6/19/2020 at 10:14 PM, Razi said: you can use the hook hookActionOrderStatusUpdate and from this you will easily make the condition for any action. example public function hookActionOrderStatusUpdate($params) { if($params['newOrderStatus']->id == 2) { $this->doSomething(); } } This isn't exactly what i was looking for, but it helps me anyway! Thank you! 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