magento : how to redirect custom page after registration and then home pageHow to override the controller AccountControllerMagento Place Order on Checkout redirects back to carterror on review list pagecatalog_product_load_before event gives getRequestedRouteName() errorCustom redirect registration page, when error occursproduct quickview not working with infinite scrollSimple Observer not firing on eventMagento: How to call phtml file after registration and redirect to the dashboard pageThere has been an error processing your request error while going to the pageMigration error. The installation of the old version is startedMagento 1.9.1 I have added popup after clicking on addtocart button but the page is reloading before closing the popup

They call me Inspector Morse

Rejected in 4th interview round citing insufficient years of experience

Should QA ask requirements to developers?

Am I not good enough for you?

How do I express some one as a black person?

Are babies of evil humanoid species inherently evil?

Do Bugbears' arms literally get longer when it's their turn?

What wound would be of little consequence to a biped but terrible for a quadruped?

Are the terms "stab" and "staccato" synonyms?

Single word request: Harming the benefactor

Time travel short story where dinosaur doesn't taste like chicken

In the late 1940’s to early 1950’s what technology was available that could melt a LOT of ice?

Finding algorithms of QGIS commands?

Aliens englobed the Solar System: will we notice?

What are the best books to study Neural Networks from a purely mathematical perspective?

BitNot does not flip bits in the way I expected

Can't find the Shader/UVs tab

Subset counting for even numbers

Should I tell my boss the work he did was worthless

How do anti-virus programs start at Windows boot?

Unreachable code, but reachable with exception

Space in array system equations

Why the color red for the Republican Party

How do I locate a classical quotation?



magento : how to redirect custom page after registration and then home page


How to override the controller AccountControllerMagento Place Order on Checkout redirects back to carterror on review list pagecatalog_product_load_before event gives getRequestedRouteName() errorCustom redirect registration page, when error occursproduct quickview not working with infinite scrollSimple Observer not firing on eventMagento: How to call phtml file after registration and redirect to the dashboard pageThere has been an error processing your request error while going to the pageMigration error. The installation of the old version is startedMagento 1.9.1 I have added popup after clicking on addtocart button but the page is reloading before closing the popup













1















How to redirect custom page after registration in magento 1.9.2.4.In my custom page having form if i submit that form ,then it will go to home page



I have verify.phtml



 <?php 

