Skip to content

Commit

Permalink
Update OrderEmailNotifier.php for SS5 (#807)
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonyThorpe authored Dec 6, 2023
1 parent 652f615 commit 5b3cc0d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/Checkout/OrderEmailNotifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -269,12 +269,14 @@ public function sendStatusChange($title, $note = null)
*/
protected function debug(Email $email)
{
$email->render();
$htmlTemplate = $email->getHTMLTemplate();
$htmlRender = $email->getData()->renderWith($htmlTemplate)->RAW();
$template = $email->getHTMLTemplate();
$headers = $email->getSwiftMessage()->getHeaders()->toString();

$headers = $email->getHeaders()->toString();
return "<h2>Email HTML template: $template</h2>\n" .
"<h3>Headers</h3>" .
"<pre>$headers</pre>" .
$email->getBody();
"<h3>Body</h3>" .
$htmlRender;
}
}

0 comments on commit 5b3cc0d

Please sign in to comment.