Kozlo Posted March 22, 2016 Share Posted March 22, 2016 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 More sharing options...
roja45 Posted March 22, 2016 Share Posted March 22, 2016 The order hasn't been created at this point so no order reference anywhere, it gets created when you click the confirm button on the payment_execution screen. Link to comment Share on other sites More sharing options...
Kozlo Posted March 22, 2016 Author Share Posted March 22, 2016 Than you for your reply. And is there a way to use this code and generate it before the validation and confirmation? Regards Link to comment Share on other sites More sharing options...
roja45 Posted March 22, 2016 Share Posted March 22, 2016 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 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