Documentation Home

Installation

  1. Add the dependency version to your root pom.xml:

    <dependency>
        <groupId>com.broadleafcommerce</groupId>
        <artifactId>broadleaf-advanced-inventory</artifactId>
        <version>1.1.2-GA</version>
        <type>jar</type>
        <scope>compile</scope>
    </dependency>
    

This module requires at least Broadleaf 3.1.2-GA

  1. Add the dependency itself to the core project so that both site and admin can inherit it:

    <dependency>
        <groupId>com.broadleafcommerce</groupId>
        <artifactId>broadleaf-advanced-inventory</artifactId>
    </dependency>
    
  2. In the frontend web.xml, add the advanced inventory applicationContext file to the patchConfigLocation context parameter, above the classpath:/applicationContext.xml entry:

    classpath:/bl-advanced-inventory-applicationContext.xml
    
    1. In the admin web.xml, add the admin applicationContext file to the patchConfigLocation context parameter, above the classpath:/applicationContext.xml entry:
    classpath:/bl-advanced-inventory-admin-applicationContext.xml
    
  3. Import the admin security SQL into your database

    /config/bc/load_advanced-inventory_admin_security.sql
    

Note: if you are using Hibernate 'create' ddl you can add this file to the list of SQL import files in development-shared.properties in order to automatically import this\

  1. Include a component scan for the REST APIs in applicationContext-rest-api.xml (optional):

    <context:component-scan base-package="com.broadleafcommerce.inventory.advanced.api" />
    

Data Setup

All of the inventory operations require some Fulfillment Locations to be hooked up. If you are currently using the framework inventory (a column on the BLC_SKU table) then you will need to create entries in BLC_FULFILLMENT_LOCATION and move the inventory data to the BLC_INVENTORY table associated with a Fulfillment Location.