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
- Open WebSphere Commerce Developer.
- Import the assets from the 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.
- Edit...
- 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">
The values will be different if you are working with the B2B direct store.
- Change the values to match the new asset store name. For example:
<!ENTITY STORE_IDENTIFIER_RPS "CustomB2CStorefrontAssetStore"> <!ENTITY STORE_DIR "CustomB2CStorefrontAssetStore">
- Save and close the file.
- Edit...
- 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.
- Repackage the sar file.
- Copy the updated sar file to the following directory:
- WC_INSTALL/starterstores/ExtendedSites
- WCDE_INSTALL/starterstores/ExtendedSites