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 >
