Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

New account e-mails


jailaxmi

Recommended Posts

I was wondering how to add a line or two at the end of the email a customer receives after creating an account. Something like:

 

Thank you for visiting us!

Store Name

Store URL

 

Any suggestions? I am new to code...

 

Thanks!

 

jailaxmi

I repeat myself when under stress, I repeat myself when under stress, I repeat myself...

 

--King Crimson (“Discipline”)

Link to comment
Share on other sites

create_account.php is where the changes go, around line 249:

 

// build the message content

$name = $firstname . ' ' . $lastname;

 

if (ACCOUNT_GENDER == 'true') {

if ($gender == 'm') {

$email_text = sprintf(EMAIL_GREET_MR, $lastname);

} else {

$email_text = sprintf(EMAIL_GREET_MS, $lastname);

}

} else {

$email_text = sprintf(EMAIL_GREET_NONE, $firstname);

}

 

$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);

 

You'd also need to make changes to includes/languages/english/create_account.php (which is where the actual text is defined)

 

Vger

Link to comment
Share on other sites

create_account.php is where the changes go, around line 249:

 

// build the message content

$name = $firstname . ' ' . $lastname;

 

if (ACCOUNT_GENDER == 'true') {

if ($gender == 'm') {

$email_text = sprintf(EMAIL_GREET_MR, $lastname);

} else {

$email_text = sprintf(EMAIL_GREET_MS, $lastname);

}

} else {

$email_text = sprintf(EMAIL_GREET_NONE, $firstname);

}

 

$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);

 

You'd also need to make changes to includes/languages/english/create_account.php (which is where the actual text is defined)

 

Vger

Thanks for your quick reply!

At the end of includes/languages/english/create_account.php it says:

define('EMAIL_WARNING', '<b>Note:</b> If you did not sign up to create an account with this e-mail address, please let us know by sending an e-mail to: ' . STORE_OWNER_EMAIL_ADDRESS . '.' . "\n\n");

 

Where would I add the text I want and how do I add some space between what's there and what I would be adding?

I tried to just add the text at the end, but nothing shows on the e-mail.

 

Thanks in advance for any help!

 

jailaxmi

I repeat myself when under stress, I repeat myself when under stress, I repeat myself...

 

--King Crimson (“Discipline”)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...