Skip to content

Commit

Permalink
fix issue with confirmation email
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Barbey committed Feb 14, 2024
1 parent 7b3b8a2 commit 8c0a741
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Config/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<language>en_US</language>
<language>fr_FR</language>
</languages>
<version>2.0.1</version>
<version>2.0.2</version>
<authors>
<author>
<name>Franck Allimant</name>
Expand Down
2 changes: 1 addition & 1 deletion EventListener/SendConfirmationEmail.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public function updateStatus(OrderEvent $event, $eventName, EventDispatcherInter
}

// Send confirmation email if required.
if (Payzen::getConfigValue('send_confirmation_message_only_if_paid')) {
if (PayzenConfigQuery::read('send_confirmation_message_only_if_paid')) {
$dispatcher->dispatch($event, TheliaEvents::ORDER_SEND_CONFIRMATION_EMAIL);
}
}
Expand Down

0 comments on commit 8c0a741

Please sign in to comment.