
[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
Re: [ic] item-subtotal
At 04:21 PM 09/13/2001 +1000, you wrote:
>Hi,
>I tried [item-subtotal noformat=1] to get rid of the '$' sign.
>However, it didn't work for me (minivend 3).
>If this is not possible in version 3, what other method I can do to get it
>work?
>Thanks
>Kathy
>
You have a few choices:
1. Accumulate your own line item subtotal (within the
[item-list][/item-list] pair):
[set name=item_subtotal interpolate=1][calc]
[item-price noformat=1] * [item-quantity]
[/calc][/set]
... [scratch item_subtotal] will return the subtotal for each line;
2. Strip the currency formatting off of [item-subtotal]:
[calc]
my $subtotal = q{[item-subtotal]};
my $decpoint = '.'; # change this for the decimal
separator for your locale
$subtotal =~ s/[^\d$decpoint]//g;
return $subtotal;
[/calc]
You could even write a usertag with your own custom subtotal sans
formatting. Probably the best solution is to upgrade your catalog to a
recent vintage of IC - there are wealth of improvements which make it
worthwhile.
- 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
===============================================================
_______________________________________________
interchange-users mailing list
interchange-users@interchange.redhat.com
http://interchange.redhat.com/mailman/listinfo/interchange-users