From f2d95f4d2be7440f5fe4a653bf826fb5290879eb Mon Sep 17 00:00:00 2001 From: Okom3pom Date: Fri, 29 Oct 2021 12:55:03 +0200 Subject: [PATCH 1/2] no optin for anonymous email --- psgdpr.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/psgdpr.php b/psgdpr.php index b4b0ccef..44abcc94 100755 --- a/psgdpr.php +++ b/psgdpr.php @@ -1038,7 +1038,7 @@ public function createAnonymousCustomer() $customer->firstname = 'Anonymous'; $customer->email = 'anonymous@psgdpr.com'; $customer->passwd = 'prestashop'; - $customer->optin = (bool) Configuration::get('PS_CUSTOMER_OPTIN'); + $customer->optin = false; $customer->active = false; if ($customer->save() == false) { From 965ab7e59d77f8a7a1a04abc7d1e183eb0d48247 Mon Sep 17 00:00:00 2001 From: Okom3pom Date: Fri, 29 Oct 2021 13:02:14 +0200 Subject: [PATCH 2/2] False not needed by default --- psgdpr.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/psgdpr.php b/psgdpr.php index 44abcc94..9b80f8fe 100755 --- a/psgdpr.php +++ b/psgdpr.php @@ -1038,9 +1038,8 @@ public function createAnonymousCustomer() $customer->firstname = 'Anonymous'; $customer->email = 'anonymous@psgdpr.com'; $customer->passwd = 'prestashop'; - $customer->optin = false; - $customer->active = false; + if ($customer->save() == false) { return false; }