3
votes

My situation: I have 3 websites that named: websiteA websiteB websiteC all in one Magento installation. Customer data is shared in a global view. When a customer (registered on websiteA) requests a password reset on websiteB, they will receive a password reset email that directs them to websiteA to reset the password. I don't want that. I want the customer to receive a password reset email that directs them to websiteB.

Code I found in password reset email:

<a href="{{store url="customer/account/resetpassword/" _query_id=$customer.id _query_token=$customer.rp_token}}">{{store url="customer/account/resetpassword/" _query_id=$customer.id _query_token=$customer.rp_token}}</a>

How can I modify this code to not use {{store url=}}, but still catch customer id and token information?

1
You could try creating a separate Transactional Email template for each website, then assigning that email template to each store configuration for the Forgot Email Template in System > Configuration > Customer Configuration > Password Options. I'm not sure if that will work though. It seems odd Magento would even send an email if the customer isn't a member of the specific website they send it from. - Axel
I already tried that, but the password reset link will still be the one that customer registered originally. - James H.
Not if you insert the store url manually into each email template. - Axel
Thx Axel, I tried to insert store url instead of {{store url=}}, but I can't find a way to insert "_query_id=$customer.id _query_token=$customer.rp_token" part. - James H.
Try something like: http://yoursite.com/customer/account/resetpassword/?id={{var customer.id}}&token={{var customer.rp_token}} - Axel

1 Answers

3
votes

An answer provided by Axel above proposed correct solution: Use {{var customer.id}} and {{var customer.rp_token}} to print values in your email