Akopia Akopia Services

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

Re: [mv] Locale problems



******    message to minivend-users from Sakari Ailus <sakari.ailus@nic.fi>     ******

jojo@buchonline.net wrote:
> ******    message to minivend-users from jojo@buchonline.net     ******
> On 10 Jun, Sakari Ailus wrote:
> > ******    message to minivend-users from Sakari Ailus <sakari.ailus@nic.fi>     ******
> [DEL]
> >The problem is this: when I start Minivend server normally, prices are
> >correct and it is possible to order non-integer quantity of something.
> >But, if I reconfigure the catalog, prices are rounded downward. If you
> >order non-interger quantity of a product, also the quantity is rounded
> >downward when price is calculated. It shouldn't be like this, should it?
> I canīt follow you! Can you write an example?

Yes. I have product X which costs, lets say 1,10 mk. I want to order 2,5
units of it.

This works fine if catalog isn't reconfiguration yet. But if I
reconfigure it (running $VENDROOT/bin/minivend
--reconfigure=catalog_name) Minivend starts to think one item product X
costs 1,00 mk and I want to order 2 units of it. This prevents me
reconfiguring catalogs and users of other catalogs will have to wait
restarting Minivend.

> [DEL]
> >> > Any ideas?
> >>
> >> Look into the locale database
> >>
> >> code|en_US|de_DE|fr_FR
> >>
> >> [DEL] (pipe symbol for tabs)
> >>
> >> PriceDivide|1|0.5409|0.1632
> >> currency_symbol|$|DM|FF
> >> decimal_point|.|.|.
> >
> >                   ^
> >
> > Also you Germans (?) are using decimal dot, not comma as we Finns.
> <grins>
> No! This is coming from the simple demo!

Sorry, I didn't know, just thought that because last replier put that
locale thing here.

> I use this
> 
> Locale de_DE de_DE.ISO_8859-1
> Locale de_DE LC_CTYPE de_DE
> Locale de_DE LC_TIME de_DE
> Locale de_DE LC_COLLATE de_DE
> 
> Locale de_DE p_cs_precedes 0
> Locale de_DE p_sep_by_space 2
> Locale de_DE frac_digits 2
> Locale de_DE mon_decimal_point   ,
> Locale de_DE mon_thousands_sep .
> 
> LocaleDatabase  locale
> 
> in my catalog.cfg!

I tried but without success. And there probably should be also line
"Locale de_DE decimal_point ," if I understood right? If I put e. g. 1,1
to item's quantity field and say Minivend to recalculate basket items it
goes on to error page and displays error message "'1,1' for item 14 is
not numeric".

Reconfiguring still breaks things. Does price/quantity calculation still
work correctly if you reconfigure your catalog?

BTW what kind of database are you using? I have PostgreSQL products
database and all fields are type text.

-- 
Sakari Ailus
sakari.ailus@nic.fi
-
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: