Updated Mod for 3.5.9
The include/register.php needs to be different if you are using my SQL Query (posted above and in this post).
This change happens around line 190 of include/register.php for version 3.5.9.
Code:
#
# Send mail to registered user
# ADP Modification
$customer_language = func_get_language ($newuser_info["language"]);
if ($config["Email"]["modify_emails"]=="Y"){
func_send_mail($newuser_info["email"], "mail/profile_modified_subj.tpl", "mail/profile_modified.tpl", $config["Company"]["users_department"], false);
#
# Send mail to customers department
#
func_send_mail($config["Company"]["users_department"], "mail/profile_admin_modified_subj.tpl", "mail/profile_admin_modified.tpl", $newuser_info["email"], true);}
}
I always add ADP Modification in the comments so I can find my changes later. You should add your own note unless you copy all my mods and are a disciple.
Note that the if statement is now
Code:
if ($config["Email"]["modify_emails"]=="Y")
$config[email] is necessary based on my SQL Insert Query
You also need to run this Insert query on your database. It can be done from the Patch/Upgrade area of the admin (SQL QUERY).
Code:
INSERT INTO `xcart_config` VALUES ('modify_emails', 'Enable email notifications for User Account Modifications', 'Y', 'Email', 100, 'checkbox', 'N');
That will place the checkbox in the General Settings/Email Options.
Thanks to FunkyDunk for the original help. This mod will be redundant in version 4.0 I believe but is very handy for version 3.5, 3.4 and 3.3
Happy X-Carting!