source/Application/Controller/Admin/OrderArticle.php
public function getProductList()
    {
        if ($this->_oSearchProductList === null) {
            $this->_oSearchProductList = oxNew(\OxidEsales\Eshop\Core\Model\ListModel::class);

            // main search product is found?
            if ($oMainSearchProduct = $this->getMainProduct()) {
                // storing self to first list position
                $this->_oSearchProductList->offsetSet($oMainSearchProduct->getId(), $oMainSearchProduct);

                // adding variants..
                foreach ($oMainSearchProduct->getVariants() as $oVariant) {
                    $this->_oSearchProductList->offsetSet($oVariant->getId(), $oVariant);
                }
            }
        }

        return $this->_oSearchProductList;
    }
public function getProductList()
    {
        if ($this->_oSearchProductList === null) {
            $this->_oSearchProductList = oxNew(\OxidEsales\Eshop\Core\Model\ListModel::class);

            // main search product is found?
            if ($oMainSearchProduct = $this->getMainProduct()) {
                // storing self to first list position
                $this->_oSearchProductList->offsetSet($oMainSearchProduct->getId(), $oMainSearchProduct);

                // adding variants..
                foreach ($oMainSearchProduct->getVariants() as $oVariant) {
                    $this->_oSearchProductList->offsetSet($oVariant->getId(), $oVariant);
                }
            }
        }

        return $this->_oSearchProductList;
    }
public function getProductList ( ) { if ( $ this -> _oSearchProductList === null ) { $ this -> _oSearchProductList = oxNew ( \ OxidEsales \ Eshop \ Core \ Model \ ListModel :: class ) ; // main search product is found? if ( $ oMainSearchProduct = $ this -> getMainProduct ( ) ) { // storing self to first list position $ this -> _oSearchProductList -> offsetSet ( $ oMainSearchProduct -> getId ( ) , $ oMainSearchProduct ) ; // adding variants.. foreach ( $ oMainSearchProduct -> getVariants ( ) as $ oVariant ) { $ this -> _oSearchProductList -> offsetSet ( $ oVariant -> getId ( ) , $ oVariant ) ; } } } return $ this -> _oSearchProductList ; }
Returns product list containing searchable product or its parent and its variants

@return oxlist
Returns product list containing searchable product or its parent and its variants