How to add login form to home page in Magento

I found a interesting question on Magento forums. There was a request to add a login page to a home page. I guess somebody wants to show a products only to a registered customers. Here is a quick guide how to do it.

5 comments

This should go in the “Layout Update XML” field of the design tab of the cms page used for the home page not in an xml file. Additionally you did not provide a method to have the block removed after login. So pretty much useless. Nice click bate though.

Your email address will not be published. Required fields are marked *

Comment

You may use these HTML tags and attributes: <a href="" title=""> <blockquote cite=""> <code> <del datetime=""> <em> <s> <strike> <strong>. You may use following syntax for source code: <pre><code>$current = "Inchoo";</code></pre>.