chelo23 Posted November 1, 2023 Share Posted November 1, 2023 Good morning I would like to ask for help here because I have a problem with my Prestashop website. Indeed, I have 2 payment methods on my Prestashop site, but I have that for each payment system, the display of the "order-confirmation.tpl" confirmation page is different. I thought about duplicating it and renaming it differently, but I don't know how to link it to one of the 2 payment methods. I asked you to help me, because I'm seriously struggling with this. THANKS Link to comment Share on other sites More sharing options...
El plan de Dan Posted November 1, 2023 Share Posted November 1, 2023 Do you have the URLs to show, so we can see? Link to comment Share on other sites More sharing options...
chelo23 Posted November 1, 2023 Author Share Posted November 1, 2023 https://atservicesboutique.com/ I would like for each payment method, the final message on the confirmation page ""order-confirmation.tpl" to be different. Link to comment Share on other sites More sharing options...
musicmaster Posted November 2, 2023 Share Posted November 2, 2023 On 11/1/2023 at 1:47 PM, chelo23 said: I thought about duplicating it and renaming it differently, but I don't know how to link it to one of the 2 payment methods. Calling two different pages would mean that you need some changes in the Prestashop source code that calls this page. That is not handy when later you would want to do an upgrade. An easier solution would be to edit "order-confirmation.tpl" and to find some variable that discerns the payment methods. Then you can add an if-then-else construction in it. Link to comment Share on other sites More sharing options...
chelo23 Posted November 3, 2023 Author Share Posted November 3, 2023 Thanks musicmaster How then to do what you proposed? I don't know much about it but if you show me I can make the modifications. Link to comment Share on other sites More sharing options...
musicmaster Posted November 3, 2023 Share Posted November 3, 2023 5 minutes ago, chelo23 said: Thanks musicmaster How then to do what you proposed? I don't know much about it but if you show me I can make the modifications. Sorry, I would need to study this myself too. 1 Link to comment Share on other sites More sharing options...
QuickUpdate.net Posted November 3, 2023 Share Posted November 3, 2023 The order conformation page is comprised of several blocks some of them being "hooked" into by modules - so can use the main "order-confirmation" template to add some information specific as you want depending on the payment information you receive, but the block that comes from modules will need to be changed in the respective "checkout" and payment modules respectively depending on which ones are hooking into the confirmation page. 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