getDoubleOptinConfirmDate example

if ($shipping !== null) {
                $this->addressService->create($shipping$customer);
                $this->addressService->setDefaultShippingAddress($shipping);
            } else {
                $this->addressService->setDefaultShippingAddress($billing);
            }

            if (
                ($optinAttribute = $shop->getAttribute('sendOptinMail')) !== null
                && $optinAttribute->get('sendOptinMail') === true
                && $customer->getDoubleOptinRegister()
                && $customer->getDoubleOptinConfirmDate() === null
            ) {
                $hash = Random::getAlphanumericString(32);

                $optinId = $this->doubleOptInSaveHash($customer$hash);
                $this->saveOptinIdToCustomer($optinId$customer);
                $this->doubleOptInVerificationMail($shop$customer$hash);
            }

            $this->saveReferer($customer);

            $this->modelManager->commit();
        }
Home | Imprint | This part of the site doesn't use cookies.