New Customer Profile notification - encyrpt password

I am wondering if there is a way to hide or replace the customers password with ******* in the email that they receive once a customer registers on our website.



As it is now, when the customer receives their New customer profile notification email. The email shows their password. Our customers don't like that and we are receiving complaints about it.



User account information

Email: customer@emailprovider.com

Password: dummypass

Login URL: http://www.domainname.com/

Profile name: Main



We would like it to look more like this:



User account information

Email: customer@emailprovider.com

Password: ******* or (not shown)

Login URL: http://www.domainname.com/

Profile name: Main







We just sent out a New Years promotion to encourage our customers to sign up for our new rewards program, however, they must first register… Now with all of these new registrations customers are concerned about having their password revealed even though it's encrypted in the admin area - but they don't know that. Their concern is that as it makes its way to their inbox it can get caught.



Is this an easy fix?



Thanks!



~ Lake

To remove the password go into skins//mail/profiles/profiles_info.tpl and remove:


```php

{if $password}


{$lang.password}: 
{$password}

{/if}
```

John

You're awesome!!



Thank you!!

can you disable the email all together from being sent?

Does anyone know how to edit the general text content in the e-mail that is being sent? I particularity want to remove the “Dear customer” line in this e-mail. I was able to edit the other lines in languages, but can't figure the tpl file that has the “dear customer” part…



Thanks!



Jac

[quote name='sbooks' timestamp='1371218085' post='163600']

can you disable the email all together from being sent?

[/quote]

Hi @sbooks,

For this is required a core modification, into file [color=#ff0000]app/functions/fn.users.php[/color]



#replace


if (!empty($notify_user)) {


#with


if (!empty($notify_user) && 1==2) {




I hope that helps,





Valentin

[color=#808080][size=2]part of hungryweb.net[/size][/color]

[quote name='jacson' timestamp='1396397619' post='180693']

Does anyone know how to edit the general text content in the e-mail that is being sent? I particularity want to remove the “Dear customer” line in this e-mail. I was able to edit the other lines in languages, but can't figure the tpl file that has the “dear customer” part…



[/quote]



What CS-Cart version do you use? For example, in v 4.1.3 you can find the following line in the “design/themes/basic/mail/templates/profiles/create_profile.tpl”:



{__("dear")} {if $user_data.firstname}{$user_data.firstname}{else}{$user_data.user_type|fn_get_user_type_description|lower}{/if},






This template is sent for each new profile creation. Other templates can be also found in the “design/themes/basic/mail/templates/” directory.



Thanks.

Thanks for the reply eCom - sorry, should have said, its 4.0.3. I did find that tpl file and saw that line, but the text content that is being inserted is "Dear “customer”, looking at the tpl file is seems as though it should be inserting first name/last name and not generic “customer”, that is why I did not think this was the file to mess with. Maybe its the last part that says “get user type description”.



Sorry, I am not too familiar with the tpl files or how to edit them.



Jac

[quote name='jacson' timestamp='1396453616' post='180775']

Thanks for the reply eCom - sorry, should have said, its 4.0.3. I did find that tpl file and saw that line, but the text content that is being inserted is "Dear “customer”, looking at the tpl file is seems as though it should be inserting first name/last name and not generic “customer”, that is why I did not think this was the file to mess with. Maybe its the last part that says “get user type description”.



Sorry, I am not too familiar with the tpl files or how to edit them.

[/quote]



Let me explain the mentioned line for you:



{__("dear")} {if $user_data.firstname}{$user_data.firstname}{else}{$user_data.user_type|fn_get_user_type_description|lower}{/if},






Dear + (if firstname exists then show FIRSTNAME + LASTNAME else show user type (CUSTOMER, ADMIN, AFFILIATE, SUPPLIER, etc))



Hope that helps.

Thanks ecom - I see now…but with that, the New User Profile e-mail should indeed be inserting the first name and not “Dear Customer”. I would be OK if it said Dear [their first name], but the client really hates the “dear customer”. I either need to completely remove it, or change the text in languages I guess.



Do you have any idea why the first name is not being inserted?



Thanks,



Jac

[quote name='jacson' timestamp='1396627059' post='181005']

Thanks ecom - I see now…but with that, the New User Profile e-mail should indeed be inserting the first name and not “Dear Customer”. I would be OK if it said Dear [their first name], but the client really hates the “dear customer”. I either need to completely remove it, or change the text in languages I guess.



Do you have any idea why the first name is not being inserted?



Thanks,



Jac

[/quote]



As the code states


{if $user_data.firstname}{$user_data.firstname}{else}{$user_data.user_type|fn_get_user_type_description|lower}


It means that if the customer's first name and last name are there, then it would be inserted next to “Dear”, else the user type i.e. “Customer” would be inserted in the email.

So, it can be possibility that the user has not updated his complete profile fields so his name is not being fetched into the email.

Thanks NaMo - but this is the e-mail sent to the new customer AFTER their initial registration, its the “new user profile” e-mail, so logistically the e-mail could not be sent until the customer has completed the registration and that would certainly include their name. I have seen other versions of CS Cart that do what its supposed to, and that is insert the name.



This is a clean install of 403, so I can't guess why its not doing what its supposed to…



Jacson

Link of your store?

Maybe I'll try to sign up using my email id

The store is closed, the client does not want it live yet, until its done. I have tested it more then several times, its the same ol e-mail response, inserts Dear Customer instead of the first name. I submitted it to CS help desk to see if its a bug because there is no darn reason why it would not insert the first name. I have done no modifications. I personally would not care but the client really hates the “Dear Customer”…urrgg. I may need to just remove the line altogether, which I can do.



Thanks for following, its probably not a big deal to most, I just hate when things don't work the way they are supposed to for no reason!

CS-Cart should really fix this. In my country it is illegal to send out mails like this.

My Bad, function is normal - the notification sends “Dear customer” when the Allow quick registration is checked in admin, quick registration only asks for user name and e-mail and NOT the first or last name. Normal (not quick) registration asks for billing info and names.



Thanks for the interest in the post though.

is it also possible to send a notification to the shopowner when a new registration is done?



thanks jorde

[quote name='jordenaleman' timestamp='1399286186' post='182936']

is it also possible to send a notification to the shopowner when a new registration is done?



thanks jorde

[/quote]



Sure, it is default CS-Cart functionality. Please check the value of the Users department e-mail in the admin panel.