$isuserVerified = Mage::helper('test/Data')->isUserVerified(Mage::getSingleton('customer/session')->getId());
if($isuserVerified == 'false'): ?>
<div class="verify_mobile">
<?php /*?><div class="notverify_yet">
<?php echo $this->__('*Please verify your mobile with OTP code.'); ?>






<label class="verify">
<?php echo $this->__("Please Enter verification codes"); ?>
</label>
<input type="text" id="code" name="code" placeholder="Enter verification code" class="verify" />
<input type="button" id="verify_mobile" value="Verify Mobile" class="button verify" />
<?php if(Mage::helper('test/Data')->canResendOTP())
?>
<a href="#" id="resend_mobile_code" class="verify resendcode">Resend Code</a>
<?php ?>






 <script type="text/javascript">
jQuery(document).ready(function(e)

jQuery('#verify_mobile').click(function(e)
var code = jQuery("#code").val();
if(code !== "")
jQuery.ajax(
method:"POST",
url:'<?php echo Mage::getBaseUrl().'test/index/checkMobileVerificationCode' ?>',
data:code:code,
success: function(data)

if(data !== "false")
jQuery(".verify_mobile").css('display','none');
showMessage('Thanks for Verification', "success");

else

showMessage('Please Enter Valid Code!', "error");

,
error: function()
alert('Error occured');

);

);

jQuery('#resend_mobile_code').click(function(e)
var code = jQuery("#code").val();

jQuery.ajax(
method:"POST",
url:'<?php echo Mage::getBaseUrl().'test/index/resendMobileCode' ?>',
success: function(data)

showMessage(data, "success");
,
error: function()
showMessage('Something went wrong', "error");

);
);

function showMessage(txt, type)
var html = '<ul class="messages"><li class="'+type+'-msg"><ul><li><span>' + txt + '</span></li></ul></li></ul>';
jQuery('ul.messages').remove();
jQuery('.page-title').after(html);



);





I want to call this page(verify otp) after successful registration and after successful verification otp it will go to home page.



I tried with create custom module observer



 <?php
class Tst_Custommodule_Model_Observer
public function myredirection(Varien_Event_Observer $observer)
//echo "fsdffds";exit;
$AccountController = $observer->getEvent()->getAccountController();

$Customer = $observer->getEvent()->getCustomer();

$response1 = Mage::app()->getResponse(); // observers have event args

$url = 'numberverify';
$response1->setRedirect($url);
Mage::app()->getFrontController()->sendResponse();

return;




but it gets error cannot save customer










share|improve this question
















bumped to the homepage by Community 9 hours ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • Do You have a seperate form or you are talking about the customer registration form provided by magento? Please share your problem in more detail with code snippet if possible. This will help you get answers faster.

    – aton1004
    Nov 10 '17 at 8:29











  • Iam having verifiacation code form

    – Nadh
    Nov 10 '17 at 8:31











  • So you have a custom form and on form submission you want to redirect it to home page? Is that what you want?

    – aton1004
    Nov 10 '17 at 8:32











  • yes for submission of registration it will go to my custom form and then it will go to homepage

    – Nadh
    Nov 10 '17 at 8:37











  • Could you please update your question with screenshots on what is happening right now and what you want to achieve? Your comments are not helping at all, sorry :(

    – aton1004
    Nov 10 '17 at 8:40















1















How to redirect custom page after registration in magento 1.9.2.4.In my custom page having form if i submit that form ,then it will go to home page



I have verify.phtml



 <?php 

$isuserVerified = Mage::helper('test/Data')->isUserVerified(Mage::getSingleton('customer/session')->getId());
if($isuserVerified == 'false'): ?>
<div class="verify_mobile">
<?php /*?><div class="notverify_yet">
<?php echo $this->__('*Please verify your mobile with OTP code.'); ?>






<label class="verify">
<?php echo $this->__("Please Enter verification codes"); ?>
</label>
<input type="text" id="code" name="code" placeholder="Enter verification code" class="verify" />
<input type="button" id="verify_mobile" value="Verify Mobile" class="button verify" />
<?php if(Mage::helper('test/Data')->canResendOTP())
?>
<a href="#" id="resend_mobile_code" class="verify resendcode">Resend Code</a>
<?php ?>






 <script type="text/javascript">
jQuery(document).ready(function(e)

jQuery('#verify_mobile').click(function(e)
var code = jQuery("#code").val();
if(code !== "")
jQuery.ajax(
method:"POST",
url:'<?php echo Mage::getBaseUrl().'test/index/checkMobileVerificationCode' ?>',
data:code:code,
success: function(data)

if(data !== "false")
jQuery(".verify_mobile").css('display','none');
showMessage('Thanks for Verification', "success");

else

showMessage('Please Enter Valid Code!', "error");

,
error: function()
alert('Error occured');

);

);

jQuery('#resend_mobile_code').click(function(e)
var code = jQuery("#code").val();

jQuery.ajax(
method:"POST",
url:'<?php echo Mage::getBaseUrl().'test/index/resendMobileCode' ?>',
success: function(data)

showMessage(data, "success");
,
error: function()
showMessage('Something went wrong', "error");

);
);

function showMessage(txt, type)
var html = '<ul class="messages"><li class="'+type+'-msg"><ul><li><span>' + txt + '</span></li></ul></li></ul>';
jQuery('ul.messages').remove();
jQuery('.page-title').after(html);



);





I want to call this page(verify otp) after successful registration and after successful verification otp it will go to home page.



I tried with create custom module observer



 <?php
class Tst_Custommodule_Model_Observer
public function myredirection(Varien_Event_Observer $observer)
//echo "fsdffds";exit;
$AccountController = $observer->getEvent()->getAccountController();

$Customer = $observer->getEvent()->getCustomer();

$response1 = Mage::app()->getResponse(); // observers have event args

$url = 'numberverify';
$response1->setRedirect($url);
Mage::app()->getFrontController()->sendResponse();

return;




but it gets error cannot save customer










share|improve this question
















bumped to the homepage by Community 9 hours ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • Do You have a seperate form or you are talking about the customer registration form provided by magento? Please share your problem in more detail with code snippet if possible. This will help you get answers faster.

    – aton1004
    Nov 10 '17 at 8:29











  • Iam having verifiacation code form

    – Nadh
    Nov 10 '17 at 8:31











  • So you have a custom form and on form submission you want to redirect it to home page? Is that what you want?

    – aton1004
    Nov 10 '17 at 8:32











  • yes for submission of registration it will go to my custom form and then it will go to homepage

    – Nadh
    Nov 10 '17 at 8:37











  • Could you please update your question with screenshots on what is happening right now and what you want to achieve? Your comments are not helping at all, sorry :(

    – aton1004
    Nov 10 '17 at 8:40













1












1








1








How to redirect custom page after registration in magento 1.9.2.4.In my custom page having form if i submit that form ,then it will go to home page



I have verify.phtml



 <?php 

$isuserVerified = Mage::helper('test/Data')->isUserVerified(Mage::getSingleton('customer/session')->getId());
if($isuserVerified == 'false'): ?>
<div class="verify_mobile">
<?php /*?><div class="notverify_yet">
<?php echo $this->__('*Please verify your mobile with OTP code.'); ?>






<label class="verify">
<?php echo $this->__("Please Enter verification codes"); ?>
</label>
<input type="text" id="code" name="code" placeholder="Enter verification code" class="verify" />
<input type="button" id="verify_mobile" value="Verify Mobile" class="button verify" />
<?php if(Mage::helper('test/Data')->canResendOTP())
?>
<a href="#" id="resend_mobile_code" class="verify resendcode">Resend Code</a>
<?php ?>






 <script type="text/javascript">
jQuery(document).ready(function(e)

jQuery('#verify_mobile').click(function(e)
var code = jQuery("#code").val();
if(code !== "")
jQuery.ajax(
method:"POST",
url:'<?php echo Mage::getBaseUrl().'test/index/checkMobileVerificationCode' ?>',
data:code:code,
success: function(data)

if(data !== "false")
jQuery(".verify_mobile").css('display','none');
showMessage('Thanks for Verification', "success");

else

showMessage('Please Enter Valid Code!', "error");

,
error: function()
alert('Error occured');

);

);

jQuery('#resend_mobile_code').click(function(e)
var code = jQuery("#code").val();

jQuery.ajax(
method:"POST",
url:'<?php echo Mage::getBaseUrl().'test/index/resendMobileCode' ?>',
success: function(data)

showMessage(data, "success");
,
error: function()
showMessage('Something went wrong', "error");

);
);

function showMessage(txt, type)
var html = '<ul class="messages"><li class="'+type+'-msg"><ul><li><span>' + txt + '</span></li></ul></li></ul>';
jQuery('ul.messages').remove();
jQuery('.page-title').after(html);



);





I want to call this page(verify otp) after successful registration and after successful verification otp it will go to home page.



I tried with create custom module observer



 <?php
class Tst_Custommodule_Model_Observer
public function myredirection(Varien_Event_Observer $observer)
//echo "fsdffds";exit;
$AccountController = $observer->getEvent()->getAccountController();

$Customer = $observer->getEvent()->getCustomer();

$response1 = Mage::app()->getResponse(); // observers have event args

$url = 'numberverify';
$response1->setRedirect($url);
Mage::app()->getFrontController()->sendResponse();

return;




but it gets error cannot save customer










share|improve this question
















How to redirect custom page after registration in magento 1.9.2.4.In my custom page having form if i submit that form ,then it will go to home page



I have verify.phtml



 <?php 

$isuserVerified = Mage::helper('test/Data')->isUserVerified(Mage::getSingleton('customer/session')->getId());
if($isuserVerified == 'false'): ?>
<div class="verify_mobile">
<?php /*?><div class="notverify_yet">
<?php echo $this->__('*Please verify your mobile with OTP code.'); ?>






<label class="verify">
<?php echo $this->__("Please Enter verification codes"); ?>
</label>
<input type="text" id="code" name="code" placeholder="Enter verification code" class="verify" />
<input type="button" id="verify_mobile" value="Verify Mobile" class="button verify" />
<?php if(Mage::helper('test/Data')->canResendOTP())
?>
<a href="#" id="resend_mobile_code" class="verify resendcode">Resend Code</a>
<?php ?>






 <script type="text/javascript">
jQuery(document).ready(function(e)

jQuery('#verify_mobile').click(function(e)
var code = jQuery("#code").val();
if(code !== "")
jQuery.ajax(
method:"POST",
url:'<?php echo Mage::getBaseUrl().'test/index/checkMobileVerificationCode' ?>',
data:code:code,
success: function(data)

if(data !== "false")
jQuery(".verify_mobile").css('display','none');
showMessage('Thanks for Verification', "success");

else

showMessage('Please Enter Valid Code!', "error");

,
error: function()
alert('Error occured');

);

);

jQuery('#resend_mobile_code').click(function(e)
var code = jQuery("#code").val();

jQuery.ajax(
method:"POST",
url:'<?php echo Mage::getBaseUrl().'test/index/resendMobileCode' ?>',
success: function(data)

showMessage(data, "success");
,
error: function()
showMessage('Something went wrong', "error");

);
);

function showMessage(txt, type)
var html = '<ul class="messages"><li class="'+type+'-msg"><ul><li><span>' + txt + '</span></li></ul></li></ul>';
jQuery('ul.messages').remove();
jQuery('.page-title').after(html);



);





I want to call this page(verify otp) after successful registration and after successful verification otp it will go to home page.



I tried with create custom module observer



 <?php
class Tst_Custommodule_Model_Observer
public function myredirection(Varien_Event_Observer $observer)
//echo "fsdffds";exit;
$AccountController = $observer->getEvent()->getAccountController();

$Customer = $observer->getEvent()->getCustomer();

$response1 = Mage::app()->getResponse(); // observers have event args

$url = 'numberverify';
$response1->setRedirect($url);
Mage::app()->getFrontController()->sendResponse();

return;




but it gets error cannot save customer







magento-1.9






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 10 '17 at 9:01







Nadh

















asked Nov 10 '17 at 7:18









NadhNadh

4481722




4481722





bumped to the homepage by Community 9 hours ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 9 hours ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.














  • Do You have a seperate form or you are talking about the customer registration form provided by magento? Please share your problem in more detail with code snippet if possible. This will help you get answers faster.

    – aton1004
    Nov 10 '17 at 8:29











  • Iam having verifiacation code form

    – Nadh
    Nov 10 '17 at 8:31











  • So you have a custom form and on form submission you want to redirect it to home page? Is that what you want?

    – aton1004
    Nov 10 '17 at 8:32











  • yes for submission of registration it will go to my custom form and then it will go to homepage

    – Nadh
    Nov 10 '17 at 8:37











  • Could you please update your question with screenshots on what is happening right now and what you want to achieve? Your comments are not helping at all, sorry :(

    – aton1004
    Nov 10 '17 at 8:40

















  • Do You have a seperate form or you are talking about the customer registration form provided by magento? Please share your problem in more detail with code snippet if possible. This will help you get answers faster.

    – aton1004
    Nov 10 '17 at 8:29











  • Iam having verifiacation code form

    – Nadh
    Nov 10 '17 at 8:31











  • So you have a custom form and on form submission you want to redirect it to home page? Is that what you want?

    – aton1004
    Nov 10 '17 at 8:32











  • yes for submission of registration it will go to my custom form and then it will go to homepage

    – Nadh
    Nov 10 '17 at 8:37











  • Could you please update your question with screenshots on what is happening right now and what you want to achieve? Your comments are not helping at all, sorry :(

    – aton1004
    Nov 10 '17 at 8:40
















Do You have a seperate form or you are talking about the customer registration form provided by magento? Please share your problem in more detail with code snippet if possible. This will help you get answers faster.

– aton1004
Nov 10 '17 at 8:29





Do You have a seperate form or you are talking about the customer registration form provided by magento? Please share your problem in more detail with code snippet if possible. This will help you get answers faster.

– aton1004
Nov 10 '17 at 8:29













Iam having verifiacation code form

– Nadh
Nov 10 '17 at 8:31





Iam having verifiacation code form

– Nadh
Nov 10 '17 at 8:31













So you have a custom form and on form submission you want to redirect it to home page? Is that what you want?

– aton1004
Nov 10 '17 at 8:32





So you have a custom form and on form submission you want to redirect it to home page? Is that what you want?

– aton1004
Nov 10 '17 at 8:32













yes for submission of registration it will go to my custom form and then it will go to homepage

– Nadh
Nov 10 '17 at 8:37





yes for submission of registration it will go to my custom form and then it will go to homepage

– Nadh
Nov 10 '17 at 8:37













Could you please update your question with screenshots on what is happening right now and what you want to achieve? Your comments are not helping at all, sorry :(

– aton1004
Nov 10 '17 at 8:40





Could you please update your question with screenshots on what is happening right now and what you want to achieve? Your comments are not helping at all, sorry :(

– aton1004
Nov 10 '17 at 8:40










2 Answers
2






active

oldest

votes


















0














You can use following code in your observer which will observe event customer_register_success



 Mage::app()->getResponse()->setRedirect('frontname/controller/action');
Mage::app()->getResponse()->sendResponse();


For redirecting back to home page you can use following in you form's submit controller you can use following code ;



$this->_redirect("/");





share|improve this answer























  • can you give the proper answer

    – Nadh
    Nov 10 '17 at 8:31


















0














If I get you correctly, On customer registration success you want your customer to be redirected to the page with template verify.phtml. When the verification is successful you want them to be redirected to Home page.



For this I think you should follow below steps:



  1. override customer create Action of Account controller, some information could be found here

  2. On the controller action you need to set the redirect to your customer module controller which will load the layout that has a block with your template of verify.phtml

I think point 2 may confuses you. So let me explain a bit more in detail.



First of all you need your own module with a controller. in that controller You will load and render a layout with template. Refer this



Now on the same module you could override the customer controller with create Action. And there after customer is created, you can redirect to your controller
by doing something like




$this->_redirect('module-frontname/controller-name/action-name');




You can search more detail about redirecting to our custom module controller.



On the verify form submission success, which you are doing through ajax, you can redirect easily to your home page.



I hope my answer above provide you some giudelines to move ahead. If it helps you please accept and vote up the answer.



Happy Coding!!






share|improve this answer























  • can you give steps in sample code

    – Nadh
    Nov 10 '17 at 12:20










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%2f200873%2fmagento-how-to-redirect-custom-page-after-registration-and-then-home-page%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














You can use following code in your observer which will observe event customer_register_success



 Mage::app()->getResponse()->setRedirect('frontname/controller/action');
Mage::app()->getResponse()->sendResponse();


For redirecting back to home page you can use following in you form's submit controller you can use following code ;



$this->_redirect("/");





share|improve this answer























  • can you give the proper answer

    – Nadh
    Nov 10 '17 at 8:31















0














You can use following code in your observer which will observe event customer_register_success



 Mage::app()->getResponse()->setRedirect('frontname/controller/action');
Mage::app()->getResponse()->sendResponse();


For redirecting back to home page you can use following in you form's submit controller you can use following code ;



$this->_redirect("/");





share|improve this answer























  • can you give the proper answer

    – Nadh
    Nov 10 '17 at 8:31













0












0








0







You can use following code in your observer which will observe event customer_register_success



 Mage::app()->getResponse()->setRedirect('frontname/controller/action');
Mage::app()->getResponse()->sendResponse();


For redirecting back to home page you can use following in you form's submit controller you can use following code ;



$this->_redirect("/");





share|improve this answer













You can use following code in your observer which will observe event customer_register_success



 Mage::app()->getResponse()->setRedirect('frontname/controller/action');
Mage::app()->getResponse()->sendResponse();


For redirecting back to home page you can use following in you form's submit controller you can use following code ;



$this->_redirect("/");






share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 10 '17 at 7:41









Vivek KumarVivek Kumar

2,4932729




2,4932729












  • can you give the proper answer

    – Nadh
    Nov 10 '17 at 8:31

















  • can you give the proper answer

    – Nadh
    Nov 10 '17 at 8:31
















can you give the proper answer

– Nadh
Nov 10 '17 at 8:31





can you give the proper answer

– Nadh
Nov 10 '17 at 8:31













0














If I get you correctly, On customer registration success you want your customer to be redirected to the page with template verify.phtml. When the verification is successful you want them to be redirected to Home page.



For this I think you should follow below steps:



  1. override customer create Action of Account controller, some information could be found here

  2. On the controller action you need to set the redirect to your customer module controller which will load the layout that has a block with your template of verify.phtml

I think point 2 may confuses you. So let me explain a bit more in detail.



First of all you need your own module with a controller. in that controller You will load and render a layout with template. Refer this



Now on the same module you could override the customer controller with create Action. And there after customer is created, you can redirect to your controller
by doing something like




$this->_redirect('module-frontname/controller-name/action-name');




You can search more detail about redirecting to our custom module controller.



On the verify form submission success, which you are doing through ajax, you can redirect easily to your home page.



I hope my answer above provide you some giudelines to move ahead. If it helps you please accept and vote up the answer.



Happy Coding!!






share|improve this answer























  • can you give steps in sample code

    – Nadh
    Nov 10 '17 at 12:20















0














If I get you correctly, On customer registration success you want your customer to be redirected to the page with template verify.phtml. When the verification is successful you want them to be redirected to Home page.



For this I think you should follow below steps:



  1. override customer create Action of Account controller, some information could be found here

  2. On the controller action you need to set the redirect to your customer module controller which will load the layout that has a block with your template of verify.phtml

I think point 2 may confuses you. So let me explain a bit more in detail.



First of all you need your own module with a controller. in that controller You will load and render a layout with template. Refer this



Now on the same module you could override the customer controller with create Action. And there after customer is created, you can redirect to your controller
by doing something like




$this->_redirect('module-frontname/controller-name/action-name');




You can search more detail about redirecting to our custom module controller.



On the verify form submission success, which you are doing through ajax, you can redirect easily to your home page.



I hope my answer above provide you some giudelines to move ahead. If it helps you please accept and vote up the answer.



Happy Coding!!






share|improve this answer























  • can you give steps in sample code

    – Nadh
    Nov 10 '17 at 12:20













0












0








0







If I get you correctly, On customer registration success you want your customer to be redirected to the page with template verify.phtml. When the verification is successful you want them to be redirected to Home page.



For this I think you should follow below steps:



  1. override customer create Action of Account controller, some information could be found here

  2. On the controller action you need to set the redirect to your customer module controller which will load the layout that has a block with your template of verify.phtml

I think point 2 may confuses you. So let me explain a bit more in detail.



First of all you need your own module with a controller. in that controller You will load and render a layout with template. Refer this



Now on the same module you could override the customer controller with create Action. And there after customer is created, you can redirect to your controller
by doing something like




$this->_redirect('module-frontname/controller-name/action-name');




You can search more detail about redirecting to our custom module controller.



On the verify form submission success, which you are doing through ajax, you can redirect easily to your home page.



I hope my answer above provide you some giudelines to move ahead. If it helps you please accept and vote up the answer.



Happy Coding!!






share|improve this answer













If I get you correctly, On customer registration success you want your customer to be redirected to the page with template verify.phtml. When the verification is successful you want them to be redirected to Home page.



For this I think you should follow below steps:



  1. override customer create Action of Account controller, some information could be found here

  2. On the controller action you need to set the redirect to your customer module controller which will load the layout that has a block with your template of verify.phtml

I think point 2 may confuses you. So let me explain a bit more in detail.



First of all you need your own module with a controller. in that controller You will load and render a layout with template. Refer this



Now on the same module you could override the customer controller with create Action. And there after customer is created, you can redirect to your controller
by doing something like




$this->_redirect('module-frontname/controller-name/action-name');




You can search more detail about redirecting to our custom module controller.



On the verify form submission success, which you are doing through ajax, you can redirect easily to your home page.



I hope my answer above provide you some giudelines to move ahead. If it helps you please accept and vote up the answer.



Happy Coding!!







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 10 '17 at 11:35









aton1004aton1004

643823




643823












  • can you give steps in sample code

    – Nadh
    Nov 10 '17 at 12:20

















  • can you give steps in sample code

    – Nadh
    Nov 10 '17 at 12:20
















can you give steps in sample code

– Nadh
Nov 10 '17 at 12:20





can you give steps in sample code

– Nadh
Nov 10 '17 at 12:20

















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%2f200873%2fmagento-how-to-redirect-custom-page-after-registration-and-then-home-page%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

Magento 2 duplicate PHPSESSID cookie when using session_start() in custom php scriptMagento 2: User cant logged in into to account page, no error showing!Magento duplicate on subdomainGrabbing storeview from cookie (after using language selector)How do I run php custom script on magento2Magento 2: Include PHP script in headerSession lock after using Cm_RedisSessionscript php to update stockMagento set cookie popupMagento 2 session id cookie - where to find it?How to import Configurable product from csv with custom attributes using php scriptMagento 2 run custom PHP script

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

How to solve knockout JS error in Magento 2 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?(Magento2) knockout.js:3012 Uncaught ReferenceError: Unable to process bindingUnable to process binding Knockout.js magento 2Cannot read property `scopeLabel` of undefined on Product Detail PageCan't get Customer Data on frontend in Magento 2Magento2 Order Summary - unable to process bindingKO templates are not loading in Magento 2.1 applicationgetting knockout js error magento 2Product grid not load -— Unable to process binding Knockout.js magento 2Product form not loaded in magento2Uncaught ReferenceError: Unable to process binding “if: function()return (isShowLegend()) ” magento 2