Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Email from New Customers


shanemetzler

Recommended Posts

Hello All,

 

I was wondering if there was a way to email myself when a new customer signs up...This would allow me to see how many people are signing up on a daily basis and would allow me to email them any specials. I would like to get an email rather than having to log into the admin page.

 

Thanks!

 

Shane

Link to comment
Share on other sites

Hello All,

 

I was wondering if there was a way to email myself when a new customer signs up...This would allow me to see how many people are signing up on a daily basis and would allow me to email them any specials.  I would like to get an email rather than having to log into the admin page.

 

Thanks!

 

Shane

in your admin mystore set send extra emails true and add your details :thumbsup:

( WARNING )

I think I know what Im talking about.

BACK UP BACK UP BACK UP BACK UP

Link to comment
Share on other sites

in your admin mystore  set  send extra emails true and add your details  :thumbsup:

 

nope that's not true ... it will only work for orders ..... unless you add a mod version of the lines found in checkout_process.php to create_account ...

 

checkout_process.php:

  tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

// send emails to other people
 if (SEND_EXTRA_ORDER_EMAILS_TO != '') {
   tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
 }

 

you will need to copy the extra email part before the redirect in create accound, and use the values the create_acount email has.

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

in your admin mystore  set  send extra emails true and add your details  :thumbsup:

this will send extra order emails to whoever...as Monika pointed out. I took a diferent route though to get the same effect and the info input I wanted.

 

open catalog/create-account.php

find

      tep_mail($name, $email_address, EMAIL_SUBJECT, $email_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

add after that

    // admin email notification 
   $admin_email_text .= ADMIN_EMAIL_WELCOME . "\n" . ADMIN_EMAIL_TEXT . "\n" . ADMIN_EMAIL_FULLNAME . $name . "\n" . ADMIN_EMAIL_EMAIL . $email_address;
   tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, ADMIN_EMAIL_SUBJECT, nl2br($admin_email_text), $name, $email_address, '');

open catalog/includes/languages/LANG OF CHOICE/create_account.php

add before the closing php tag:

//Admin email
define('ADMIN_EMAIL_SUBJECT', 'New Retail Account Created');
define('ADMIN_EMAIL_WELCOME', 'Administrator,');
define('ADMIN_EMAIL_TEXT', 'A new <strong>RETAIL</strong> account has been created. Details:');
define('ADMIN_EMAIL_FULLNAME', '<strong>Name: </strong>');
define('ADMIN_EMAIL_EMAIL', '<strong>E-Mail: </strong>');

the mail message sent to the admin looks like this when a new account is created:

From: <the person who created the account>

To: <the address you set in send extra order emails>

Subject: <input from whatever you set the language file as(ADMIN_EMAIL_SUBJECT) and in my case New Retail Account Created>

_____________________________________________

Administrator,

 

A new RETAIL account has been created. Details:

 

Name: <the first and last name of the account creator>

 

E-Mail: <the email address that the new account used to create the account>

you may edit that any way you see fit. I have 2 separate create account pages...retail and wholesale...and each of those create_account pages send different info to me as i need it.
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...