[ic] Remove $ from [total-cost]

Daniel Davenport ddavenport at newagedigital.com
Thu Oct 27 10:22:32 EDT 2005



>>>> ic at 3edge.com 10/26/05 06:06PM >>>
>> Is there a simple way to output [total-cost] without a
>> dollar sign $?
>
>[total-cost noformat=1]   ? 

that'd remove the $, but it would also leave the decimal places as is.
$10.50 would show up as 10.5, and 4.975 (possible with discounts etc)
would probably be left at three decimal places.  If there's no need for pret,
then this is the simplest and most efficent way that i'm aware of.

[filter op=digits_dot interpolate=1][total-cost][/filter]
outputs a number suitable for use as a price, but without the $.
There are probably other more efficient ways, but the OP did ask for simple.  =)

Is there a number-format tag?  I don't remember seeing one, but that doesn't mean a whole lot.
If there isn't, it shouldn't be too much trouble to whip one up.

--
Daniel Davenport
New Age Digital
http://www.newagedigital.com






More information about the interchange-users mailing list