Skip to content

Commit

Permalink
Merge pull request #7 from HotCustard/patch-1
Browse files Browse the repository at this point in the history
make it respect isDefaultNotificationDisabled
  • Loading branch information
Timon de Groot authored Jun 4, 2020
2 parents 53822f9 + 2c38c2d commit d6fa414
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Plugin/Message/ManagerInterfacePlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ public function aroundAddComplexSuccessMessage(
array $data = [],
$group = null
) {
if ($identifier === 'addCartSuccessMessage' && $this->config->isEnabled()) {
if ($identifier === 'addCartSuccessMessage' &&
$this->config->isEnabled() &&
$this->config->isDefaultNotificationDisabled()) {
return $subject;
}

Expand Down

0 comments on commit d6fa414

Please sign in to comment.