WebSphere Commerce Enterprise

Creating a customized asset store

After selecting an existing storefront asset store, you can safely customize the asset store in your development environment.

Procedure

  1. Open WebSphere Commerce Developer.
  2. Import the assets from your working directory into the development environment.
  3. Modify the JSP pages as needed.
  4. Modify the XML files requiring customization in the sar file.
  5. Several files must be customized that contain data that identifies the store archive file and provides publishing parameters.
    1. Open the following file in a text editor:
      • working_directory\WEB-INF\stores\StoreAssetsDir\data\ForeignKeys.DTD
    2. Search for lines that look like these:
      
      <!ENTITY STORE_IDENTIFIER_RPS "ConsumerDirectStorefrontAssetStore">
      <!ENTITY STORE_DIR "ConsumerDirectStorefrontAssetStore">
      
      Note: The values will be different if you are working with the B2B direct store.
    3. Change the values to match your new asset store name. For example:
      
      <!ENTITY STORE_IDENTIFIER_RPS "CustomB2CStorefrontAssetStore">
      <!ENTITY STORE_DIR "CustomB2CStorefrontAssetStore">
      
    4. Save and close the file.
    5. Open the following file in a text editor:
      • working_directory\WEB-INF\stores\StoreAssetsDir\data\Keys.DTD
    6. Change the value of STORE_IDENTIFIER_RPS to match the value that you entered in the previous file.
    7. Save and close the file.
  6. Repackage the sar file.
  7. Copy your updated sar file to the following directory:
    • WC_installdir/starterstores/ExtendedSites
    • WebSphere Commerce DeveloperWCDE_installdir/starterstores/ExtendedSites