Page 1 of 1

broadleafcommerce opensource ?

Posted: Fri Mar 14, 2014 5:47 pm
by sid
Hi
I am new to blc
Is the community version completely opensource ? or are some parts still closed source in the community open source ?

-Sid

Re: broadleafcommerce opensource ?

Posted: Fri Mar 21, 2014 5:52 am
by phillipuniverse
The community version is what you see on https://github.com/BroadleafCommerce/BroadleafCommerce. This is open source. The open source framework also runs the demo site, which is also open source at https://github.com/BroadleafCommerce/DemoSite.

There are other modules that add more functionality: some are open source, some are closed source and require an enterprise license: http://docs.broadleafcommerce.org/core/current/modules.

Re: broadleafcommerce opensource ?

Posted: Fri Mar 21, 2014 3:35 pm
by sid
What about these dependencies in the main pom.xml ?
Are these dependencies open source as well ? If yes which git project has those ?

<dependency>
<groupId>org.broadleafcommerce</groupId>
<artifactId>broadleaf-common</artifactId>
<version>${blc.version}</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.broadleafcommerce</groupId>
<artifactId>broadleaf-profile</artifactId>
<version>${blc.version}</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.broadleafcommerce</groupId>
<artifactId>broadleaf-profile-web</artifactId>
<version>${blc.version}</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.broadleafcommerce</groupId>
<artifactId>broadleaf-framework</artifactId>
<version>${blc.version}</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.broadleafcommerce</groupId>
<artifactId>broadleaf-framework-web</artifactId>
<version>${blc.version}</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.broadleafcommerce</groupId>
<artifactId>broadleaf-admin-module</artifactId>
<version>${blc.version}</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.broadleafcommerce</groupId>
<artifactId>broadleaf-contentmanagement-module</artifactId>
<version>${blc.version}</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.broadleafcommerce</groupId>
<artifactId>broadleaf-open-admin-platform</artifactId>
<version>${blc.version}</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.broadleafcommerce</groupId>
<artifactId>integration</artifactId>
<version>${blc.version}</version>
<type>jar</type>
<classifier>tests</classifier>
<scope>test</scope>
</dependency>

Re: broadleafcommerce opensource ?

Posted: Fri Mar 21, 2014 3:43 pm
by phillipuniverse
All of those dependencies are maven modules within the Broadleaf Commerce project. The project that I referenced on GitHub (https://github.com/BroadleafCommerce/BroadleafCommerce) is a multi-module Maven project. If you go into the subdirectories you will see a pom.xml in each subfolder.

Re: broadleafcommerce opensource ?

Posted: Fri Mar 21, 2014 3:59 pm
by sid
Ok Got it. Thanks :)

Re: broadleafcommerce opensource ?

Posted: Fri Jun 20, 2014 4:08 am
by abhilash.ghosh
phillipuniverse wrote:All of those dependencies are maven modules within the Broadleaf Commerce project. The project that I referenced on GitHub (https://github.com/BroadleafCommerce/BroadleafCommerce) is a multi-module Maven project. If you go into the subdirectories you will see a pom.xml in each subfolder.


Hello Everyone,

I am planning to implement a ecommerce website. I did setup the demo site and its working fine. However, I could see that there are lot of Broadleaf dependencies in the pom.xml file. I have custom business logic so need to modify the code as well. I have downloaded the source code of broadleaf from https://github.com/BroadleafCommerce/BroadleafCommerce. However, I could see there are lot of modules. Can anyone help me in setting up the modules in eclipse/Intellij and get rid of the dependencies in the pom.xml?

Looking forward for your earliest response.

Thanks in advance.

Re: broadleafcommerce opensource ?

Posted: Fri Jun 20, 2014 10:29 am
by phillipuniverse
You should not modify any of the core framework Broadleaf code. All of the Broadleaf framework is designed such that you do not modify the framework directly, but rather provide your own extensions (subclasses, bean overrides, workflow changes) in your own codebase completely separate from the Broadleaf framework.

For instance, extending services: http://www.broadleafcommerce.com/docs/c ... g-services, extending entities: http://www.broadleafcommerce.com/docs/c ... g-entities

Re: broadleafcommerce opensource ?

Posted: Mon Jun 23, 2014 12:10 pm
by abhilash.ghosh
Hello Phillip,

I was following the tutorials but i think they are not update. I choose the version as 3.1, still the files the docs is referring to doesn't exists in the source code. Could you please check the below mentioned URL:

http://www.broadleafcommerce.com/docs/c ... e-tutorial

There is a line which states

Code: Select all

Then, we can add the new field to ajax/register.html, right below the confirm password field:


I can see there is no "ajax" folder. This folder was replaced with "template". I think you need to update the content of the tutorials. Once again if you go down to the bottom, you will find the following code:

Code: Select all

String url = super.processRegister(registerCustomerForm, errors, request, response, model);
    if (url.equals(getRegisterSuccessView())) {
        // Grab the current customer from the request
        Customer newCustomer = CustomerState.getCustomer();

        // Create the referralCode CustomerAttribute
        CustomerAttribute referralCodeAttr = new CustomerAttributeImpl();
        referralCodeAttr.setName("referralCode");
        referralCodeAttr.setValue(registerCustomerForm.getReferralCode());
        referralCodeAttr.setCustomer(newCustomer);

        // Update our customer object
        newCustomer.getCustomerAttributes().add(referralCodeAttr);
        newCustomer = customerService.saveCustomer(newCustomer);

        // Place the new customer onto the request
        CustomerState.setCustomer(newCustomer);
    }
return url;


I am trying to implement it but its throwing up error in the following lines:

Code: Select all

referralCodeAttr.setValue(registerCustomerForm.getReferralCode());


Code: Select all

 newCustomer.getCustomerAttributes().add(referralCodeAttr);


The 'registerCustomerForm.getReferralCode()' and 'add()' do not exists. Could you please look into this and let me know your inputs? is it possible to use broadleaf commerce without modifying the core framework?