src/ShopBundle/objects/db/TShopArticle.class.php
public function GetLowestPricedVariant()
    {
        $oLowestPrictedVariant = null;

        $oVariants = $this->GetFieldShopArticleVariantsList();
        while ($oVariant = $oVariants->Next()) {
            if (is_null($oLowestPrictedVariant) || $oVariant->fieldPrice < $oLowestPrictedVariant->fieldPrice) {
                $oLowestPrictedVariant = $oVariant;
            }
        }

        return $oLowestPrictedVariant;
    }
public function GetLowestPricedVariant()
    {
        $oLowestPrictedVariant = null;

        $oVariants = $this->GetFieldShopArticleVariantsList();
        while ($oVariant = $oVariants->Next()) {
            if (is_null($oLowestPrictedVariant) || $oVariant->fieldPrice < $oLowestPrictedVariant->fieldPrice) {
                $oLowestPrictedVariant = $oVariant;
            }
        }

        return $oLowestPrictedVariant;
    }
public function GetLowestPricedVariant ( ) { $ oLowestPrictedVariant = null ; $ oVariants = $ this -> GetFieldShopArticleVariantsList ( ) ; while ( $ oVariant = $ oVariants -> Next ( ) ) { if ( is_null ( $ oLowestPrictedVariant ) || $ oVariant -> fieldPrice < $ oLowestPrictedVariant -> fieldPrice ) { $ oLowestPrictedVariant = $ oVariant ; } } return $ oLowestPrictedVariant ; }
return variant with the lowest price.

@return TdbShopArticle
return variant with the lowest price .