WebSphere Commerce Developer

Enabling the Commerce Composer store function

Use the Data Load utility to turn on the Commerce Composer store function for your store. Before business users can use the Commerce Composer for your store, you must enable this store function.

About this task

Store functions provide you the capability to enable or disable optional features for your WebSphere Commerce store. Many store functions can be enabled and disabled with the Store Management tool in Management Center, the Commerce Composer store function however is not available in the Store Management tool. To enable this function for a store other than the Aurora starter store, use the Data Load utility. By default, the Commerce Composer store function is enabled for the Aurora starter store.

When you enable the store function for your store, business users can then select your store from the Store list for the Commerce Composer.

Procedure

Update the sample Data Load utility files to match your environment settings.
  1. In a file manager utility, go to the temporary directory where you extracted the CommerceComposerStarterStoreSupport.zip compressed file.
  2. In the dataload directory, ensure that the following files exist:
    dataload_storefunction_config.xml
    The business object configuration file. This file defines how the Data Load utility loads data into the database. The contents of this file identify the implementation classes for the Data Reader, Business Object Builder, and Business Object Mediator components that the Data Load utility uses. For more information about the contents and usage of this file, see Configuring the business object configuration file.
    dataload_storefunction_load.xml
    The data load order configuration file. This file controls the order that the Data Load utility loads data. The data load order file has a pointer to the data load environment settings file, business object configuration file, and input file. For more information about the contents and usage of this file, see Configuring the data load order.
    dataload_storefunction_env.xml
    The data load environment configuration file. This file includes the environment variables for your WebSphere Commerce instance. These variables include the following information:
    • Business context variables, including the store identifier, catalog identifier, and the default language and currency for your store.
    • Database environment settings, including the database type, name, and schema.
    This file identifies the following information store, master catalog, language, and currency for a store. For more information about the contents and usage of this file, see Configuring the data load environment settings.
    dataload_storefunction.csv
    The CSV input file that is being loaded with the Data Load utility. To enable the store function for your store, this file must include the correct store ID for your store.
  3. Open the dataload_storefunction.csv file for editing. Update the value for the storeid column to match the store ID for your store. The sample CSV file has the value of the storeid column set to be 10001.
  4. Open the dataload_storefunction_env.xml file for editing. Update the file to meet your environment settings:
    • In the _config:BusinessContext element, update the values for the storeIdentifier and catalogIdentifier attributes to match your environment settings.
    • In the _config:Database element, update the values to meet your WebSphere Commerce Developer.
    You do not need to change the default values for the remaining environment settings.
Run the Data Load utility to enable the Commerce Composer store function for your starter store.
  1. Ensure that your WebSphere Commerce server is stopped before you run the Data Load utility. For more information about stopping your server, see Starting and stopping WebSphere Commerce Test Server.
  2. In a command-line utility, go to the WCDE_installdir\bin directory.
  3. Run the following command to load the input CSV files to enable the Commerce Composer store function for your store:

    dataload temporaryDirectoryPath\dataload_storefunction_load.xml

    Where temporaryDirectoryPath is the path to the temporary directory where you downloaded and extracted the CommerceComposerStarterStoreSupport.zip compressed file.
  4. Verify the results of the data load.
Verify that the Commerce Composer store function is enabled for your store.
  1. Open the Commerce Composer tool.
  2. Ensure that your store can be selected from the Store list in the Commerce Composer. If you can view your store in this list, the store function is enabled for your store.