Defining the default store preview store URL and URL alias
You can define a default store URL and store URL alias to display as options when a business users is launching store preview. By definining these settings, business users do not need to know or enter the store URL or URL alias when they launch store preview.
Procedure
- Open WebSphere Commerce Developer and switch to the Enterprise Explorer view.
- Expand .
- Open the StorePreviewAliases.xml file for editing.
-
Add or change the URL and URL alias for the store that you want to display in the
Store Preview Options dialog in Management Center.
Note: During the preview, the Management Center validates the URL added. If the URL is invalid, the Management Center does not display it in the preview dialog. Ensure that URLs added in the StorePreviewAlias.xml are valid.For example, the following code snippet defines the store URL and store URL alias for two stores,
"MyStore"
and"MyOtherStore"
.<storeAlias name="MyStore"> http://localhost/webapp/wcs/stores/servlet/StoreView?storeId=10005 </storeAlias> <storeAlias name="MyOtherStore"> http://localhost/webapp/wcs/stores/servlet/StoreView?storeId=10006 </storeAlias>
Note: The maximum number of store URLs and store URL aliases that can display in the Store Preview Options dialog is defined by themaximumStoresinList
variable in the ConfigProperties.xml file. This file defines all of the default settings that display in the Management Center Preferences dialog. - Save and publish your changes.