flow10000 Posted September 22, 2015 Share Posted September 22, 2015 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 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