Correction d'un bogue dans l'envoi de mail ColissimoWs + finalisation module DHL

This commit is contained in:
2020-12-07 22:01:54 +01:00
parent c388c942b5
commit 40b78b9a63
4 changed files with 14 additions and 12 deletions

View File

@@ -53,7 +53,10 @@ class ShippingNotificationSender extends BaseAction implements EventSubscriberIn
*/
public function sendShippingNotification(OrderEvent $event)
{
if ($event->getOrder()->isSent()) {
$order = $event->getOrder();
$module = new ColissimoWs();
if ($event->getOrder()->isSent() && $order->getDeliveryModuleId() == $module->getModuleModel()->getId()) {
$contact_email = ConfigQuery::getStoreEmail();
if ($contact_email) {