Jump to content

How to show custom message after redirecting back user from module

Recommended Posts


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 :


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

Share this post

Link to post
Share on other sites


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



Share this post

Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More