mohitbumb Posted February 27, 2019 Share Posted February 27, 2019 Hi, I've created prestashop module for Payment Gateway and it works fine but if/for any reason order is not completed properly then after my external api response I redirect back user to step 1 with help of this code : Tools::redirect('index.php?controller=order&step=1'); But now I want that flow + also wanted to show user a proper message which comes from my api lets say I've message in variable $message but how can I show it to user after him/her back to step 1 Is there anything like flash messages or something which can solve my issue Link to comment Share on other sites More sharing options...
Rolige Posted March 4, 2019 Share Posted March 4, 2019 Hello, Option 1: Cookies Option 2: Variables session ($_SESSION) Option 3: Insert in the redirection Tools::redirect('index.php?controller=order&step=1&message=My message here'); Regards! Link to comment Share on other sites More sharing options...
mgo3 Posted April 12, 2022 Share Posted April 12, 2022 Option 3 does not work 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