Let’s initiate a discussion!!
While doing programming in Magento 1.9 version, you might deal with the problem that you won’t able to send customer’s passwords to them inside the mail.
Yes, that’s a needed functionality for many clients. But, it’s not smooth go in Magento 1.9 version.
You need to adopt below technical solution.
To send password in an email, you need to,
Open the core file or extend as you like AccountController.php,
Find the function createPostAction() or find
1 |
$customer->cleanPasswordsValidationData(); |
and make a comment before starting of that line as shown in below.
1 |
//$customer->cleanPasswordsValidationData(); |
you can make the same change on other places as on line 809, 954
After doing this activity, I’m pretty sure it will able to send the password inside the mail.
Well, there is another method which can be adopted here.
All you need to do it, just open or extend the custom model file
magento\app\code\core\Mage\Customer\Model\Customer.php
find the function
1 2 3 4 5 6 7 8 |
public function cleanPasswordsValidationData() { $this->setData(‘password’, null); $this->setData(‘password_confirmation’, null); return $this; } |
Then, make it comment by adding
// $this->setData(‘password’, null);
1 2 3 4 5 6 7 |
public function cleanPasswordsValidationData() { // $this->setData(‘password’, null); $this->setData(‘password_confirmation’, null); return $this; } |
Well, after the above step, you are done. Hope your problem will get resolved. If not, let us know via comment, we’ll guide you further.
[crayon-641efb959edc7135775540/] Using above fucntion Images can be imported directly from...
Override view block using di.xml and add the below code...
You can check a list of called layout XML for...
Follow the below steps to install and set up PWA...
If you want to remove all leading zero's from order,...
Let our Magento expert connect to discuss your requirement.
We offer Magento
certified developers.
Our Magento clientele
is 500+.
We sign NDA for the
security of your projects.
We’ve performed 100+
Magento migration projects.
Free quotation
on your project.
Three months warranty on
code developed by us.