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
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
add a comment |
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
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
add a comment |
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
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
magento2
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
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.
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
add a comment |
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.
add a comment |
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.
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.
answered 3 mins ago
Prathap GunasekaranPrathap Gunasekaran
1,337417
1,337417
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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