diff --git a/psgdpr.php b/psgdpr.php index 09b85c54..b98745a4 100755 --- a/psgdpr.php +++ b/psgdpr.php @@ -566,6 +566,7 @@ public function hookAdditionalCustomerFormFields() $label = Configuration::get('PSGDPR_CUSTOMER_FORM', $id_lang); break; case 'authentication': + case 'registration': case 'order': case 'order-confirmation': $active = Configuration::get('PSGDPR_CREATION_FORM_SWITCH'); @@ -904,6 +905,7 @@ public function getCustomerDataFromPrestashop(Customer $customer) // get referrers if (version_compare(_PS_VERSION_, '8.0.0', '<')) { + // @phpstan-ignore-next-line $data['referrer'] = Referrer::getReferrers($customer->id); } diff --git a/upgrade/upgrade-1.4.3.php b/upgrade/upgrade-1.4.3.php new file mode 100644 index 00000000..6d17fd80 --- /dev/null +++ b/upgrade/upgrade-1.4.3.php @@ -0,0 +1,37 @@ + + * @copyright Since 2007 PrestaShop SA and Contributors + * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) + */ +if (!defined('_PS_VERSION_')) { + exit; +} + +/** + * @param Psgdpr $module + * + * @return bool + */ +function upgrade_module_1_4_3($module) +{ + if (!$module->isRegisteredInHook('displayGDPRConsent')) { + return $module->registerHook('displayGDPRConsent'); + } + + return true; +}