public function getPrettyPrice
- Code: Select all
if ($this->is_price_poa)
return tt('is_price_poa', 'apartments');
$price = $this->getPriceFrom();
$priceTo = $this->getPriceTo();
if($this->isPriceFromTo()){
$priceFromTo = '';
if ($price)
$priceFromTo = tc('price_from').' '.$this->getCurrency().' '.$this->setPretty($price);
if ($priceTo)
$priceFromTo .= $priceTo ? ' '.tc('price_to').' '.$this->getCurrency().' '.$this->setPretty($priceTo) : '';
return $priceFromTo;
}
return $this->getCurrency().' '.$this->setPretty($price);