[OFBiz] Users - Ecommerce Currency Comma Problems
Uli Suppa
USuppa at yahoo.de
Wed Sep 22 17:36:14 EDT 2004
Hello Dirk,
i set the locale to de_DE and the currency to EUR. Even with a complete
new Store the same problem. The currencies are all shown right, only
when i try to order i got the error.
thanks uli.
dirk.osterkamp at agrenon.com wrote:
> I'm not sure if it helps, but if you want to use EUR and german currencies
> formatting you should set the locale and currency in the product store
> entity for your website. see the demo seed data in
> ..../coponent/product/data/DemoProduct.xml.
>
> Viele Gruesse
> Best Regards
>
> Dirk Osterkamp
>
> Agrenon GmbH , a Subsidiary of Lynx Consulting AG
> Johanniskirchplatz 6, D-33615 Bielefeld, Germany
> Tel. +49 (521) 5247-0, Fax.+49 (521) 5247-250, Mobile +49(171)7437992
> E-Mail: dirk.osterkamp at agrenon.com
>
>
>
>
>
> Uli Suppa <USuppa at yahoo.de>
> Sent by: users-bounces at lists.ofbiz.org
> 22.09.2004 14:35
> Please respond to OFBiz Users / Usage
>
> To: users at lists.ofbiz.org
> cc:
> Subject: [OFBiz] Users - Ecommerce Currency Comma Problems
>
>
> Hello everyone,
>
> my system ist latest OfBiz from svn, Win2k, MySQL-4.0.18 with
> mysql-connector-java-3.0.11 as jdbc driver.
>
> i try to setup a german onlineshop so i changed the currency in my
> created store to EUR. edited
> /ofbiz/commponents/common/config/general.properties and changed:
>
> currency.uom.id.default=EUR
> currency.decimal.format=##0,00
> country.uom.id.default=DE
>
> now i can order products as long as the default and list price are
> integers, if i change a price to 12,50 the order fails:
>
> [java] ---- runtime exception report
> --------------------------------------------------
> [java] Async-Service failed.
> [java] Exception: java.lang.NumberFormatException
> [java] Message: For input string: "12,5"
> [java] ---- stack trace
> ---------------------------------------------------------------
> [java] java.lang.NumberFormatException: For input string: "12,5"
> [java] java.lang.NumberFormatException.forInputString(Unknown source)
> [java] java.lang.FloatingDecimal.readJavaFormatString(Unknown Source)
> [java] java.lang.Double.valueOf(Unknown Source)
> [java] org.ofbiz.entity.GenericEntity.setString(GenericEntity.java:398)
> [java]
> org.ofbiz.entity.GenericDelegator.makeValue(GenericDelegator.java:2033)
>
> any ideas ? did I miss any config switch ?
>
> sincerely uli.
>
> _______________________________________________
> Users mailing list
> Users at lists.ofbiz.org
> http://lists.ofbiz.org/mailman/listinfo/users
>
>
>
>
> ------------------------------------------------------------------------
>
>
> _______________________________________________
> Users mailing list
> Users at lists.ofbiz.org
> http://lists.ofbiz.org/mailman/listinfo/users
More information about the Users
mailing list