Configuring fulfillment centers for stores

This task describes how to to update the Transaction server with store inventory location data.

About this task

You must configure fulfillment centers in the Commerce+ Transaction server in the following circumstances:
  • When you are using a Commerce+-created fulfillment center as the delivery method.
  • For every fulfillment center that was created prior to using the Commerce+ Inventory that you wish to use in stores created using the PBC.

Procedure

  1. To ensure that the data load process is configured for the correct store, update the storeIdentifier property in the environment configuration file.
    1. Open the following file:
      /opt/CommerceUtilities/samples/DataLoad/FulfillmentCenter/wc-dataload-env.xml
    2. Locate the storeIdentifier property.
    3. Replace its value with the name of your store. For example:
      <_config:BusinessContext storeIdentifier="default_store" languageId="-1" />
      Where default_store is the default store name.
  2. Open the following sample csv template:
    /opt/CommerceUtilities/samples/DataLoad/FulfillmentCenter/ffmcenter.csv
    Update the file contents to reflect your store’s fulfillment center details. The columns in the .csv file correspond to the fields in the FFMCENTER database table.
    ffmcenter
    ffmcenterName,extIdentifier,displayName,DefaultShipOffset,InventoryOpFlags,MaxNumPick,PickDelayInMin,DropShip,Delete
    For example, a row in the file could contain the following values:
    
    Ruby3,RUB003,default_store,86400,14,25,5,N
  3. Ensure that the csv file name you created above matches the location property for the fulfillment center load item in the dataload configuration file located at /opt/CommerceUtilities/samples/DataLoad/FulfillmentCenter/wc-dataload.xml. For example:
    <_config:DataLoadConfiguration
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.ibm.com/xmlns/prod/commerce/foundation/config ../../../../xml/config/xsd/wc-dataload.xsd"
    xmlns:_config="http://www.ibm.com/xmlns/prod/commerce/foundation/config">
    
    <_config:DataLoadEnvironment configFile="wc-dataload-env.xml" />
    
    <_config:LoadOrder commitCount="100" batchSize="100" maxError="0" dataLoadMode="Replace" >
        <_config:property name="firstTwoLinesAreHeader" value="true" />
    
        <_config:LoadItem name="ffmcenter" businessObjectConfigFile="wc-loader-fulfillment-center.xml" >
                 <_config:DataSourceLocation location="ffmcenter.csv" oldLocation="" />
        </_config:LoadItem>
    </_config:LoadOrder>
  4. Run the following command: ./dataload.sh ../samples/DataLoad/FulfillmentCenter/wc-dataload.xml