darktangent Posted December 19, 2012 Share Posted December 19, 2012 (edited) In the ordercontroller override i need to redirect to a page with errors. But when a redirect the errors are lost. Like when i am at step 1 of the controller i need to go back to the cart page. But if i redirect using $this->errors[] = 'There is an erro'; Tools::redirect('/index.php?controller=order'); The errors get lost. I think prestashop generates a new http request in the redirect. what should i do so that i can step back to step no. 0 and keep the errors? Thanks Edited December 20, 2012 by darktangent (see edit history) Link to comment Share on other sites More sharing options...
darktangent Posted December 20, 2012 Author Share Posted December 20, 2012 Will someone reply please? 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