0

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

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

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

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

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

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.