Jump to content

how to pass parameters or variables from one controller to another in prestashop


NishantVadgama

Recommended Posts

From paymentModule to order confirmation? You can try executing the hook directly... but all modules hooked there will run. I sggest you find a workaround as this would breaks the already broken mvc pattern prestashop has. Why not assigning the array from a module hooking there?

Link to comment
Share on other sites

hm, it sounds tough. You can't pass a parameter there as the paymentmodule class runs on a different page compared to the order confirmation, so at a different time. You need to store the value/s in the db (serialized, perhaps), and get them back

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...