Prices showing in USD after customisation

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Prices showing in USD after customisation

gcameo
hi All,
I am setting up a UK Shop. I have changed the uom currency id in general.properties to

currency.uom.id.default=GBP but the store prices still show in USD. When I create a product in GBP, it shows as Your Price: US$0.00
How can I fix this. Thank you

--- On Sat, 3/28/09, David E Jones <[hidden email]> wrote:

From: David E Jones <[hidden email]>
Subject: Re: About OFBiz and RMI
To: [hidden email]
Date: Saturday, March 28, 2009, 2:50 PM


For an easier solution try letting the Service Engine take care of it all. For details see the ExampleRemoteService.java file, which has comments about which libraries you need from OFBiz, and then you can call the OFBiz services remotely and communicate pretty easily that way.

Anyway, that's the way remote communication with other Java programs that know about OFBiz is meant to be done.

-David


On Mar 28, 2009, at 9:58 AM, Cimballi wrote:

> Hi,
>
> I'm trying to use OFBiz and RMI. I configured it using the SUN RMI
> implementation to not have to deal with certificates stuff.
>
> My connection is working but I have a problem when I retrieve data.
> I'm using the performFindList method, and the problem is, when I iterate
> over the returned objects and I call a getXxx method, I have this stack
> trace :
> java.lang.IllegalStateException: [GenericEntity.getDelegator] could not find
> delegator with name default
> ...
>
> The thing that looks strange to me is that, as returned entities are of type
> GenericEntity, it needs all the framework environment to use them.
> If there something I do wrong in my RMI call, or is there a way to get
> simple beans as return entities, to not have to deal with the framework
> stuff ?
>
> For the same reason I have to embed ofbiz-base.jar, ofbiz-entity.jar and
> ofbiz-service.jar in my client.
>
> Thanks,
>
> Cimballi

Reply | Threaded
Open this post in threaded view
|

Re: Prices showing in USD after customisation

David E Jones-3

1. please don't hijack threads with new questions, create a new  
message to the mailing list instead of replying to an existing message

2. it sounds like this may be a problem with custom code, ie you have  
something that isn't using this setting (through a widget, or the  
ofbizCurrenty transform in FTL, or whatever)

-David


On Mar 28, 2009, at 4:23 PM, farouk alhassan wrote:

> hi All,
> I am setting up a UK Shop. I have changed the uom currency id in  
> general.properties to
>
> currency.uom.id.default=GBP but the store prices still show in USD.  
> When I create a product in GBP, it shows as Your Price: US$0.00
> How can I fix this. Thank you
>
> --- On Sat, 3/28/09, David E Jones <[hidden email]>  
> wrote:
>
> From: David E Jones <[hidden email]>
> Subject: Re: About OFBiz and RMI
> To: [hidden email]
> Date: Saturday, March 28, 2009, 2:50 PM
>
>
> For an easier solution try letting the Service Engine take care of  
> it all. For details see the ExampleRemoteService.java file, which  
> has comments about which libraries you need from OFBiz, and then you  
> can call the OFBiz services remotely and communicate pretty easily  
> that way.
>
> Anyway, that's the way remote communication with other Java programs  
> that know about OFBiz is meant to be done.
>
> -David
>
>
> On Mar 28, 2009, at 9:58 AM, Cimballi wrote:
>
>> Hi,
>>
>> I'm trying to use OFBiz and RMI. I configured it using the SUN RMI
>> implementation to not have to deal with certificates stuff.
>>
>> My connection is working but I have a problem when I retrieve data.
>> I'm using the performFindList method, and the problem is, when I  
>> iterate
>> over the returned objects and I call a getXxx method, I have this  
>> stack
>> trace :
>> java.lang.IllegalStateException: [GenericEntity.getDelegator] could  
>> not find
>> delegator with name default
>> ...
>>
>> The thing that looks strange to me is that, as returned entities  
>> are of type
>> GenericEntity, it needs all the framework environment to use them.
>> If there something I do wrong in my RMI call, or is there a way to  
>> get
>> simple beans as return entities, to not have to deal with the  
>> framework
>> stuff ?
>>
>> For the same reason I have to embed ofbiz-base.jar, ofbiz-
>> entity.jar and
>> ofbiz-service.jar in my client.
>>
>> Thanks,
>>
>> Cimballi
>

Reply | Threaded
Open this post in threaded view
|

Re: Prices showing in USD after customisation

Scott Gray-2
Also check that your product prices (ProductPrice entity/table) currencyUomId are set to GBP rather than USD.

Regards
Scott


On 29/03/2009, at 11:46 AM, David E Jones wrote:


1. please don't hijack threads with new questions, create a new message to the mailing list instead of replying to an existing message

2. it sounds like this may be a problem with custom code, ie you have something that isn't using this setting (through a widget, or the ofbizCurrenty transform in FTL, or whatever)

-David


On Mar 28, 2009, at 4:23 PM, farouk alhassan wrote:

hi All,
I am setting up a UK Shop. I have changed the uom currency id in general.properties to

currency.uom.id.default=GBP but the store prices still show in USD. When I create a product in GBP, it shows as Your Price: US$0.00
How can I fix this. Thank you

--- On Sat, 3/28/09, David E Jones <[hidden email]> wrote:

From: David E Jones <[hidden email]>
Subject: Re: About OFBiz and RMI
To: [hidden email]
Date: Saturday, March 28, 2009, 2:50 PM


For an easier solution try letting the Service Engine take care of it all. For details see the ExampleRemoteService.java file, which has comments about which libraries you need from OFBiz, and then you can call the OFBiz services remotely and communicate pretty easily that way.

Anyway, that's the way remote communication with other Java programs that know about OFBiz is meant to be done.

-David


On Mar 28, 2009, at 9:58 AM, Cimballi wrote:

Hi,

I'm trying to use OFBiz and RMI. I configured it using the SUN RMI
implementation to not have to deal with certificates stuff.

My connection is working but I have a problem when I retrieve data.
I'm using the performFindList method, and the problem is, when I iterate
over the returned objects and I call a getXxx method, I have this stack
trace :
java.lang.IllegalStateException: [GenericEntity.getDelegator] could not find
delegator with name default
...

The thing that looks strange to me is that, as returned entities are of type
GenericEntity, it needs all the framework environment to use them.
If there something I do wrong in my RMI call, or is there a way to get
simple beans as return entities, to not have to deal with the framework
stuff ?

For the same reason I have to embed ofbiz-base.jar, ofbiz-entity.jar and
ofbiz-service.jar in my client.

Thanks,

Cimballi




smime.p7s (3K) Download Attachment