Jump to content

Hook for partial refund


valentin_11

Recommended Posts

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();
    }
}

  • Thanks 1
Link to comment
Share on other sites

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

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