protected function getOldPriceValueAttribute()
    {
        $obPriceModel = $this->getPriceObject($this->getActivePriceType());
        $this->setActivePriceType(null);

        if (empty($obPriceModel)) {
            return 0;
        }

        $fPrice = $obPriceModel->old_price_value;
        $fPrice = CurrencyHelper::instance()->convert($fPrice, $this->getActiveCurrency());
        $this->setActiveCurrency(null);

        return $fPrice;
    }
protected function getOldPriceValueAttribute()
    {
        $obPriceModel = $this->getPriceObject($this->getActivePriceType());
        $this->setActivePriceType(null);

        if (empty($obPriceModel)) {
            return 0;
        }

        $fPrice = $obPriceModel->old_price_value;
        $fPrice = CurrencyHelper::instance()->convert($fPrice, $this->getActiveCurrency());
        $this->setActiveCurrency(null);

        return $fPrice;
    }
protected function getOldPriceValueAttribute ( ) { $ obPriceModel = $ this -> getPriceObject ( $ this -> getActivePriceType ( ) ) ; $ this -> setActivePriceType ( null ) ; if ( empty ( $ obPriceModel ) ) { return 0 ; } $ fPrice = $ obPriceModel -> old_price_value ; $ fPrice = CurrencyHelper :: instance ( ) -> convert ( $ fPrice , $ this -> getActiveCurrency ( ) ) ; $ this -> setActiveCurrency ( null ) ; return $ fPrice ; }
Get old_price_value attribute
@return float
Get old_price_value attribute