Hi, I'm not sure to have understood your answer.
The accountingPreference in the UtilFinancial.java refer to a Party entity recorde and is used for making financial conversion. Or actually when I make my test I'm not logging under a user, and I want to display American specific product which not require conversion. And whenever I was logging, why would it work (in French) before I destroy the session, and why would it not work after... I'm really stuck in this problem... I appreciate any suggestion. Regards, Nick -----Message d'origine----- De : Raj [mailto:[EMAIL PROTECTED] Envoyé : lundi 1 janvier 2007 18:02 À : [email protected] Objet : RE: website trouble Hi ,this problem raised by miss match of currencyUomId in your application. SOLUTION FOR THIS PROBLEM You can set value in /hot-deploy/financials/src/com/opensourcestrategies/financials/util/UtilFina ncial.java accountingPreference.setString("baseCurrencyUomId","USD"); accountingPreference.setString("baseCurrencyUomId","EUR"); LIKE THIS ,DEPENDS UPON YOUR LOCALE -----Original Message----- From: Passalacqua Nicolas [mailto:[EMAIL PROTECTED] Sent: Friday, December 29, 2006 8:50 PM To: [email protected] Subject: RE: website trouble Actually my data are totally separate. French data: webSite X productStore X catalog X categories X products X English data: website Y productStore Y catalog Y categories Y products Y It's like two different applications under the same webapp. So for the French the productStore and the produtPrice are set in EUR. I forgot to give this information but when I start my website under French (by setting the website in web.xml) everything working fine. But when I change my language by doing: - Session.invalidate(); - And setting the new: local, productStore, websiteId, currencyUomId, in the session. I get the error I desribe before in French (Could not find a valid price for the product with ID [10001], not adding to cart)... And in English everything working fine. I notice that when I shutdown my browser and reopen it, the French work fine. So I suppose there something missing in the session.... But what is it???? Regards, Nick -----Message d'origine----- De : Jacopo Cappellato [mailto:[EMAIL PROTECTED] Envoyé : jeudi 28 décembre 2006 18:55 À : [email protected] Objet : Re: website trouble Hi, in the French ProductStore you have probably set the currency in EUR but the prices are in USD only. Switch the ProductStore field to USD or add the EUR entries in the ProductPrice entity. Jacopo Passalacqua Nicolas wrote: > Hi, > > > > I run after a trouble for 2 days. > > I've got an application with two languages, French and English. > > French has it's own data: website, produtstore, catalog, and products > > And English has it's own too. > > I switch from one to an other one by changing session data (websiteId, > productStoreId, and catalogId). > > The error I get is: > > Could not find a valid price for the product with ID [10001], not adding > to cart. > > > > I get this error when I want to add a product in the cart and I get it > only in French. In English everything's allright. > > > > My English catalog is a copy of the French one (copies of the xml files) > and with adapt name for the English needs. > > Which let me say that this can not come for a pb with data (price, or > something like that). > > > > How could it work for one (the English) and generate this error for the > French ? > > > > Regards, > > > > Nick > > > >
