Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6874107
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:09:13+00:00 2026-05-27T04:09:13+00:00

I have the login form and register form, integrated in the same page. ie,

  • 0

I have the login form and register form, integrated in the same page. ie, in the login page itself.

I am having a problem in showing the error messages, as if error occurs in any one of the forms, then the error messages are displayed in both the login and register sections.

for example, suppose if we provide wrong login data to login, then the error message is displayed on the top of both the login and register forms, since both the forms are in the same page.

If we try to register with an already existing email address, then also, error message saying email already exists, displayed on the top of login form and register form.

My requirement is that i need to display the error message only in the corresponding form.

In order to integrate both login and register form in to the login page itself, i changed the file \app\design\frontend\anz\default\layout\customer.xml and it is as follows

Layout for customer login page

<customer_account_login translate="label">
    <label>Customer Account Login Form</label>
    <!-- Mage_Customer -->
    <remove name="right"/>
    <remove name="left"/>

    <reference name="root">
        <action method="setTemplate"><template>page/1column.phtml</template></action>
    </reference>
    <reference name="content">
        <block type="customer/form_login" name="customer_form_login" template="customer/form/login.phtml"/>
    </reference>


    <!-- Mage_Customer -->
    <remove name="right"/>
    <remove name="left"/>
    <reference name="root">
        <action method="setTemplate"><template>page/1column.phtml</template></action>
    </reference>
    <block type="page/html_wrapper" name="customer.form.register.fields.before" translate="label">
        <label>Form Fields Before</label>
        <!--action method="setMayBeInvisible"><value>1</value></action-->
        <action method="setElementClass"><value>rewards</value></action>
    </block>
    <block type="enterprise_customer/form" template="customer/form/userattributes.phtml" name="customer_form_user_attributes">
        <action method="setFormCode"><code>customer_account_create</code></action>
        <action method="setEntityModelClass"><code>customer/customer</code></action>
    </block>
    <block type="enterprise_customer/form" template="customer/form/userattributes.phtml" name="customer_form_address_user_attributes">
        <action method="setFormCode"><code>customer_register_address</code></action>
        <action method="setEntityModelClass"><code>customer/address</code></action>
    </block>
    <reference name="content">
        <block type="customer/form_register" name="customer_form_register" template="customer/form/register.phtml">
            <action method="append"><block>customer.form.register.fields.before</block><alias>form_fields_before</alias></action>
            <action method="append"><block>customer_form_user_attributes</block></action>
            <action method="append"><block>customer_form_address_user_attributes</block></action>
        </block>
    </reference>
    <update handle="customer_form_template_handle"/>



</customer_account_login>

I am a newbie in magento. Any help would be greatly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T04:09:13+00:00Added an answer on May 27, 2026 at 4:09 am

    I tried a simple way to achieve the requirement. There may be better ways to do this, but I think this one is simple.

    I had created a hidden variable and I put those hidden variable in forms to identify which form is submitted. These hidden variable is passed as a parameter after completing the corresponding action. Then I provided an if block to display the messages according to the parameter value.

    I did this all by overriding the Mage Customer module.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have Login form,forget password form and register form in a single page.. What
The problem I have a login form available on every page (in the right
I have two links with classes (login-form and register-form) relevant to their target forms
I have a login form, which needs to be re-directed to the main page
I have a page with login form (on click, login form slides dowm) and
I am having trouble getting the Auth component redirect. I have a login form
I am using MVC3 and I want to have LogIn form and Register form
I have a login form and a link with 'Register' title beneath the form.
I have two forms: (login form, register form) and they submitted to my component.
I have a page, index.html, that contains both a login and registration form. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.