SV: [ic] Problems with CALC command

Joachim Leidinger [email protected]
Fri Apr 25 09:04:00 2003


Kent-Rune K.Sætrum wrote:
....
>>and last ...all in one line (without a whitespace)
>>
>>[currency convert=1][calc][subtotal 
>>noformat=1]*0.24/1.24[/calc][/currency]
>>
>>Joachim
> 
> 
> 
> Thanks :) Output is like this:
> 
> Kr 0,00 subtotal test : Kr 21.646,00
> subtotal noformat test : 21646
> calc test : 
> currency test: Kr 123,00
> and last ...all in one line (without a whitespace) Kr 0,00
> 
> Meaning its the [calc] tag that is not working as it should.
> 
> I now have the following settings in the "catalog.cfg" file:
> 
> ---cut---
> Locale          en_NO LC_CTYPE en_NO
> LocaleDatabase  locale
> ---cut---
> 
> I also tried these settings with no better results:
> 
> ---cut---
> Locale          en_NO
> LocaleDatabase  locale
> ---cut---
> 
> ---cut---
> Locale          en_NO LC_CTYPE C
> LocaleDatabase  locale
> ---cut---
> 
> 
> In the "locale.txt" file inside the "porducts" folder I have following
> settings:
> 
> 
> ---cut---
> 
> code	en_NO	en_US	fr_FR
> frac_digits	2	2	2
> April		April	Avril
> currency_symbol	Kr 	$	FF
> decimal_point	.	.	.
> p_cs_precedes	1		
> mon_thousands_sep	.	,	.
> August		August	Aout
> Februar		February	Février
> Juli		July	Juillet
> mon_decimal_point	,	.	,
> mon_thousand_sep		 	
> ProductFiles			
> Desember		December	Décembre
> Mai		May	Mai
> p_sep_by_space			1
> Oktober		October	Octobre
> products		products	produits
> default	1	0	0
> PriceDivide	1	1	0.1632
> September		September	Septembre
> Januar		January	Janvier
> November		November	Novembre
> Juni		June	Juin
> Mars		March	Mars
> price_picture		Kr ### ### ###,##
> 
> ---cut---
> 
> 
> I really dont understand why the [calc] does not work. Is there anything
> wrong in the locale.txt file or catalog.cfg file ?
> 
> Thanks again for all help.
> 
> 
> Greets,
> Kent-Rune K.Sætrum
> 
> _______________________________________________
> interchange-users mailing list
> [email protected]
> http://www.icdevgroup.org/mailman/listinfo/interchange-users

I'm not sure. Maybe

http://www.icdevgroup.org/pipermail/interchange-users/2002-November/028900.html

can help you a little bit? Is [calc] working for you, if you create the 
demo shop "foundation" and the default setting of it?

Joachim
-- 
Hans-Joachim Leidinger | Dipl.-Phys.Ing.
[[email protected]]
http://www.leidinger.net