jump to navigation

username and password in welcome email of oscommerce July 5, 2007

Posted by admin in : Simple Issues , trackback

One of our clients wanted this small thing to be achieved. They wanted the USERNAME And PASSWORD to be shown on the welcome email that an user while registering in an eshop

Here are the steps :

2. Open the create_account.php (catalog/) and :

Change the code FROM:

$email_text .= EMAIL_WELCOME . EMAIL_TEXT . EMAIL_CONTACT . EMAIL_WARNING;

TO:

$email_text .= EMAIL_WELCOME . EMAIL_USERNAME . EMAIL_PASSWORD . EMAIL_TEXT . EMAIL_CONTACT . EMAIL_WARNING;

open the language file create_account.php
(usually in /languages/english, but may need to open other languages if using other languages):

Find the code:
define(’EMAIL_WELCOME’, ‘Welcome to <b>’ . STORE_NAME . ‘</b>.’ . “\n\n”);

Add after that code:
define(’EMAIL_USERNAME’, ‘Your username is: ‘ . stripslashes($HTTP_POST_VARS[’email_address’]) . “\n\n”);
define(’EMAIL_PASSWORD’, ‘Your password is: ‘ . stripslashes($HTTP_POST_VARS[’password’]) . “\n\n”);
Thats it !

Comments»

no comments yet - be the first?