6

I have an issue in Magento 2 success page, its showing blank after successfully placed order. I am trying to debug it but the issue is when trying to refresh the success page after changing the code it a clear current session and redirecting to the home page. I want to stop redirecting the success page and stay the same page when the refresh page.

Have anybody Idea in Magento 2? Please let me know if anyone already does this?

21

You can stop checkout success page redirection after refresh page, check below code

vendor/magento/module-checkout/Controller/Onepage/Success.php

Comment Out Line No : 22

//$session->clearQuote();

Now you can debug checkout success page.

  • Yes,Ok this is working. – akgola Jan 29 '18 at 7:32
  • Line 26 (as of Magento 2.3.1) – bassplayer7 May 1 at 16:03
1

Kindly open Magento\Checkout\Controller\Onepage\Success.php and comment below line

$session->clearQuote(); 

for temporary purpose.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.