You cant't attach in this thread. You may use Nabble for that.
What you are looking for is the macro <@ofbizcurrency>, look for usage in code. 
A Jira would be welcome

Thanks

Jacques

From: "Simon Hutchinson" <[email protected]>
Here is the screenshot. I forgot to attach it before

-----Original Message-----
From: [email protected] on behalf of Abdullah Shaikh
Sent: Fri 9/25/2009 12:38 PM
To: [email protected]
Subject: Re: Hard-code currency for shipment Option

Hi Simon,

I have just checked it out with the ecommerce application, it optional to
set the currency.uom.id.default in general.properties, but you need to set
the settings in store > localisation as mentioned before.

To test checkout with these new settings, I added the GBP price to the Tiny
Chrome Widget, added it to the cart and went for quick checkout, there
shipping estimates were displayed in £.

I hope this helps.


On Fri, Sep 25, 2009 at 4:29 PM, Abdullah Shaikh <
[email protected]> wrote:

Simon,

There are, I don't remember exactly, I guess configuration settings in 2
places, payment.properties & under Store > Localisation, you need to set
Default Locale String to en_GB & Default Currency Uom Id to GBP - British
Pound.

I guess these settings should do, just clear your browser cache and try
with these settings.



On Fri, Sep 25, 2009 at 4:17 PM, Simon Hutchinson <
[email protected]> wrote:

Thanks Abdullah

I hadn't set that, however I don't think that this alone will solve the
problem as the simple-method is simple entering $ as text. Do you know how I
can get the correct symbol programatically?

BR

Simon


-----Original Message-----
From: [email protected] on behalf of Abdullah Shaikh
Sent: Fri 9/25/2009 11:43 AM
To: [email protected]
Subject: Re: Hard-code currency for shipment Option

Have you set the currency.uom.id.default to GBP in general.properties

On Fri, Sep 25, 2009 at 4:07 PM, Simon Hutchinson <
[email protected]> wrote:

> Hi,
>
> In check-out process for eCommerce the descriptions of the shipment
options
> include a price, however this always displayed as $ despite the uom for
the
> shipment estimate being set to GBP.
>
> I have looked at getShipOptions in CustomerEvents.xml and it appears
that
> the currency symbol is hard-coded at the moment - notice the extra $
before
> $${shippingEst}
>
> <set field="shippingDesc" value="${carrierShipmentMethod.partyId}
> ${carrierShipmentMethod.description} - $${shippingEst}"/>
>
> I am happy to fix this but was hoping that someone could please point me
in
> the right direction for getting the correct currency symbol.
>
> I have seen the @ofbizCurrency tag used in freemarker templats however I
> would need something equivalent from Minilang to solve here as the
result of
> getShipOptions is simply returned as json to a javascript function in
> checkoutProcess.js
>
> Note: The getShipOptions simple method uses this
>
> <call-object-method obj-field="shoppingCart" method-name="getCurrency"
> ret-field="currency"/>
>
> which returns the ISO value, in my case GBP -
> Can I call something to get the £ symbol for this ISO code perhaps?
>
> Regards
>
> Simon
>







Reply via email to