source/Application/Component/Widget/ArticleDetails.php
public function getVariantListExceptCurrent()
    {
        $oList = $this->getVariantList();
        if (is_object($oList)) {
            $oList = clone $oList;
        }

        $sOxId = $this->getProduct()->getId();
        if (isset($oList[$sOxId])) {
            unset($oList[$sOxId]);
        }

        return $oList;
    }
public function getVariantListExceptCurrent()
    {
        $oList = $this->getVariantList();
        if (is_object($oList)) {
            $oList = clone $oList;
        }

        $sOxId = $this->getProduct()->getId();
        if (isset($oList[$sOxId])) {
            unset($oList[$sOxId]);
        }

        return $oList;
    }
public function getVariantListExceptCurrent ( ) { $ oList = $ this -> getVariantList ( ) ; if ( is_object ( $ oList ) ) { $ oList = clone $ oList ; } $ sOxId = $ this -> getProduct ( ) -> getId ( ) ; if ( isset ( $ oList [ $ sOxId ] ) ) { unset ( $ oList [ $ sOxId ] ) ; } return $ oList ; }
Returns variant lists of current product
excludes currently viewed product.

@return array|SimpleVariantList|ArticleList
Returns variant lists of current product excludes currently viewed product .