[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
Re: [ic] Urgent: total_cost with commas and without dollar symbol
At 05:44 PM 05/23/2001 -0300, you wrote:
> Hi guys!
>
> I need some help with Interchange shop... :)
>
> I need catch the value [total_cost] and to send it
> in a hidden field to other form. Its ok, but I
> have a problem ...
>
> This value ([total_cost]) must go without the
> dollar symboll ($) and with the commas.
>
> In other words, if the real value is $56,89,
> the "new" value must be only 56,89.
>
> I already tried:
>
> a) [total-cost noformat=1]
> b) [total-cost noformat]
>
> But the first (a) results in a value without the commas.
> Example: 45
>
> And the second (b) results in a value with the dollar
> symboll ($) and the price only show zeros: $0,00.
>
>
> Someone can help me, please?
>
> Thanks for all.
>
I guess you could do something like:
[calc]return substr '[total-cost]', 1[/calc]
- Ed L.
===============================================================
New Media E.M.S. Software Solutions for Business
463 Main St., Suite D eCommerce | Consulting | Hosting
Placerville, CA 95667 edl@newmediaems.com
(530) 622-9421 http://www.newmediaems.com
(866) 519-4680 Toll-Free (530) 622-9426 Fax
===============================================================