MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: error when subtotal > 1000



******    message to minivend-users from "Chris Mueller" <cmueller@polinet.ch>     ******

Try using
[price noformat] to make you calculations. This should give you the price in
"raw" format, i.e. not formaztted and ony localize it for display.

I have not tried this, but I have seen it in the docs...
(see tags docs [price])
Chris


-----Urspr&#252;ngliche Nachricht-----
Von: Thomas Walter <tw@mail.itreff.de>
An: minivend-users@minivend.com <minivend-users@minivend.com>
Datum: Mittwoch, 17. Februar 1999 17:10
Betreff: Re: error when subtotal > 1000


******    message to minivend-users from Thomas Walter <tw@mail.itreff.de>
******

Dan Busarow wrote:
> On Tue, 16 Feb 1999, Michael Radke wrote:
> > this is caused by the "comma" as the decimal-point
> > in our german
> > language. I have had to programm that by myself in
> > perl..

Why don&#180;t you share this perl-programm with us?

I thought that it was the "comma" too, but the question is: How do I
switch the comma off?  I&#180;ve tried
   Locale de_DE mon_thousands_sep "."
in the catalog.cfg. This sets it to a "." of course, but
   Locale de_DE mon_thousands_sep ""
or
   Locale de_DE mon_thousands_sep
does not switch it off?

> If that's the cause, and it does make sense, then you can fix it
> by changing locales.
>
> [setlocale en_US]
> do your calc stuff here
> [setlocale]
> The second setlocale will restore your default locale.

I have problems using (see my euro-Locale suggestions some days before):
----- snipp -----
[subtotal] <!-- displayed in de_DE-Style (default) as usual -->
[setlocale eur_EUR] <!-- want to display sublocal in euro -->
   [subtotal] <!-- works -->
   [currency convert=1][subtotal][/currency] <!-- calculates wrong -->
[setlocale]

[subtotal] <!-- this subtotal should be displayed in de_DE (my default
locale) -->
----- snipp -----

First problem is: It seems that the locale is not set to the default
with [setlocale]. All other [item-price], [item-subtotal] on the same
page are displayed in euro until I switch back to [setlocale de_DE] by
hand.

And the second problem is that [currency convert=1] also has problems
with the ",".

     Balu
-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to
Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list

-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: