Store Locator samples
About this sample
This sample loads physical store-related information into STLOC and related tables.
utilities_root/samples/DataLoad/StoreLocator
WCDE_installdir\samples\DataLoad\StoreLocator
Sample csv files
geonode.csv- Defines the geographical nodes (regions, countries, and states) that can be used to organize store locations.
geotree.csv- Defines the hierarchical relationship between geographical nodes, establishing a geographical tree structure.
storelocation.csv- Defines the core physical store location details and their connection to the geographical hierarchy.
storelocationattr.csv- Defines extended, attribute-based properties for the physical store locations (For example, store services and features such as Electronics Hub).
storelocationdesc.csv- Provides additional descriptive, language-specific information for the physical store location, including images and custom fields.
Procedure
- In a file manager, go to the following directory:
utilities_root/samples/DataLoad/StoreLocator
WCDE_installdir\samples\DataLoad\StoreLocator
- Open the wc-dataload-env.xml data load environment configuration file. Update the file to set the environment settings within the file to match the environment settings. For more information about this configuration file, see Configuring the data load environment settings.
On a command line, go to the
WCDE_installdir\bin directory.
Open a command line in the .
Change the directory to
utilities_root/bin directory.
For information about entering and leaving containers, see
Running utilities from the Utility server Docker container.- Enter the following command to run the sample data load order file for loading
store configuration information:
./dataload.sh
../samples/DataLoad/StoreLocator/wc-dataload-store-locator.xml
dataload
..\samples\DataLoad\StoreLocator\wc-dataload-store-locator.xml
For more information about configuring and running the Data Load utility, see Configuring and running the Data Load utility.
Verifying results
Verify the Commerce Composer tool Store Locator information is loaded by reviewing the data load summary report. For more information about the location and contents of this summary report, see Verifying the results of the data load.
select * from STLOC;Ensure that
the data within the sample input files exists within the database table for the
appropriate store.Removing the sample data from the HCL Commerce database
To remove the sample data from your database, run the sample again with the value of
the delete column set to 1 for all entries in the files. When this
value is set to 1, the Data Load utility deletes the data identified in the CSV
files from the database.