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:- Add a pricing locale to the Site repository items.
- Override the
PricingTools.getDefaultLocale
method to retrieve the currency code for the siteInstaed of overridingPricingTools.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:
thanks for your comment Ruchi.
Post a Comment