protected function _getServiceItem( $type, $serviceId )
	{
		$serviceManager = MShop_Factory::createManager( $this->_getContext(), 'service' );

		$search = $serviceManager->createSearch( true );
		$expr = array(
			$search->getConditions(),
			$search->compare( '==', 'service.id', $serviceId ),
			$search->compare( '==', 'service.type.domain', 'service' ),
			$search->compare( '==', 'service.type.code', $type ),
		);
		$search->setConditions( $search->combine( '&&', $expr ) );

		$items = $serviceManager->searchItems( $search, array( 'price' ) );

		if( ( $item = reset( $items ) ) === false )
		{
			$msg = sprintf( 'Service item for type "%1$s" and ID "%2$s" not found', $type, $serviceId );
			throw new Controller_Frontend_Service_Exception( $msg );
		}

		return $item;
	}
protected function _getServiceItem( $type, $serviceId )
	{
		$serviceManager = MShop_Factory::createManager( $this->_getContext(), 'service' );

		$search = $serviceManager->createSearch( true );
		$expr = array(
			$search->getConditions(),
			$search->compare( '==', 'service.id', $serviceId ),
			$search->compare( '==', 'service.type.domain', 'service' ),
			$search->compare( '==', 'service.type.code', $type ),
		);
		$search->setConditions( $search->combine( '&&', $expr ) );

		$items = $serviceManager->searchItems( $search, array( 'price' ) );

		if( ( $item = reset( $items ) ) === false )
		{
			$msg = sprintf( 'Service item for type "%1$s" and ID "%2$s" not found', $type, $serviceId );
			throw new Controller_Frontend_Service_Exception( $msg );
		}

		return $item;
	}
protected function _getServiceItem ( $ type , $ serviceId ) { $ serviceManager = MShop_Factory :: createManager ( $ this -> _getContext ( ) , 'service' ) ; $ search = $ serviceManager -> createSearch ( true ) ; $ expr = array ( $ search -> getConditions ( ) , $ search -> compare ( '==' , 'service.id' , $ serviceId ) , $ search -> compare ( '==' , 'service.type.domain' , 'service' ) , $ search -> compare ( '==' , 'service.type.code' , $ type ) , ) ; $ search -> setConditions ( $ search -> combine ( '&&' , $ expr ) ) ; $ items = $ serviceManager -> searchItems ( $ search , array ( 'price' ) ) ; if ( ( $ item = reset ( $ items ) ) === false ) { $ msg = sprintf ( 'Service item for type "%1$s" and ID "%2$s" not found' , $ type , $ serviceId ) ; throw new Controller_Frontend_Service_Exception ( $ msg ) ; } return $ item ; }
Returns the service item specified by its type and ID.

@param string $type Service type, e.g. "delivery" (shipping related) or "payment" (payment related)
@param string $serviceId Identifier of the service option chosen by the customer
@throws Controller_Frontend_Service_Exception If no active service provider for this ID is available
Returns the service item specified by its type and ID .