Documentation Home

Installation

This module requires at least Broadleaf 4.0.0-GA

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

    <dependency>
        <groupId>com.broadleafcommerce</groupId>
        <artifactId>broadleaf-advanced-inventory</artifactId>
        <version>1.1.3-GA</version>
        <type>jar</type>
        <scope>compile</scope>
    </dependency>
    
  2. 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>
    
  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\

  4. 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.