Exemplo n.º 1
0
 /**
  * Returns user country id for for discount selection
  *
  * @param oxuser $oUser oxuser object
  *
  * @return string
  */
 public function getCountryId($oUser)
 {
     $sCountryId = null;
     if ($oUser) {
         $sCountryId = $oUser->getActiveCountry();
     }
     return $sCountryId;
 }
 /**
  * Returns user country id for for payment selection
  *
  * @param oxuser $oUser oxuser object
  *
  * @return string
  */
 public function getCountryId($oUser)
 {
     $sCountryId = null;
     if ($oUser) {
         $sCountryId = $oUser->getActiveCountry();
     }
     if (!$sCountryId) {
         $sCountryId = $this->_sHomeCountry;
     }
     return $sCountryId;
 }