Bastien117 Posted May 31, 2013 Share Posted May 31, 2013 Hi Prestashop community, In the confirmation email received by the shop owner (i.e. me), I would like to display the purchase price (tax exc) instead of the sale price. It would allow me to forward it directly to one of my supplier, and he wouldn't be able to see my sale price. I looked into Mail Alert module and into /classes/PaymentModule.php file, but I didn't find anything that can do the trick ... If anyone can help me ... Thanks ! Bastien Link to comment Share on other sites More sharing options...
Alex Simonchik BelVG Posted May 31, 2013 Share Posted May 31, 2013 Hi, you need to override classes/PaymentModule.php "validateOrder" function. There is Mail::Send with $data array with your needed params. Regards Link to comment Share on other sites More sharing options...
Bastien117 Posted May 31, 2013 Author Share Posted May 31, 2013 Hi and thanks for the quick answer. I looked into the file, ans the Mail::Send you're speaking, but it seems to be the mail sent to customers, and to shop owner via the mail alert module ... Am I wrong ? Link to comment Share on other sites More sharing options...
Alex Simonchik BelVG Posted May 31, 2013 Share Posted May 31, 2013 This function sends email to customer. Link to comment Share on other sites More sharing options...
Bastien117 Posted May 31, 2013 Author Share Posted May 31, 2013 Ok so it's not the one I wanted. The email I want to modify is the one sent to the shop owner, by the module Mail Alert 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