Develop > Persistence layer > Data assets > Add a currency


Load currency information to the WebSphere Commerce database

  1. Verify the environment variables are set in...

    WCDE_INSTALL/bin/setenv.bat

    If 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.

  2. 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 schemaname   
    

    Where:

    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.

  3. Run the massload utility:

    massload -dbname demo_dev 
             -dbuser dbuser 
             -dbpwd dbpwd 
             -infile "infile" 
             -method sqlimport 
             -schemaname schemaname   
    

    Where:

    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.

  4. Refresh the Currency Manager registry using the Registry window of the Administration Console.

  5. Manually remove pages showing the currency from the cache.


Related concepts

Shop currency
Number usage


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


+

Search Tips   |   Advanced Search