Magento 2 emulating (debugging) Thank you (success) page

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

Should look like:

public function execute()
    {
        $session = $this->getOnepage()->getCheckout();
        $session
            ->setLastOrderId(OLD_ID)
            ->setLastRealOrderId('OLD INCREMENT ID')
            ->setLastOrderStatus('Pending');

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.