{
$contactService = new \Person\Service\Contact();
$contactService->setWorkflow(new \Person\Workflow());
- $companyService = new \Company\Service\Company();
- $companyService->setWorkflow(new \Company\Workflow());
+// $companyService = new \Company\Service\Company();
+// $companyService->setWorkflow(new \Company\Workflow());
$profileService = new \User\Service\Profile();
$profileService->setWorkflow(new \User\Workflow());
//\Utility\Debug::errorLog('create contact', $session->Contact);
$contact = $contactService->create($session->Contact);
$session->Company['contact'] = $contact->id;
- if (isset($session->BillingContact))
- {
- //\Utility\Debug::errorLog('create billing contact', $session->BillingContact);
- $billingContact = $contactService->create($session->BillingContact);
- $session->Company['contbillingContactact'] = $billingContact->id;
- }
+// if (isset($session->BillingContact))
+// {
+// //\Utility\Debug::errorLog('create billing contact', $session->BillingContact);
+// $billingContact = $contactService->create($session->BillingContact);
+// $session->Company['contbillingContactact'] = $billingContact->id;
+// }
//\Utility\Debug::errorLog('create company', $session->Company);
- $company = $companyService->create($session->Company);
- $session->Profile['company'] = $company->id;
- if ($session->Profile['permissions'] < 5 || $session->Profile['permissions'] > 8)
- {
- $session->Profile['permissions'] = 5;
- }
- //\Utility\Debug::errorLog('create profile', $session->Profile);
+// $company = $companyService->create($session->Company);
+// $session->Profile['company'] = $company->id;
+// if ($session->Profile['permissions'] < 5 || $session->Profile['permissions'] > 8)
+// {
+// $session->Profile['permissions'] = 5;
+// }
+ $session->Profile['permissions'] = 12;
+ \Utility\Debug::errorLog('create profile', $session->Profile);
$profile = $profileService->create($session->Profile);
- $toCompanyId = $company->id;
+// $toCompanyId = '';
$toProfileId = $profile->id;
$email = $profile->email;
$mobile = null;
$params['message'] = 'Thank you for registering. Your registration was submitted for approval '
. 'and you will receive email confirmation once your account has been verified.'
. 'Please note that if any documents were not uploaded they need to be emailed'
- . ' (info@bid4cars.co.za) or faxed (086 618 5584) before we can approve your '
+ . ' (info@bid4cars.com.na) or faxed (086 618 5584) before we can approve your '
. 'account.';
#-> Send welcome notification to User.
$oNotify->sendFromTemplate(
null, null,
$toCompanyId, $toProfileId,
- 'info@bid4cars.co.za', $mobile,
+ 'info@bid4cars.com.na', $mobile,
$subject,
$templateName,
$params