Magento2 include controller to existing signup customer buttonHow to Overwrite magento2 ControllerHow can i add existing customer in BCC or CC while sending new customer account creation welcome email in magento2?Relationship between file in controller and buttonMagento 2 add new Button in admin ControllerI want to add discount to existing quote using controller file Magento 2Duplicate button error on Admin->Create Order Page using existing customerHow to add cms page preview button with functionality in magento2Include Gst in magento2custom api to create customer in Magento2Magento 2 product page include custom phtml file before reviews section

Could Sinn Fein swing any Brexit vote in Parliament?

What are substitutions for coconut in curry?

Help rendering a complicated sum/product formula

Asserting that Atheism and Theism are both faith based positions

Is it true that good novels will automatically sell themselves on Amazon (and so on) and there is no need for one to waste time promoting?

Print last inputted byte

Does .bashrc contain syntax errors?

Do I need to be arrogant to get ahead?

How to generate binary array whose elements with values 1 are randomly drawn

What does "^L" mean in C?

Light propagating through a sound wave

In what cases must I use 了 and in what cases not?

PTIJ What is the inyan of the Konami code in Uncle Moishy's song?

두음법칙 - When did North and South diverge in pronunciation of initial ㄹ?

Fewest number of steps to reach 200 using special calculator

Brake pads destroying wheels

How difficult is it to simply disable/disengage the MCAS on Boeing 737 Max 8 & 9 Aircraft?

Do I need to consider instance restrictions when showing a language is in P?

Should I be concerned about student access to a test bank?

What can I do if I am asked to learn different programming languages very frequently?

I got the following comment from a reputed math journal. What does it mean?

Can a medieval gyroplane be built?

What does Jesus mean regarding "Raca," and "you fool?" - is he contrasting them?

Suggestions on how to spend Shaabath (constructively) alone



Magento2 include controller to existing signup customer button


How to Overwrite magento2 ControllerHow can i add existing customer in BCC or CC while sending new customer account creation welcome email in magento2?Relationship between file in controller and buttonMagento 2 add new Button in admin ControllerI want to add discount to existing quote using controller file Magento 2Duplicate button error on Admin->Create Order Page using existing customerHow to add cms page preview button with functionality in magento2Include Gst in magento2custom api to create customer in Magento2Magento 2 product page include custom phtml file before reviews section













1















Can anyone help me how to include a controller to existing customer create signup button, So that i will add some functionality to this controller.



in magento2



Thanks










share|improve this question






















  • Use event observer to run addition functions when you create a new customer @shivashankarm

    – Prathap Gunasekaran
    12 mins ago











  • Can you please share any code

    – shivashankar m
    10 mins ago











  • given answer try it

    – Prathap Gunasekaran
    18 secs ago















1















Can anyone help me how to include a controller to existing customer create signup button, So that i will add some functionality to this controller.



in magento2



Thanks










share|improve this question






















  • Use event observer to run addition functions when you create a new customer @shivashankarm

    – Prathap Gunasekaran
    12 mins ago











  • Can you please share any code

    – shivashankar m
    10 mins ago











  • given answer try it

    – Prathap Gunasekaran
    18 secs ago













1












1








1








Can anyone help me how to include a controller to existing customer create signup button, So that i will add some functionality to this controller.



in magento2



Thanks










share|improve this question














Can anyone help me how to include a controller to existing customer create signup button, So that i will add some functionality to this controller.



in magento2



Thanks







magento2






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 39 mins ago









shivashankar mshivashankar m

1,312827




1,312827












  • Use event observer to run addition functions when you create a new customer @shivashankarm

    – Prathap Gunasekaran
    12 mins ago











  • Can you please share any code

    – shivashankar m
    10 mins ago











  • given answer try it

    – Prathap Gunasekaran
    18 secs ago

















  • Use event observer to run addition functions when you create a new customer @shivashankarm

    – Prathap Gunasekaran
    12 mins ago











  • Can you please share any code

    – shivashankar m
    10 mins ago











  • given answer try it

    – Prathap Gunasekaran
    18 secs ago
















Use event observer to run addition functions when you create a new customer @shivashankarm

– Prathap Gunasekaran
12 mins ago





Use event observer to run addition functions when you create a new customer @shivashankarm

– Prathap Gunasekaran
12 mins ago













Can you please share any code

– shivashankar m
10 mins ago





Can you please share any code

– shivashankar m
10 mins ago













given answer try it

– Prathap Gunasekaran
18 secs ago





given answer try it

