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

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
folco3
Forum Members
Forum Members
Posts: 22
Joined: Wed Jun 03, 2009 4:28 am

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

Post 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"?
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm
Location: Comox Valley, BC

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

Post by Nullig »

Have you tried using a modifier, like:

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

Nullig
Post Reply

Return to “Modules/Add-Ons”