Thursday 14 November 2013

How to configure Currency Code for Price Info in ATG / changing priceInfo.currencyCode value in atg


 PricingTools Determine the Pricing Locale. PricingTools returns the configured defaultLocale property. The pricing engines use this to determine the currency code. If you are using Oracle ATG Web Commerce’s multisite feature and want to use different currency codes for different sites, you can take the following steps:
  1. Add a pricing locale to the Site repository items.
  2. Override the PricingTools.getDefaultLocale method to retrieve the currency code for the site


    Instaed of overriding  PricingTools.getDefaultLocale method what you can also do is:

    1. Create the following folder structure 





    2. In PricingTools.properties add the bellow property, build and verify.

    defaultLocale = <<your desired locale>>

    eg: defaultLocale = en_IN (for india) this locale will return currency code as INR.



    FOR ANY QUERIES KINDLY POST A COMMENT.









1 comments:

Tech Craft Tips said...

thanks for your comment Ruchi.

Post a Comment

 
;