Post by Webtelligo » Mon Sep 30, 2013 10:51 pm

Hello,

I have a webshop where only the store-owner is allowed to create customers. When the store-owner creates a customer in the administration page of the webshop, the customer receives a welcome email. But this email doesn't show the password which the customer can login with. I want to show the password that the store-owner has entered when he created the customer. Can someone help me with this? :)

I have Opencart v1.5.6

Newbie

Posts

Joined
Mon Sep 30, 2013 4:22 pm

Post by butte » Mon Sep 30, 2013 11:56 pm

The default probably still sends confirmation with a link back to log-in but without giving away the password, and setting them up yourself ties into that. If there aren't terribly many of them, then you could follow up with a note giving that. You would essentially need to draw the password into the message. One (unacceptable but simple) way to do that would be to amend the language file for that (to the RIGHT side of the "=" separator) between the quotation marks and retaining the line-ending semicolon, in order to show a default generic password that customers could change upon logging in with it. Spammers would not receive that, because you would have entered customers by hand.

Among the language files you'll see one (maybe more) that spell out what the messages say. That is what can be amended to insert a generic password. Code to draw in the actual passwords would be preferable but not as quick. You at least know (or should know) that spammers won't receive them, and that e-mail addresses are correct, when you have manually registered and approved your customers.

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am

Post by Webtelligo » Wed Oct 02, 2013 5:14 pm

butte wrote:The default probably still sends confirmation with a link back to log-in but without giving away the password, and setting them up yourself ties into that. If there aren't terribly many of them, then you could follow up with a note giving that. You would essentially need to draw the password into the message. One (unacceptable but simple) way to do that would be to amend the language file for that (to the RIGHT side of the "=" separator) between the quotation marks and retaining the line-ending semicolon, in order to show a default generic password that customers could change upon logging in with it. Spammers would not receive that, because you would have entered customers by hand.

Among the language files you'll see one (maybe more) that spell out what the messages say. That is what can be amended to insert a generic password. Code to draw in the actual passwords would be preferable but not as quick. You at least know (or should know) that spammers won't receive them, and that e-mail addresses are correct, when you have manually registered and approved your customers.
Thank you, that would indeed be a solution. But everyone would have the same password. This isn't useful if customers don't change the password. The best solution would be to show the actual passwords in the message.

I did find the file where I think it can be coded in, this is theme/model/account/customer.php
But I don't know where to start on how to do it. :(

Newbie

Posts

Joined
Mon Sep 30, 2013 4:22 pm

Post by butte » Wed Oct 02, 2013 10:51 pm

Customers who share an assigned password that they are too "whatever" to change but who do not know the others' names or e-mail addresses are in the same boat as admins who have completely different carts and domains and passwords and do not know each other but log in as "admin" because they never thought to change that. Customers' names or e-mail addresses with shared password, and admins' passwords with shared name (default "admin"), are equally secure -- not the best way, but it works if need be.

There will be a set of commonly named .php and .tpl files. You found one. They will be in model/, controller/, and language/, and in template/. Back up any file(s) you try to fiddle with. There will be hints among the similar array of files for forgotten passwords of how to set it up.

Best bet is probably to punch Extensions top right and see what is available for sending passwords. Else, if few enough, just send the passwords yourself.

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am

Post by MarketInSG » Thu Oct 03, 2013 8:09 pm

Your customers can actually reset their passwords with the forgotten link. Else you might want to consider this: http://www.marketinsg.com/pretty-html-email


User avatar
Guru Member

Posts

Joined
Wed Nov 16, 2011 11:53 am
Location - Singapore
Who is online

Users browsing this forum: Majestic-12 [Bot] and 10 guests