Skip to main content

How to Customize Magento2 Checkout Success Page

 

  1. The file templates you can find here: app/code/Magento/Checkout/view/frontend/templates/success.phtml In order to customize that you have to copy the file from app/design/frontend/Magento/luma/Magento_Checkout/templates/success.phtml
  2. Before designing your success page you can stumble across a problem. We mean when you click "Refresh" button on a success page, you will be redirected to the empty cart. Thus we recommend you find the file app/code/Magento/Checkout/Controller/Onepage/Success.php and comment this line in public function successAction.
    Line is $session->clearQuote();
  3. Right now it would be better to check for compatibility with different browsers.