cancel
Showing results for 
Search instead for 
Did you mean: 

Error Message On Register page

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

Error Message On Register page

Hi,

 

I would like show error message on my register page. But i don't found the solution.

In core we have : 

 

 if (!$response->getError()) {
            # Trying to load customer with the same email and return error message
            # if customer with the same email address exisits
            $checkCustomer = Mage::getModel('customer/customer')
                ->setWebsiteId($websiteId);
            $checkCustomer->loadByEmail($accountData['email']);
            if ($checkCustomer->getId() && ($checkCustomer->getId() != $customer->getId())) {
                $response->setError(1);
                $this->_getSession()->addError(
                    Mage::helper('adminhtml')->__('Customer with the same email already exists.')
                );
            }
        }

In CustomerController.php.

 

Now i would like show this errorMessage on my register.phtml.

 

I try some solutions like : 

<?php echo $this->getMessagesBlock()->toHtml() ?>

But i have 0 error message.

 

Someone can help me?

 

(Sorry for my english)

 

Thank you

3 REPLIES 3

Re: Error Message On Register page

@julien_rouzot1 
try the link
https://magento.stackexchange.com/questions/82629/not-showing-error-message
if it help you accept this as solution and give kudos.

Re: Error Message On Register page

Hi,

 

Thank for youy answer but is not good.

I place my code before the form.

Re: Error Message On Register page

@julien_rouzot1
you override the module?