Page 1 of 1

Price Format

PostPosted: 02 Jul 2013, 23:08
by rogbsa
Where and how can I change the price format from #######.00 £ to £ #######.00, meaning putting the currency in front rather than at back of price.

Re: Price Format

PostPosted: 03 Jul 2013, 10:19
by fisher
In the protected/modules/apartments/models/Apartment.php file you can find the 'getPrettyPrice' function. Here you can set the currency's symbol before the price and change the currency's symbol.

$this->setPretty($price) — it is the price;
$this->getCurrency() - it is the currency's symbol.

Re: Price Format

PostPosted: 04 Jul 2013, 03:53
by qaona
Hello!
I have the same problem, I was unable to resolve by editing the code.
Please guide me where I made mistake?
Edited image file as the link: Image Image
thank you

Re: Price Format

PostPosted: 04 Jul 2013, 11:47
by fisher
the code should be the following:
Code: Select all
return $this->getCurrency().' '.$this->setPretty($price).' '.self::getPriceName($this->price_type); 

Re: Price Format

PostPosted: 05 Jul 2013, 02:59
by qaona
Solved!
Many thanks for the help

Re: Price Format

PostPosted: 10 Jul 2013, 00:48
by rogbsa
Thanks loads. Works