(Enterprise)

Sample: Loading data to an extended sites store and catalog asset store

This sample demonstrates how to load data to our extended sites store and catalog asset store when using the extended sites business model.


About this sample

The data load mediator in this sample loads categories into the catalog asset store. The mediator then loads the relationship data so that the extended sites store inherits the categories from the catalog asset store. The mediator then loads catalog entries to the extended sites store, with the inherited categories as the parent.This sample uses the following store identifiers:

Edit the environment configuration file for this sample to specify the identifier for our store.


Procedure

  1. Open the wc-dataload-env-asset-store.xml configuration file in the appropriate directory:

  2. Update the file with the database settings, catalog asset store identifier, and catalog identifier

  3. Open the wc-dataload-env-esite.xml configuration file in the same directory, and update it with the database settings, extended sites store identifier, and catalog identifier.

  4. (Developer) On a command line, go to the WCDE_installdir\bin directory.

  5. (Linux) Open a command line in the Utility server Docker container. Change the directory to utilities_root/bin directory.
    For information about entering and leaving containers, see Running utilities from the Utility server Docker container.

  6. Enter the following command to load categories to the catalog asset store:

    • (Linux) ./dataload.sh ../samples/DataLoad/Catalog/ESite/wc-dataload-asset-store.xml

  7. Open the CatalogEntries.csv source file in the same directory, and modify each of the values in the ParentStoreIdentifier column to match the identifier of the catalog asset store.

  8. Enter the following command to load products and SKUs to the extended sites store, and to create a parent category in the catalog asset store:

    • (Linux) ./dataload.sh ../samples/DataLoad/Catalog/ESite/wc-dataload-esite.xml


Verifying results

Verify that the data is loaded to the catalog asset store and extended sites store by running the following SQL statements:


Cleaning up the data

To remove the data loaded in this sample from the database, run the CleanUp.sql file in the /samples/DataLoad/CatalogESite directory.