Skip to content

Commit

Permalink
Merge pull request #757 from TheBnl/patch-8
Browse files Browse the repository at this point in the history
Get the dbObject instance of the PurchaseComplete message
  • Loading branch information
bummzack committed Dec 27, 2020
2 parents 04671be + 34b9660 commit 8f418ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Checkout/OrderEmailNotifier.php
Expand Up @@ -64,7 +64,7 @@ protected function buildEmail($template, $subject)
$from = ShopConfigExtension::config()->email_from ? ShopConfigExtension::config()->email_from : Email::config()->admin_email;
$to = $this->order->getLatestEmail();
$checkoutpage = CheckoutPage::get()->first();
$completemessage = $checkoutpage ? $checkoutpage->PurchaseComplete : '';
$completemessage = $checkoutpage ? $checkoutpage->dbObject('PurchaseComplete') : '';

/**
* @var Email $email
Expand Down

0 comments on commit 8f418ed

Please sign in to comment.