– Prathap Gunasekaran
18 secs ago










1 Answer
1






active

oldest

votes


















0














Try this,



Create a custom module and place this events.xml in the below path




app/code/Vendor/ModuleName/etc/events.xml




add the below code in it



<?xml version="1.0" ?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
<event name="customer_register_success">
<observer instance="VendorModuleNameObserverCustomerRegisterSuccess" name="observer_customer_register_success"/>
</event>
</config>


then create a file which use to trigger at the time of customer registration successful.



Place the below file in the respective path which has been mentioned in events.xml




app/code/Vendor/ModuleName/Observer/Customer/RegisterSuccess.php




then add the below code in it



<?php

namespace VendorModuleNameObserverCustomer;

class RegisterSuccess implements MagentoFrameworkEventObserverInterface

/*public function __construct(

)


*/
public function execute(
MagentoFrameworkEventObserver $observer
)
$writer = new ZendLogWriterStream(BP .
'/var/log/yourlog.log');
$logger = new ZendLogLogger();
$logger->addWriter($writer);
$logger->info('Your observer working'); // Simple Text Log
$customer = $observer->getEvent()->getData('customer');




check log file whether it is correctly triggering or not and you can add functionality which you would like to add after customer successfully registered.



Hope this helps.





share






















    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "479"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f266252%2fmagento2-include-controller-to-existing-signup-customer-button%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Try this,



    Create a custom module and place this events.xml in the below path




    app/code/Vendor/ModuleName/etc/events.xml




    add the below code in it



    <?xml version="1.0" ?>
    <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
    <event name="customer_register_success">
    <observer instance="VendorModuleNameObserverCustomerRegisterSuccess" name="observer_customer_register_success"/>
    </event>
    </config>


    then create a file which use to trigger at the time of customer registration successful.



    Place the below file in the respective path which has been mentioned in events.xml




    app/code/Vendor/ModuleName/Observer/Customer/RegisterSuccess.php




    then add the below code in it



    <?php

    namespace VendorModuleNameObserverCustomer;

    class RegisterSuccess implements MagentoFrameworkEventObserverInterface

    /*public function __construct(

    )


    */
    public function execute(
    MagentoFrameworkEventObserver $observer
    )
    $writer = new ZendLogWriterStream(BP .
    '/var/log/yourlog.log');
    $logger = new ZendLogLogger();
    $logger->addWriter($writer);
    $logger->info('Your observer working'); // Simple Text Log
    $customer = $observer->getEvent()->getData('customer');




    check log file whether it is correctly triggering or not and you can add functionality which you would like to add after customer successfully registered.



    Hope this helps.





    share



























      0














      Try this,



      Create a custom module and place this events.xml in the below path




      app/code/Vendor/ModuleName/etc/events.xml




      add the below code in it



      <?xml version="1.0" ?>
      <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
      <event name="customer_register_success">
      <observer instance="VendorModuleNameObserverCustomerRegisterSuccess" name="observer_customer_register_success"/>
      </event>
      </config>


      then create a file which use to trigger at the time of customer registration successful.



      Place the below file in the respective path which has been mentioned in events.xml




      app/code/Vendor/ModuleName/Observer/Customer/RegisterSuccess.php




      then add the below code in it



      <?php

      namespace VendorModuleNameObserverCustomer;

      class RegisterSuccess implements MagentoFrameworkEventObserverInterface

      /*public function __construct(

      )


      */
      public function execute(
      MagentoFrameworkEventObserver $observer
      )
      $writer = new ZendLogWriterStream(BP .
      '/var/log/yourlog.log');
      $logger = new ZendLogLogger();
      $logger->addWriter($writer);
      $logger->info('Your observer working'); // Simple Text Log
      $customer = $observer->getEvent()->getData('customer');




      check log file whether it is correctly triggering or not and you can add functionality which you would like to add after customer successfully registered.



      Hope this helps.





      share

























        0












        0








        0







        Try this,



        Create a custom module and place this events.xml in the below path




        app/code/Vendor/ModuleName/etc/events.xml




        add the below code in it



        <?xml version="1.0" ?>
        <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
        <event name="customer_register_success">
        <observer instance="VendorModuleNameObserverCustomerRegisterSuccess" name="observer_customer_register_success"/>
        </event>
        </config>


        then create a file which use to trigger at the time of customer registration successful.



        Place the below file in the respective path which has been mentioned in events.xml




        app/code/Vendor/ModuleName/Observer/Customer/RegisterSuccess.php




        then add the below code in it



        <?php

        namespace VendorModuleNameObserverCustomer;

        class RegisterSuccess implements MagentoFrameworkEventObserverInterface

        /*public function __construct(

        )


        */
        public function execute(
        MagentoFrameworkEventObserver $observer
        )
        $writer = new ZendLogWriterStream(BP .
        '/var/log/yourlog.log');
        $logger = new ZendLogLogger();
        $logger->addWriter($writer);
        $logger->info('Your observer working'); // Simple Text Log
        $customer = $observer->getEvent()->getData('customer');




        check log file whether it is correctly triggering or not and you can add functionality which you would like to add after customer successfully registered.



        Hope this helps.





        share













        Try this,



        Create a custom module and place this events.xml in the below path




        app/code/Vendor/ModuleName/etc/events.xml




        add the below code in it



        <?xml version="1.0" ?>
        <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
        <event name="customer_register_success">
        <observer instance="VendorModuleNameObserverCustomerRegisterSuccess" name="observer_customer_register_success"/>
        </event>
        </config>


        then create a file which use to trigger at the time of customer registration successful.



        Place the below file in the respective path which has been mentioned in events.xml




        app/code/Vendor/ModuleName/Observer/Customer/RegisterSuccess.php




        then add the below code in it



        <?php

        namespace VendorModuleNameObserverCustomer;

        class RegisterSuccess implements MagentoFrameworkEventObserverInterface

        /*public function __construct(

        )


        */
        public function execute(
        MagentoFrameworkEventObserver $observer
        )
        $writer = new ZendLogWriterStream(BP .
        '/var/log/yourlog.log');
        $logger = new ZendLogLogger();
        $logger->addWriter($writer);
        $logger->info('Your observer working'); // Simple Text Log
        $customer = $observer->getEvent()->getData('customer');




        check log file whether it is correctly triggering or not and you can add functionality which you would like to add after customer successfully registered.



        Hope this helps.






        share











        share


        share










        answered 3 mins ago









        Prathap GunasekaranPrathap Gunasekaran

        1,337417




        1,337417



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Magento Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f266252%2fmagento2-include-controller-to-existing-signup-customer-button%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Disable / Remove link to Product Items in Cart Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?How can I limit products that can be bought / added to cart?Remove item from cartHide “Add to Cart” button if specific products are already in cart“Prettifying” the custom options in cart pageCreate link in cart sidebar to view all added items After limit reachedLink products together in checkout/cartHow to Get product from cart and add it againHide action-edit on cart page if simple productRemoving Cart items - ObserverRemove wishlist items when added to cart

            Helsingin valtaus Sisällysluettelo Taustaa | Yleistä sotatoimista | Osapuolet | Taistelut Helsingin ympäristössä | Punaisten antautumissuunnitelma | Taistelujen kulku Helsingissä | Valtauksen jälkeen | Tappiot | Muistaminen | Kirjallisuutta | Lähteet | Aiheesta muualla | NavigointivalikkoTeoksen verkkoversioTeoksen verkkoversioGoogle BooksSisällissota Helsingissä päättyi tasan 95 vuotta sittenSaksalaisten ylivoima jyräsi punaisen HelsinginSuomalaiset kuvaavat sotien jälkiä kaupungeissa – katso kuvat ja tarinat tutuilta kulmiltaHelsingin valtaus 90 vuotta sittenSaksalaiset valtasivat HelsinginHyökkäys HelsinkiinHelsingin valtaus 12.–13.4. 1918Saksalaiset käyttivät ihmiskilpiä Helsingin valtauksessa 1918Teoksen verkkoversioTeoksen verkkoversioSaksalaiset hyökkäävät Etelä-SuomeenTaistelut LeppävaarassaSotilaat ja taistelutLeppävaara 1918 huhtikuussa. KapinatarinaHelsingin taistelut 1918Saksalaisten voitonparaati HelsingissäHelsingin valtausta juhlittiinSaksalaisten Helsinki vuonna 1918Helsingin taistelussa kaatuneet valkokaartilaisetHelsinkiin haudatut taisteluissa kaatuneet punaiset12.4.1918 Helsingin valtauksessa saksalaiset apujoukot vapauttavat kaupunginVapaussodan muistomerkkejä Helsingissä ja pääkaupunkiseudullaCrescendo / Vuoden 1918 Kansalaissodan uhrien muistomerkkim

            Adjektiivitarina Tarinan tekeminen | Esimerkki: ennen | Esimerkki: jälkeen | Navigointivalikko