In the Magento 1 days I'd just take the file from the core Magento files and comment out the session clear function on the checkout page allowing our front end developers to refresh the page as they please without having to keep making new orders to test every new piece of CSS they wrote.

Is there any way to stop the checkout process from having to be done again and again to style the thank you page on Magento 2.1? I can't find anything when trying to Google the issue.

1 Answer 1


You can find out it in magento-2 from given file


Just comment out this line : $session->clearQuote();

  • Editing the core directly is a bad idea as you will loose your changes when you upgrade Oct 25, 2016 at 14:01
  • @Raphaela it is just for temporary, only developing purpose. after developing it will revert. Oct 25, 2016 at 17:51
  • well the OP does not seem to want a temporary fix Oct 25, 2016 at 17:57
  • 1
    Basiclly user want use for just for minite while write css on success page. you can read qustion, what is actully question. Oct 25, 2016 at 18:01
  • My bad I misread the OP question Oct 25, 2016 at 18:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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