src/ShopBundle/objects/TCMSTableEditor/TCMSShopTableEditor_ShopArticle.class.php
public function UpdatePriceToLowestVariant()
    {
        /** @var TdbShopArticle $product */
        $product = $this->oTable;
        $oLowestPriceVariant = $product->GetLowestPricedVariant();
        if ($oLowestPriceVariant) {
            $aData = array('price' => $oLowestPriceVariant->fieldPriceFormated, 'price_reference' => $oLowestPriceVariant->fieldPriceReferenceFormated);
            $this->SaveFields($aData, false);
        }
    }
public function UpdatePriceToLowestVariant()
    {
        /** @var TdbShopArticle $product */
        $product = $this->oTable;
        $oLowestPriceVariant = $product->GetLowestPricedVariant();
        if ($oLowestPriceVariant) {
            $aData = array('price' => $oLowestPriceVariant->fieldPriceFormated, 'price_reference' => $oLowestPriceVariant->fieldPriceReferenceFormated);
            $this->SaveFields($aData, false);
        }
    }
public function UpdatePriceToLowestVariant ( ) { /** @var TdbShopArticle $product */ $ product = $ this -> oTable ; $ oLowestPriceVariant = $ product -> GetLowestPricedVariant ( ) ; if ( $ oLowestPriceVariant ) { $ aData = array ( 'price' => $ oLowestPriceVariant -> fieldPriceFormated , 'price_reference' => $ oLowestPriceVariant -> fieldPriceReferenceFormated ) ; $ this -> SaveFields ( $ aData , false ) ; } }
changes price of parent article to lowest variant.
changes price of parent article to lowest variant .