Page 1 of 2

Handling Currency

Posted: Sun Dec 16, 2012 12:12 pm
by madhu
Hi, I want to know how to change the currency in broadleaf. By defaults it uses dollar. I would like to change it to some other currency. Please guide me on this

Also i read a post saying that the currency and locale support would be available in 2.1 version of broadleaf. Is the 2.1 version released ? Cross checked JIRA which shows 2.1 under unreleased versions. Need help on this

Re: Handling Currency

Posted: Fri Dec 21, 2012 5:30 pm
by phillipuniverse
This is available in 2.2, not 2.1. Guides are available for locale and currency on our docs site.

Re: Handling Currency

Posted: Thu Jan 03, 2013 7:16 am
by madhu
Hi Phillip

I checked the maven central repository but dint find the 2.2 version of broadleaf framework
Can you let me know how can i update to 2.2 version so that I can work on changing the currency ?

Maven Repository : http://search.maven.org/#search|ga|1|broadleaf

Re: Handling Currency

Posted: Thu Jan 03, 2013 10:21 am
by phillipuniverse
2.2 is not on Maven Central and as of yesterday is in RC1. You could also target the SNAPSHOT releases as well. If do not already have a project created, I would check out the demosite from Github and go to the develop branch. The develop branch is currently targeting version 2.2.0-SNAPSHOT; you could scale this to 2.2.0-RC1 if you like.

If you already have a project created locally, in your root pom change the version of your Broadleaf jars to either 2.2.0-RC1 or 2.2.0-SNAPSHOT. Then, ensure that you have this repository declared in your pom:

Code: Select all

<repositories>
   <repository>
      <id>public snapshots</id>
      <name>public snapshots</name>
      <url>http://www.broadleafcommerce.org/nexus/content/repositories/snapshots/</url>
   </repository>
        <repository>
      <id>public releases</id>
      <name>public releases</name>
      <url>http://www.broadleafcommerce.org/nexus/content/repositories/releases/</url>
   </repository>
</repositories>


The first repository is needed if you are targeting a SNAPSHOT release, and the second is needed if you are targeting an RC release.

Re: Handling Currency

Posted: Thu Jan 03, 2013 10:24 am
by phillipuniverse
One other note if you are upgrading an existing project. You might also have to make changes to your project as a result of the upgrade, depending on what version you started with. Usually this is not required, but just wanted to make you aware that you might run into issues. If you do have a problem, you will usually know it pretty quick in that it wouldn't start up because of not finding a particular component or something. I know that we changed where some component scans are relatively recently.

Re: Handling Currency

Posted: Wed Jan 09, 2013 8:38 am
by madhu
Thanks Phillip for your inputs. I had the DemoSite checked out which uses the 2.0.2 version of broadleaf framework

As you said I updated the broadleaf framework to 2.2.0-RC1 in the root
i.e I updated <blc.version>2.0.2-GA</blc.version> to <blc.version>2.2.0-RC1</blc.version>in the root pom file

Later when I checked the documentation for currency it mentions a file named load_content_structure_international.sql
which i could not find at all. Can you let me know where can i find it. I checked the database, the BLC_CURRENCY table is empty

Re: Handling Currency

Posted: Wed Jan 09, 2013 11:07 am
by phillipuniverse
Look at the example-i18n branch of DemoSite (https://github.com/BroadleafCommerce/De ... ources/sql). These have the files that you need.

Sorry this might feel a bit like a run-around; we are just getting our heads around some pretty big refactorings of how things are going to work going forward. For instance, we took a fair amount of features out of the core framework and into 3rd-party modules and created a bunch of example branches on DemoSite to show how they could be used. That's why it seems like things are kind of all over the place.

Re: Handling Currency

Posted: Thu Jan 10, 2013 1:10 am
by Ramneek
Hi,

I tried running the 2.1.1-SNAPSHOT version, however I get the following error when I execute the jetty-demo ant task -
"org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blUpdateCartService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'blUpdateCartServiceExtensionManager' is defined"

Any ideas what could be a problem here?

Thank you,
Ramneek

Re: Handling Currency

Posted: Thu Jan 10, 2013 10:20 am
by phillipuniverse
Again, if you're trying to use currency, you need to be using the 2.2.0-SNAPSHOT version.

Re: Handling Currency

Posted: Fri Jan 11, 2013 12:12 pm
by Ramneek
I updated to the 2.2.0-SNAPSHOT, but I get the following errors when running the jetty-demo ant task:

[ERROR] 22:30:35 DispatcherServlet - Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [bl-framework-web-applicationContext-servlet.xml]; nested exception is java.io.FileNotFoundException: class path resource [bl-framework-web-applicationContext-servlet.xml] cannot be opened because it does not exist

Any ideas would could be wrong here?

Thank you!