Page 1 of 1

Adding additional "0" to second digit price on products module

Posted: Fri Dec 10, 2010 5:54 pm
by folco3
So I can't be the only one to have this problem but I can't seems to find an answer anywhere. I'm using the product module, to display the price i'm using:

{$currency_symbol}: {$entry->price}

Which works fine, unless the price ends in a "0". for example $25.50 enter in for the price would display $25.5

Which looks a little awkward. Is there a way to make it show the additional "0"?

Re: Adding additional "0" to second digit price on products module

Posted: Fri Dec 10, 2010 6:52 pm
by Nullig
Have you tried using a modifier, like:

  {$entry->price|string_format:"%.2f"}

Nullig