[email protected] Posted November 3, 2016 Share Posted November 3, 2016 Hi, I'm trying all kinds of methods to change the order_name to the order_id on my email confirmations without any luck! I'm using PS 1.6.0.9 If anyone can help me with this, would be greatly appreciated! Thanks in advance. Link to comment Share on other sites More sharing options...
polosat Posted November 3, 2016 Share Posted November 3, 2016 You have to override the PaymentModule class and add id_order to the template variables.See this post for the reference: https://www.prestashop.com/forums/topic/372654-how-to-add-id-order-on-emailorder-conf/ Link to comment Share on other sites More sharing options...
[email protected] Posted November 3, 2016 Author Share Posted November 3, 2016 Thanks Polosat, unfortunately none of these solutions work for me. If i change the class or the override/class files, I still can't use order_id in my mails. Link to comment Share on other sites More sharing options...
polosat Posted November 3, 2016 Share Posted November 3, 2016 Did you clear the cache after overriding?What payment module do you use? Maybe it sends emails via its own function. Link to comment Share on other sites More sharing options...
[email protected] Posted November 3, 2016 Author Share Posted November 3, 2016 I cleated the cache (did nothing). We are using a custom payment module made by our payment solution provider but i don't find any reference to sending mails from this module. Link to comment Share on other sites More sharing options...
polosat Posted November 3, 2016 Share Posted November 3, 2016 Well... did you try to override the Mail class? That's not the best solution but it can be used too.If even that override doesn't work, then make sure you're editing correct mail template and your overrides are working at all Link to comment Share on other sites More sharing options...
[email protected] Posted November 7, 2016 Author Share Posted November 7, 2016 Hi Polosat, It works now, i was testing with a custom made order confirmation to our warerhouse hence it wasn't working ... *derp* :-) Thanks for your help ! Well... did you try to override the Mail class? That's not the best solution but it can be used too.If even that override doesn't work, then make sure you're editing correct mail template and your overrides are working at all 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