Web Analytics

Fill the form & Get Installation Support

How to rewrite customer controller in Magento 2?

We can do it by using preference if we need to add or edit some information in createPost controller.

To do that we will need a module : Magemonkeys_General

We have need two files.

Create di.xml file in this folder app/code/Magemonkeys/General/etc/

Create CreatePost.php in this folder app/code/Magemonkeys/General/Controller/Magento/Customer/Account/

we will also need to add private function in this file as we used execute method.

That’s it.

Fill the below form if you have any Magento programming need.





    Recent Articles

    Author Info

    Author Image

    Magento 2 Developer

    Hire P. Garchar

    Get a Free Quote





      /* second popup */

      Connect With Us