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 |
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 > > > > |
In reply to this post by Passalacqua Nicolas
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:[hidden email]] Envoyé : jeudi 28 décembre 2006 18:55 À : [hidden email] 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 > > > > |
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:[hidden email]] Sent: Friday, December 29, 2006 8:50 PM To: [hidden email] 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:[hidden email]] Envoyé : jeudi 28 décembre 2006 18:55 À : [hidden email] 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 > > > > |
In reply to this post by Passalacqua Nicolas
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:[hidden email]] Envoyé : lundi 1 janvier 2007 18:02 À : [hidden email] 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:[hidden email]] Sent: Friday, December 29, 2006 8:50 PM To: [hidden email] 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:[hidden email]] Envoyé : jeudi 28 décembre 2006 18:55 À : [hidden email] 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 > > > > |
In reply to this post by Passalacqua Nicolas
I solve my problem.
In fact I was using an old home made function base on sequoia 8.2 for realise the language switch. Or in this function I was setting currencyUomId (in the session) or in opentaps 9.0.2 it's now currencyUom. Here was my problem. So now everything works fine. Nick -----Message d'origine----- De : Passalacqua Nicolas [mailto:[hidden email]] Envoyé : mardi 2 janvier 2007 10:54 À : [hidden email]; [hidden email] Objet : RE: website trouble 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:[hidden email]] Envoyé : lundi 1 janvier 2007 18:02 À : [hidden email] 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:[hidden email]] Sent: Friday, December 29, 2006 8:50 PM To: [hidden email] 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:[hidden email]] Envoyé : jeudi 28 décembre 2006 18:55 À : [hidden email] 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 > > > > |
Free forum by Nabble | Edit this page |