Develop > Persistence layer > Data assets > Add a currency
Load currency information to the WebSphere Commerce database
- Verify the environment variables are set in...
WCDE_INSTALL/bin/setenv.batIf you loaded the sample catalog already, then these variables should be set correctly.
See Configure the massload utility for instructions on how to set the environment variables.
- To resolve entities, from a database command window, run...
cd WCDE_INSTALL/bin idresgen -dbname demo_dev -dbuser dbuser -dbpwd dbpwd -infile "infile" -outfile "outfile" -method mixed -schemaname schemanameWhere:
demo_dev The name of the database. dbuser The name of the user connecting to the database. dbpwd The password for dbuser. infile The full path and name of the XML input file. outfile The full path and name of the output file. schemaname The name of the schema.
- Run the massload utility:
massload -dbname demo_dev -dbuser dbuser -dbpwd dbpwd -infile "infile" -method sqlimport -schemaname schemanameWhere:
demo_dev The name of the database. dbuser The name of the user connecting to the database. dbpwd the password for dbuser. infile The full path and name of the XML input file. schemaname The name of the schema.
- Refresh the Currency Manager registry using the Registry window of the Administration Console.
- Manually remove pages showing the currency from the cache.
Related concepts
Related tasks
Add or changing a currency conversion
Add supported currencies
Changing decimal places
Add a customized currency code
Changing the currency prefix
Changing the currency suffix
Changing the rounding method
Changing the rounding multiple
Changing the currency symbol
Enable dual display of supported currencies
Changing the number pattern used to format currencies in JSP files
Related reference
Euro currency guidelines
Dual display guidelines