setData('social_id', $social_id) ->setData('type_id', $this->getSocialType()) ->setData('customer_id', $customer_id) ->setData('website_id', Mage::app()->getWebsite()->getId()) ->save(); } protected function createCustomer($profile){ $customer = Mage::getModel('customer/customer'); $password = $customer->generatePassword(8); $type = Mage::getSingleton('core/session')->getCtype(); if($type!=''){ $userType = $type; }else{ $userType = 'user'; } if (is_array($profile)){ $profile = (object)$profile; } $customer->setWebsiteId(Mage::app()->getStore()->getWebsiteId()); $customer->loadByEmail($profile->email); if(count($customer)<=0){ $customer->setData('type', $userType) ->setData('confirmed','1') ->setData('status','1'); } $customer->setData('firstname', $profile->first_name) ->setData('lastname', $profile->last_name) ->setData('email', $profile->email) ->setData('password', $password) ->setData('photo',$profile->photo) ->setData('website_id', Mage::app()->getWebsite()->getId()) ->setSkipConfirmationIfEmail($profile->email) ->setConfirmation($password); $errors = $customer->validate(); if (is_array($errors) && count($errors)){ $this->getSession()->addError(implode(' ', $errors)); return false; } $customer->save(); $data = array('email'=>$customer->getEmail(),'tasker_type'=> $userType,'customerid'=>$customer->getId(),'created'=> now(),'updated'=> now()); $model = Mage::getModel('qrabbit/tasker')->setData($data); try{ $model->save(); }catch(Exception $e){ echo $e->getMessage(); } $customer->sendNewAccountEmail(); Mage::getSingleton('core/session')->unsCType(); return $customer; } protected function _getRedirectUrl($url){ if (!$url){ $url = $this->getRequest()->getParam('gs_url', ''); if (!$url && Mage::getSingleton('core/session')->getData('gs_url')){ $url = Mage::getSingleton('core/session')->getData('gs_url'); Mage::getSingleton('core/session')->unsetData('gs_url'); } if ($url){ $url = Mage::helper('core')->urlDecode($url); } } if (!$url){ $url = Mage::getBaseUrl().'customer/account/'; } return $url; } protected function _redirectUrl($url) { return parent::_redirectUrl($this->_getRedirectUrl($url)); }}
Fatal error: Class 'GoMage_Social_Controller_Social' not found in /chroot/home/akol/salimaz.com/html/skillreward.com/app/code/local/GoMage/Social/controllers/GoogleController.php on line 18