To change a customer's password in your Netfirms Commerce Pro shopping cart, please follow these steps:
I. CREATE NEW PASSWORD VIA A SCRIPT
Open a text editor (eg. Notepad)
Copy and paste all of the code below in to your text editor:
<?PHP
global $password;
$password = "YourPassword";
echo tep_encrypt_password($password);
function tep_encrypt_password($plain) {
$password = '';
for ($i=0; $i<10; $i++) {
$password .= tep_rand();
}
$salt = substr(md5($password), 0, 2);
$password = md5($salt . $plain) . ':' . $salt;
return $password;
}
function tep_rand($min = null, $max = null) {
static $seeded;
if (!isset($seeded)) {
mt_srand((double)microtime()*1000000);
$seeded = true;
}
if (isset($min) && isset($max)) {
if ($min >= $max) {
return $min;
} else {
return mt_rand($min, $max);
}
} else {
return mt_rand();
}
}
?>
On the third line of the script, change "YourPassword" to the new password.
Save the file as "change_password.php".
Upload change_password.php to your "www" folder.
Copy this string of characters. This is your new password after being encrypted.
II. UPDATE COMMERCE PRO DATABASE WITH NEW PASSWORD
- To identify which database your Netfirms Commerce Pro store is using, use an FTP tool (eg. Filezilla) or Netfirms File Manager (accessible from the Netfirms Control Panel) and open the configure.php file found in ../catalog/admin/includes/
- Note the database information is indicated under the section //define our database connection
- Login to your Netfirms Control Panel at http://netfirms.com/members
- Click Site Tools
- Click Database
- For the Commerce Pro store you wish to configure, click Admin. If you have more than one Commerce Pro store, please be sure to update the correct database.
- Click phpMyAdmin
- Click customers table from the left menu
- Click the Browse
- Locate the customer that you would like to update the password for and click the Edit
- Paste the encrypted password in the customers_password field.
- Click Go
The above steps should have successfully changed the customer's password to the password specified within step I. 3 above.