controller/frontend/src/Controller/Frontend/Product/Standard.php
public function supplier( $supIds, $listtype = 'default' )
	{
		if( !empty( $supIds ) && ( $ids = array_unique( $this->validateIds( (array) $supIds ) ) ) !== [] )
		{
			$func = $this->filter->createFunction( 'index.supplier:position', [$listtype, $ids] );

			$this->conditions[] = $this->filter->compare( '==', 'index.supplier.id', $ids );
			$this->conditions[] = $this->filter->compare( '>=', $func, 0 );

			$func = $this->filter->createFunction( 'sort:index.supplier:position', [$listtype, $ids] );
			$this->sort = $this->filter->sort( '+', $func );
		}

		return $this;
	}
public function supplier( $supIds, $listtype = 'default' )
	{
		if( !empty( $supIds ) && ( $ids = array_unique( $this->validateIds( (array) $supIds ) ) ) !== [] )
		{
			$func = $this->filter->createFunction( 'index.supplier:position', [$listtype, $ids] );

			$this->conditions[] = $this->filter->compare( '==', 'index.supplier.id', $ids );
			$this->conditions[] = $this->filter->compare( '>=', $func, 0 );

			$func = $this->filter->createFunction( 'sort:index.supplier:position', [$listtype, $ids] );
			$this->sort = $this->filter->sort( '+', $func );
		}

		return $this;
	}
public function supplier ( $ supIds , $ listtype = 'default' ) { if ( ! empty ( $ supIds ) && ( $ ids = array_unique ( $ this -> validateIds ( ( array ) $ supIds ) ) ) !== [ ] ) { $ func = $ this -> filter -> createFunction ( 'index.supplier:position' , [ $ listtype , $ ids ] ) ; $ this -> conditions [ ] = $ this -> filter -> compare ( '==' , 'index.supplier.id' , $ ids ) ; $ this -> conditions [ ] = $ this -> filter -> compare ( '>=' , $ func , 0 ) ; $ func = $ this -> filter -> createFunction ( 'sort:index.supplier:position' , [ $ listtype , $ ids ] ) ; $ this -> sort = $ this -> filter -> sort ( '+' , $ func ) ; } return $ this ; }
Adds supplier IDs for filtering

@param array|string $supIds Supplier ID or list of IDs
@param string $listtype List type of the products referenced by the suppliers
@return \Aimeos\Controller\Frontend\Product\Iface Product controller for fluent interface
@since 2019.04
Adds supplier IDs for filtering