dafonk Posted February 8, 2018 Share Posted February 8, 2018 I need that "create_account", from tep_mail to the customer, also send me an email to the email account of the owner of the Store with all the registration data from the new client. This means that each time a new customer opens an account I get that email with the registration data or at least with a notice that someone opened a new account Thanks for any help ;) Link to comment Share on other sites More sharing options...
ArtcoInc Posted February 8, 2018 Share Posted February 8, 2018 @dafonk In the file create_account.php, find this bit of code: $email_text .= EMAIL_WELCOME . EMAIL_TEXT . EMAIL_CONTACT . EMAIL_WARNING; tep_mail($name, $email_address, EMAIL_SUBJECT, $email_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); immediately after that, add this: // send emails to other people if (SEND_EXTRA_ORDER_EMAILS_TO != '') { tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_SUBJECT, $email_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); } Then, in Admin -> Configuration -> My Store, enter your email address in the 'Send Extra Order Emails To' field. HTH Malcolm Link to comment Share on other sites More sharing options...
dafonk Posted February 8, 2018 Author Share Posted February 8, 2018 Thank you very much, I was just playing with that, I took it out of checkout_procces. But you came just in time;) Thank you Link to comment Share on other sites More sharing options...
dafonk Posted February 9, 2018 Author Share Posted February 9, 2018 Well, I was testing this and the email was sent to the address that I put in Configuration / My Store but it comes empty, without the data of the registration form of the new client. Link to comment Share on other sites More sharing options...
ArtcoInc Posted February 9, 2018 Share Posted February 9, 2018 1) Make sure you do not have a typo here: (in bold) tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_SUBJECT, $email_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); 2) If you have another email address available, create a new account in the store with the new email address, and compare the email sent to you as the customer, to the email sent to you as the store owner. Link to comment Share on other sites More sharing options...
dafonk Posted February 10, 2018 Author Share Posted February 10, 2018 Changing $ email_text to $ email_address at least in the email body I receive the email address of the client. But I would need all the data of the registration form ... and a little more complex I need the name of the product that the client chose in the shopping_cart I'm trying to change the way the e-shop works a bit so that it works as a pre-sale, this means that customers register in a list for the pre-sale of a book (without paying anything but goin through the shopping cart and the shipping so they see the price of the product and the shipping cost) and when it reaches the quota of 50 they can go through the normal payment process and I printed the book and sent it to them. Not everything has to be automatic, I can do the list myself and when it reaches 50 I send everyone a link to be able to do the normal shopping process, or something like that I know, quite complicated Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.