Jump to content

Get order reference number in order summary


Kozlo

Recommended Posts

Hi everyone,


 


I have a problem with my module. I created a payment module based on bankwire module with some differences. I'm stuck with this problem and hope someone could help.


 


I need to create a form in payment_execution.tpl with fields that come from database (like address firstname, lastname, etc.) I managed to get those informations from database, but now I need to get the reference of the order (I can't get it from the database of course because it's not stored there yet, or at least I can't found it). 


 


My question is, how can I get the order reference, so I could insert it in the form I created in payment_execution.tpl?


 


Thank you.


Regards


 

Link to comment
Share on other sites

Nope, you want to display an order reference before the customer has said yes to confirming the order, i.e. there is no order, customer can still abandon the whole process at this point.  You can't pass an order reference to the order validation process either so you can't pre-define it using standard prestashop, though I guess you could override PaymentModule and hijack the validateOrder function.

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