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

            Can not update quote_id field of “quote_item” table magento 2Magento 2.1 - We can't remove the item. (Shopping Cart doesnt allow us to remove items before becomes empty)Add value for custom quote item attribute using REST apiREST API endpoint v1/carts/cartId/items always returns error messageCorrect way to save entries to databaseHow to remove all associated quote objects of a customer completelyMagento 2 - Save value from custom input field to quote_itemGet quote_item data using quote id and product id filter in Magento 2How to set additional data to quote_item table from controller in Magento 2?What is the purpose of additional_data column in quote_item table in magento2Set Custom Price to Quote item magento2 from controller

            Magento 2 disable Secret Key on URL's from terminal The Next CEO of Stack OverflowMagento 2 Shortcut/GUI tool to perform commandline tasks for windowsIn menu add configuration linkMagento oAuth : Generating access token and access secretMagento 2 security key issue in Third-Party API redirect URIPublic actions in admin controllersHow to Disable Cache in Custom WidgetURL Key not changing in Magento 2Product URL Key gets deleted when importing custom options - Magento 2Problem with reindex terminalMagento 2 - bin/magento Commands not working in Cpanel Terminal

            Aasi (pallopeli) Navigointivalikko