Magento – Checkout as Guest = “Please make sure your passwords match”

checkoutpassword

I found an error in my e-commerce website when I tried to checkout a product as guest.

When I try to continue the process, I get this message:

enter image description here

I would like to know how I can fix this issue.

Can someone help me?

Best Answer

First you need to copy Customer.php file from app/code/core/Mage/Customer/Model to app/code/local/Mage/Customer/Model path directory and go to line number 843 and find the code.

$confirmation = $this->getPasswordConfirmation();

In this file you need to replace above code by below code

$sessionCustomer = Mage::getSingleton("customer/session");

if($sessionCustomer->isLoggedIn()) 
{
  $confirmation = $this->getPasswordConfirmation();

} else {
   $confirmation = $this->getConfirmation();
}