From aa719d35d37f0f6b5e02dbba69c2584b01a8419a Mon Sep 17 00:00:00 2001 From: HotCustard Date: Sat, 30 May 2020 21:18:49 +0200 Subject: [PATCH 1/3] make it respect isDefaultNotificationDisabled --- Plugin/Message/ManagerInterfacePlugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugin/Message/ManagerInterfacePlugin.php b/Plugin/Message/ManagerInterfacePlugin.php index 2d8c50b..38726be 100644 --- a/Plugin/Message/ManagerInterfacePlugin.php +++ b/Plugin/Message/ManagerInterfacePlugin.php @@ -36,7 +36,7 @@ public function aroundAddComplexSuccessMessage( array $data = [], $group = null ) { - if ($identifier === 'addCartSuccessMessage' && $this->config->isEnabled()) { + if ($identifier === 'addCartSuccessMessage' && $this->config->isEnabled() && $this->config->isDefaultNotificationDisabled()) { return $subject; } From edc0fa0dcbf08b3478f201b8b466d11dc99abafd Mon Sep 17 00:00:00 2001 From: Timon de Groot Date: Thu, 4 Jun 2020 09:02:50 +0200 Subject: [PATCH 2/3] Update ManagerInterfacePlugin.php --- Plugin/Message/ManagerInterfacePlugin.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Plugin/Message/ManagerInterfacePlugin.php b/Plugin/Message/ManagerInterfacePlugin.php index 38726be..01d877f 100644 --- a/Plugin/Message/ManagerInterfacePlugin.php +++ b/Plugin/Message/ManagerInterfacePlugin.php @@ -36,7 +36,9 @@ public function aroundAddComplexSuccessMessage( array $data = [], $group = null ) { - if ($identifier === 'addCartSuccessMessage' && $this->config->isEnabled() && $this->config->isDefaultNotificationDisabled()) { + if ($identifier === 'addCartSuccessMessage' && + $this->config->isEnabled() && + $this->config->isDefaultNotificationDisabled()) { return $subject; } From 2c38c2de93098c2a2119598e9ff12febe4840a73 Mon Sep 17 00:00:00 2001 From: Timon de Groot Date: Thu, 4 Jun 2020 09:03:06 +0200 Subject: [PATCH 3/3] Update ManagerInterfacePlugin.php --- Plugin/Message/ManagerInterfacePlugin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Plugin/Message/ManagerInterfacePlugin.php b/Plugin/Message/ManagerInterfacePlugin.php index 01d877f..638aa40 100644 --- a/Plugin/Message/ManagerInterfacePlugin.php +++ b/Plugin/Message/ManagerInterfacePlugin.php @@ -36,8 +36,8 @@ public function aroundAddComplexSuccessMessage( array $data = [], $group = null ) { - if ($identifier === 'addCartSuccessMessage' && - $this->config->isEnabled() && + if ($identifier === 'addCartSuccessMessage' && + $this->config->isEnabled() && $this->config->isDefaultNotificationDisabled()) { return $subject; }