Jump to content

Send "reset password" link together with Order Confirmation email


tobbecokta

Recommended Posts

Hi,

 

When a customer places a order in my shop i automatically create an account for him with a random generated passworld.I would like to send the "reset password" link together with the order confirmation email that the customer gets when placing a order.

 

From /controller/PasswordControll.php i have copied:

 

'{url}' => $this->context->link->getPageLink('password', true, null, 'token='.$customer->secure_key.'&id_customer='.(int)$customer->id),

 
To /controller/PaymentModule.php.
 
But when the order confirmation is sent to the customer the link does not contain token, security key or customer ID.
 
Can anybody help me with how to accomplish this?
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...