Jump to content

Redirect with Errors


Recommended Posts

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';


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?



Edited by darktangent (see edit history)
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...