Example #1
0
 /**
  * Function used for sso to see if member allows renting
  * @return bool
  */
 public static function isAllowedRenting()
 {
     if (!self::useSSO()) {
         return true;
     }
     $customer = Mage::helper('customer')->getCustomer();
     $client = new SoapClient(Mage::getStoreConfig(self::XML_PATH_SSO_RENT_LINK) . "?WSDL");
     $strRental = $client->GetRentalActive(array('dealerCode' => $customer->getUsername()))->GetRentalActiveResult;
     return $strRental == 1 ? true : false;
 }