Samples > Sample stores > Extended Sites starter store > Create a new asset store


Create a customized asset store

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


Procedure

  1. Open WebSphere Commerce Developer.

  2. Import the assets from the 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. Edit...

      • 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">
      

      The values will be different if you are working with the B2B direct store.

    3. Change the values to match the new asset store name. For example:

      <!ENTITY STORE_IDENTIFIER_RPS "CustomB2CStorefrontAssetStore">
      <!ENTITY STORE_DIR "CustomB2CStorefrontAssetStore">
      

    4. Save and close the file.

    5. Edit...

      • 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 the updated sar file to the following directory:

    • WC_INSTALL/starterstores/ExtendedSites

    • WCDE_INSTALL/starterstores/ExtendedSites


+

Search Tips   |   Advanced Search