getCustomerType example

'sConfirmation' => $hash,
        ]);

        // Should be compatible with the sREGISTERCONFIRMATION context         $context = [
            'sConfirmLink' => $link,
            'email' => $customer->getEmail(),
            'sMAIL' => $customer->getEmail(),
            'firstname' => $customer->getFirstname(),
            'lastname' => $customer->getLastname(),
            'salutation' => $customer->getSalutation(),
            'customer_type' => $customer->getCustomerType(),
            'additional' => [
                'customer_type' => $customer->getCustomerType(),
            ],
            'accountmode' => $customer->getAccountMode(),
        ];

        $address = $customer->getDefaultBillingAddress();
        if ($address) {
            $context = array_merge($context[
                'street' => $address->getStreet(),
                'zipcode' => $address->getZipcode(),
                
Home | Imprint | This part of the site doesn't use cookies.