Ideas

Customer registration without double opt in

At the moment it is not possible to have a customer registration without a double opt in.

In our project we patched the customer therefore, but IMO this is a feature which is useful for other too.

We replaced https://github.com/spryker/spryker/blob/master/Bundles/Customer/src/Spryker/Zed/Customer/Business/Customer/Customer.php#L161-L169 with

if ($this->customerConfig->isDoubleOptInActive()) {
    $customerEntity->setRegistered(new \DateTime());
}

$customerEntity->save();

$customerTransfer->setIdCustomer($customerEntity->getPrimaryKey());
$customerTransfer->setCustomerReference($customerEntity->getCustomerReference());

if ($this->customerConfig->isDoubleOptInActive() && $customerEntity->getPassword() !== null) {
    $customerTransfer->setRegistrationKey($customerEntity->getRegistrationKey());
    $this->sendRegistrationToken($customerTransfer);
}
  • Avatar32.5fb70cce7410889e661286fd7f1897de Guest
  • Aug 15 2018
  • In review
How we can make you more productive?
Company
  • Attach files