depp1983 Posted February 15, 2012 Share Posted February 15, 2012 Hi there I have to send an email with customer data and ordered product data to an external server if a user has finished his order (if he has already paid by credit card or of he will get a bill). My question is where i should preferably place this mail-function. I went trough some tutorials but i think there are several possibilities and before doing something very stupid i wanted to ask you if you already know the best way to do that. Thank you for your advice. Best regards Link to comment Share on other sites More sharing options...
bellini13 Posted February 16, 2012 Share Posted February 16, 2012 The PaymentModule.php class is what currently sends the email to the customer after the order. Should be easy enough to alter to send another email elsewhere. Link to comment Share on other sites More sharing options...
depp1983 Posted February 16, 2012 Author Share Posted February 16, 2012 hi bellini13 thank you for the hint! best regards Link to comment Share on other sites More sharing options...
nashtu3000 Posted February 17, 2012 Share Posted February 17, 2012 That's not the proper way of doing it. Look under the module mail alerts /index.php?tab=AdminModules&configure=mailalert Link to comment Share on other sites More sharing options...
bellini13 Posted February 17, 2012 Share Posted February 17, 2012 What Nashtu3000 is saying, it is better to create a module that hooks the order and sends the mail, which is what the mailalerts does. Link to comment Share on other sites More sharing options...
nashtu3000 Posted February 17, 2012 Share Posted February 17, 2012 The module is in prestashop by default. Link to comment Share on other sites More sharing options...
depp1983 Posted February 24, 2012 Author Share Posted February 24, 2012 Thanks nashtu3000, too. After the hint of bellini13, I see where i could place this code. But if it is much more proper to change the mailalert-module according to this, i would like to learn how to do that. I had a look at this module and i can't find where to put it properly as a new module. how would you do that? or how much would it cost if you just did it for me? Link to comment Share on other sites More sharing options...
Calista Posted February 24, 2012 Share Posted February 24, 2012 I can't find this confirmation email module. EXACTLY what is it called? Where is it supposed to be? How to I configure it in the backoffice? Link to comment Share on other sites More sharing options...
bellini13 Posted February 25, 2012 Share Posted February 25, 2012 @Calista The module is called mailalerts and is located in the modules folder. To configure it, look in the modules section of the backoffice, and search for mailalerts Link to comment Share on other sites More sharing options...
Calista Posted February 26, 2012 Share Posted February 26, 2012 Thanks Bellini, It's working now. For anyone who does not see all of the modules they are supposed to have in their back office, your configured memory may be a problem. You can correct this problem in your config.inc.php file in the config folder. You may have to add a line something like this: ini_set('memory_limit','160M'); In my file, I added it to line #44. There is a Comment above this line that says something like: /* Improve PHP configuration to prevent issues */ I added line #44 immediately after: ini_set('magic_quotes_runtime', 0); Hope this helps someone. Link to comment Share on other sites More sharing options...
abellasmith Posted February 27, 2012 Share Posted February 27, 2012 Hie... I can't find the find the confirmation mail.. There is some error .. Plz help me.. Thanks in Advance Link to comment Share on other sites More sharing options...
OmegaPT Posted September 14, 2015 Share Posted September 14, 2015 Hi Have the same problem test email its worck but client buy but administrator cannot recibe e-mail mail alert dont worck http://prntscr.com/8fuiy3 its ok http://prntscr.com/8fuj81 its ok http://prntscr.com/8fujrx its ok http://prntscr.com/8fujwv its ok http://prntscr.com/8fuof4 and dont worck emails 1.5 prestashop 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