protected function _getProductItem( $code )
	{
		$productManager = MShop_Factory::createManager( $this->_getContext(), 'product' );

		$search = $productManager->createSearch( true );
		$expr = array(
			$search->compare( '==', 'product.code', $code ),
			$search->getConditions(),
		);
		$search->setConditions( $search->combine( '&&', $expr ) );

		$result = $productManager->searchItems( $search, array( 'price', 'text' ) );

		if( ( $productItem = reset( $result ) ) === false )
		{
			$msg = sprintf( 'No product with code "%1$s" found', $code );
			throw new Controller_Frontend_Basket_Exception( $msg );
		}

		return $productItem;
	}
protected function _getProductItem( $code )
	{
		$productManager = MShop_Factory::createManager( $this->_getContext(), 'product' );

		$search = $productManager->createSearch( true );
		$expr = array(
			$search->compare( '==', 'product.code', $code ),
			$search->getConditions(),
		);
		$search->setConditions( $search->combine( '&&', $expr ) );

		$result = $productManager->searchItems( $search, array( 'price', 'text' ) );

		if( ( $productItem = reset( $result ) ) === false )
		{
			$msg = sprintf( 'No product with code "%1$s" found', $code );
			throw new Controller_Frontend_Basket_Exception( $msg );
		}

		return $productItem;
	}
protected function _getProductItem ( $ code ) { $ productManager = MShop_Factory :: createManager ( $ this -> _getContext ( ) , 'product' ) ; $ search = $ productManager -> createSearch ( true ) ; $ expr = array ( $ search -> compare ( '==' , 'product.code' , $ code ) , $ search -> getConditions ( ) , ) ; $ search -> setConditions ( $ search -> combine ( '&&' , $ expr ) ) ; $ result = $ productManager -> searchItems ( $ search , array ( 'price' , 'text' ) ) ; if ( ( $ productItem = reset ( $ result ) ) === false ) { $ msg = sprintf ( 'No product with code "%1$s" found' , $ code ) ; throw new Controller_Frontend_Basket_Exception ( $ msg ) ; } return $ productItem ; }
Retrieves the product item specified by the given code.

@param string $code Unique product code
@return MShop_Product_Item_Interface Product item
@throws Controller_Frontend_Basket_Exception
Retrieves the product item specified by the given code .