Jump to content

1.6] Hook hookActionOrderStatusUpdate : Display an error


flow10000

Recommended Posts

Hi,

 

I'm actually working on an addon and I want to use hookActionOrderStatusUpdate.

In specific cases, I want no changes in the status and display an error in the admin product page.

 

I use that code : 

if($statusMustNotChange){
Tools::redirect($_SERVER['HTTP_REFERER']);
// How to print an error on the return page ?
}

1 - Is "Tools::redirect($_SERVER['HTTP_REFERER']);" a good way to do what I want ?

2 - How do I print an error on the return page ?

 

Thanks for help

 

 

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