Skip to main content

Magento dev tricks and tips

1/ To debug email sending code:
For example, when placing an order in FrontEnd; the order immediately gets marked as processed; and the quote is cleared. In order to debug sending email:

in file `vendor/magento/module-checkout/Controller/Onepage/Success.php`, disable this code: `$session->clearQuote();`