protected function _createProductListSuggestions( $productId, array $productList, $listTypeId,
		MShop_Common_Manager_Interface $productListManager )
	{
		if( empty( $productList ) ) {
			return;
		}

		$listItem = $productListManager->createItem();
		foreach( $productList as $key => $id )
		{
			$listItem->setId( null );
			$listItem->setParentId( $productId );
			$listItem->setDomain( 'product' );
			$listItem->setTypeId( $listTypeId );
			$listItem->setRefId( $id );
			$listItem->setStatus( 1 );
			$listItem->setPosition( $key );

			$productListManager->saveItem( $listItem );
		}
	}
protected function _createProductListSuggestions( $productId, array $productList, $listTypeId,
		MShop_Common_Manager_Interface $productListManager )
	{
		if( empty( $productList ) ) {
			return;
		}

		$listItem = $productListManager->createItem();
		foreach( $productList as $key => $id )
		{
			$listItem->setId( null );
			$listItem->setParentId( $productId );
			$listItem->setDomain( 'product' );
			$listItem->setTypeId( $listTypeId );
			$listItem->setRefId( $id );
			$listItem->setStatus( 1 );
			$listItem->setPosition( $key );

			$productListManager->saveItem( $listItem );
		}
	}
protected function _createProductListSuggestions ( $ productId , array $ productList , $ listTypeId , MShop_Common_Manager_Interface $ productListManager ) { if ( empty ( $ productList ) ) { return ; } $ listItem = $ productListManager -> createItem ( ) ; foreach ( $ productList as $ key => $ id ) { $ listItem -> setId ( null ) ; $ listItem -> setParentId ( $ productId ) ; $ listItem -> setDomain ( 'product' ) ; $ listItem -> setTypeId ( $ listTypeId ) ; $ listItem -> setRefId ( $ id ) ; $ listItem -> setStatus ( 1 ) ; $ listItem -> setPosition ( $ key ) ; $ productListManager -> saveItem ( $ listItem ) ; } }
Adds products to the product list as suggested.

@param int $productId Product id
@param array $productList List of suggestion products
@param int $listTypeId Product list type id
@param MShop_Common_Manager_Interface $productListManager Manager for list types of product domain
Adds products to the product list as suggested .