Creating a customized asset store
After selecting an existing storefront asset store, you can safely customize the asset store in your development environment.
Procedure
- Open WebSphere Commerce Developer.
- Import the assets from your working directory into the development environment.
- Modify the JSP pages as needed.
- Modify the XML files requiring customization in the sar file.
- Several files must be customized that contain data that
identifies the store archive file and provides publishing parameters.
- Open the following file in a text editor:
- working_directory\WEB-INF\stores\StoreAssetsDir\data\ForeignKeys.DTD
- 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. - Change the values to match your new asset store name.
For example:
<!ENTITY STORE_IDENTIFIER_RPS "CustomB2CStorefrontAssetStore"> <!ENTITY STORE_DIR "CustomB2CStorefrontAssetStore">
- Save and close the file.
- Open the following file in a text editor:
- working_directory\WEB-INF\stores\StoreAssetsDir\data\Keys.DTD
- Change the value of STORE_IDENTIFIER_RPS to match the value that you entered in the previous file.
- Save and close the file.
- Open the following file in a text editor:
- Repackage the sar file.
- Copy your updated sar file to the following directory:
- WC_installdir/starterstores/ExtendedSites
- WCDE_installdir/starterstores/ExtendedSites