[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] format total_cost
At 06:02 PM 8/30/2002 +0200, you wrote:
>[perl]
>my $price = $Tag->total_cost();
>return $price
>[/perl]
>
>the output is for example 130.00$
>
>[perl]
>my $price = $Tag->total_cost(noformat=>1);
>return $price
>[/perl]
>
>the output is all 0
>
>I wuold like 130.00
>
>Saluti Stefano
Syntax error - each parameter (except for the body of enclosing tags) is a
hash entry. The Tagref is pretty clear on this point:
$Tag->total_cost( { noformat => 1 } )
- Ed L.
>
===============================================================
Increase profits from your Interchange store...
http://www.newmediaems.com/cgi-bin/nm/software_fus.html
===============================================================
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
===============================================================