You made it all the way down here so you must have enjoyed this post! You may also like:

How To Connect Google Analytics 4 To Magento 2 Bojan Mareljic
Bojan Mareljic, | 36

How To Connect Google Analytics 4 To Magento 2

Create Magento Dropdown Login in a few minutes Petar Sambolek
Petar Sambolek, | 17

Create Magento Dropdown Login in a few minutes

Featured products on Magento frontpage Tomislav Bilic
, | 131

Featured products on Magento frontpage

6 comments

  1. How to add customer account login/register into custom controller form.
    1. customer account login if login successfully then want to show custom form fields.
    2. If click register then directly showing register form.

  2. 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.

  3. not working for me here is my code that i can see any help as to were i insert the line thanks 🙂

    CMS Content Wrapper

  4. Nice trick thanks. Though there is one problem with practical implementation. The login/register block keeps showing after the login.

    Logged in users should see some other information instead. Can you advice how to do that?

  5. 1. The quotation marks need to be changed to ” and not the ones shown on the page.
    2. If you show full path of customer.xml and other files, it may be more convenient for beginners.

    Remaining, it worked. Thanks a lot.

Leave a Reply

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

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>.

Tell us about your project

Drop us a line. We'd love to know more about your project.