khaaliq Posted April 21, 2003 Share Posted April 21, 2003 Is there a mod that sends an email to the store admin whenever someone creates an account but does not order? Can there be a section in admin that displys just new accounts? I would like to find this because my wholesale customers have to create an account and then I go in and change their prices. Quote Link to comment Share on other sites More sharing options...
Waza04 Posted April 21, 2003 Share Posted April 21, 2003 http://wiki.oscommerce.com/ Warren Quote Link to comment Share on other sites More sharing options...
rseigel Posted April 21, 2003 Share Posted April 21, 2003 WTF does wiki have to do with this question??? :? Quote Link to comment Share on other sites More sharing options...
Waza04 Posted April 21, 2003 Share Posted April 21, 2003 Sorry - Over looked the question - PLEASE DONT SWEAR - ITS IMATURE!! Warren Quote Link to comment Share on other sites More sharing options...
rseigel Posted April 21, 2003 Share Posted April 21, 2003 Whose swearing? :roll: ...speaking of immature.... Quote Link to comment Share on other sites More sharing options...
Waza04 Posted April 21, 2003 Share Posted April 21, 2003 YOUR SWEARING!!! WTF = What The F**k!! Warren Quote Link to comment Share on other sites More sharing options...
rseigel Posted April 21, 2003 Share Posted April 21, 2003 :roll: What exactly is your point??? Actually, you know what...just bite me and back off before I shove my foot up your ass yet again. We've already proven time and time again that I can make you look like an idiot at will. Do you really want to go down this road again? Quote Link to comment Share on other sites More sharing options...
khaaliq Posted April 21, 2003 Author Share Posted April 21, 2003 I'm sorry, but does either one of you have an answer to the original question? :) Quote Link to comment Share on other sites More sharing options...
orchard Posted April 21, 2003 Share Posted April 21, 2003 I would like to know if there is a contribution that sends an email when someone creates an account too? We are giving a free sample to people when they create an account so it would be nice to know when they create an account. Quote In olden times the men were made of iron and the ships were made of wood; now it's the other way around. :wink: Link to comment Share on other sites More sharing options...
rseigel Posted April 22, 2003 Share Posted April 22, 2003 Should be easy enough to add the appropriate logic to create_account_process.php. Just replicate the mail routine that's already there to send the welcome email to the customer, change it to whatever you want it to say and have it send it to you (the shop owner) instead of the customer. Nothing to it. 8) Quote Link to comment Share on other sites More sharing options...
khaaliq Posted April 22, 2003 Author Share Posted April 22, 2003 ok, can you show me an example? :) I don't know php that well to take the chance of goofing something up on my site. Quote Link to comment Share on other sites More sharing options...
rseigel Posted April 22, 2003 Share Posted April 22, 2003 But learning is half the fun. :D This is the relevant code from create_account_process.php // build the message content $name = $firstname . " " . $lastname; if (ACCOUNT_GENDER == 'true') { if ($HTTP_POST_VARS['gender'] == 'm') { $email_text = EMAIL_GREET_MR; } else { $email_text = EMAIL_GREET_MS; } } else { $email_text = EMAIL_GREET_NONE; } $email_text .= EMAIL_WELCOME . EMAIL_TEXT . EMAIL_CONTACT . EMAIL_WARNING; tep_mail($name, $email_address, EMAIL_SUBJECT, nl2br($email_text), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); All you really need to add is another tep_mail line and instead of $email_address put your email address so it sends it to you. You can also add other bits and pieces (customer name, address, etc.) so it makes more sense and allows you the information that you need without having to go to the database to get it. Have fun! :shock: Quote Link to comment Share on other sites More sharing options...
khaaliq Posted April 22, 2003 Author Share Posted April 22, 2003 Forgive me for being a little slow. I add this code to create_account_process.php right? Quote Link to comment Share on other sites More sharing options...
khaaliq Posted April 22, 2003 Author Share Posted April 22, 2003 This is the line that I added to create_account_process.php tep_mail(STORE_OWNER_EMAIL_ADDRESS); That did not work. I tried putting my email address like this [email protected] but that returned a blank page. Quote Link to comment Share on other sites More sharing options...
khaaliq Posted April 22, 2003 Author Share Posted April 22, 2003 I figured it out! Thanks Ron :D Quote Link to comment Share on other sites More sharing options...
rseigel Posted April 22, 2003 Share Posted April 22, 2003 8) Quote Link to comment Share on other sites More sharing options...
casper Posted April 24, 2003 Share Posted April 24, 2003 Could you post what you did?? I could not figure out by myself. :( Please..... Thank you!!!!!!! Quote Link to comment Share on other sites More sharing options...
khaaliq Posted April 24, 2003 Author Share Posted April 24, 2003 Casper, look for this in create_account_process.php // build the message content $name = $firstname . " " . $lastname; if (ACCOUNT_GENDER == 'true') { if ($HTTP_POST_VARS['gender'] == 'm') { $email_text = EMAIL_GREET_MR; } else { $email_text = EMAIL_GREET_MS; } } else { $email_text = EMAIL_GREET_NONE; } $email_text .= EMAIL_WELCOME . EMAIL_TEXT . EMAIL_CONTACT . EMAIL_WARNING; tep_mail($name, $email_address, EMAIL_SUBJECT, nl2br($email_text), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); I just took this tep_mail($name, $email_address, EMAIL_SUBJECT, nl2br($email_text), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); and put it at the end. so that it looks like this // build the message content $name = $firstname . " " . $lastname; if (ACCOUNT_GENDER == 'true') { if ($HTTP_POST_VARS['gender'] == 'm') { $email_text = EMAIL_GREET_MR; } else { $email_text = EMAIL_GREET_MS; } } else { $email_text = EMAIL_GREET_NONE; } $email_text .= EMAIL_WELCOME . EMAIL_TEXT . EMAIL_CONTACT . EMAIL_WARNING; tep_mail($name, $email_address, EMAIL_SUBJECT, nl2br($email_text), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); tep_mail($name, $email_address, EMAIL_SUBJECT, nl2br($email_text), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); Then replace the $email_address in the code that you put at the end with your email address. That sends a welcome email whenever someone creates an account. I still cannot figure out how to replace the welcome text with the persons name, address, etc. :lol: Quote Link to comment Share on other sites More sharing options...
casper Posted April 24, 2003 Share Posted April 24, 2003 I did exactly what you said here and I got an error unexpected '@' in line.... Do I need to put something ' or " before and after my e-mail address?? Thanks for you help! Quote Link to comment Share on other sites More sharing options...
khaaliq Posted April 24, 2003 Author Share Posted April 24, 2003 your email needs to be in quotes '[email protected]' Quote Link to comment Share on other sites More sharing options...
casper Posted April 24, 2003 Share Posted April 24, 2003 Worked!! Thank you again! :) Quote Link to comment Share on other sites More sharing options...
khaaliq Posted April 24, 2003 Author Share Posted April 24, 2003 You're Welcome! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.