Magento – Stopping the Magento 2 Session from clering on checkout completion

checkoutmagento2

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.

Best Answer

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();

Related Topic