public function isAvailable( MShop_Order_Item_Base_Interface $base )
	{
		if( ( $prodcode = $this->_getConfigValue( 'required.productcode' ) ) !== null )
		{
			foreach( $base->getProducts() as $product )
			{
				if( $product->getProductCode() == $prodcode ) {
					return parent::isAvailable( $base );
				}
			}

			return false;
		}

		return true;
	}
public function isAvailable( MShop_Order_Item_Base_Interface $base )
	{
		if( ( $prodcode = $this->_getConfigValue( 'required.productcode' ) ) !== null )
		{
			foreach( $base->getProducts() as $product )
			{
				if( $product->getProductCode() == $prodcode ) {
					return parent::isAvailable( $base );
				}
			}

			return false;
		}

		return true;
	}
public function isAvailable ( MShop_Order_Item_Base_Interface $ base ) { if ( ( $ prodcode = $ this -> _getConfigValue ( 'required.productcode' ) ) !== null ) { foreach ( $ base -> getProducts ( ) as $ product ) { if ( $ product -> getProductCode ( ) == $ prodcode ) { return parent :: isAvailable ( $ base ) ; } } return false ; } return true ; }
Checks for requirements.

@param MShop_Order_Item_Base_Interface $base Basic order of the customer
@return boolean True if the requirements are met, false if not
Checks for requirements .