Migrating the Stores dynamic web project
To migrate your custom Stores project from WebSphere Commerce Version 7.0 to WebSphere Commerce Version 8.0. You need only to migrate custom projects.
The store migration process involves exporting the following assets as archive files, and then
importing the archive files:
- Custom static store assets
- Custom Java code
- Custom JSP files
Procedure
-
Export the Stores dynamic web project from a WebSphere Commerce Developer Version 7.0
development environment workspace.
- Open your WebSphere Commerce Developer Version 7.0 development environment workspace and open the J2EE perspective.
- Select the project that contains your customized code. Right-click, then select .
- Click Next.
- In the list of resources under Select the resources to export, clear the Stores check box, and select all contents under WebContent and src.
- Ensure the Create only selected directories option is selected.
- Click Browse and choose a path to save the exported archive file.
- Ensure Compress the contents of the file is selected.
- Click Finish to complete the export.
-
Importing your custom project.
- Manually copy all the files in the following directory from your version 7.0 development environment to the same directory on version 8.0 development environment: WCDE_installdir/workspace/WC/properties/tools/stores/store_dir
- Manually copy the following file from your version 7.0 development environment to the same directory on version 8.0 development environment: WCDE_installdir/workspace/WC/xml/member/MemberRegistrationAttribute.xml
-
In version 8.0, key splitting is enabled by default. This might expose JavaScript issues in
your store JSP pages. If you are migrating a store that was built before WebSphere Commerce
Version 7.0 Feature Pack 7, adjust any custom JSP files to use strings rather than integers for
primary IDs. The following examples display what to look for in your store JSP files and how to
adjust those files:
-
- WC_eardir/Stores.war/storedir/Widgets/CompareProduct/CompareProduct_UI.jspf
- Change
ToCompareProductJS.add2ShopCart(${catEntryType.key},1,${catEntryId});"
CompareProductJS.add2ShopCart('${catEntryType.key}',1,'${catEntryId}');"
-
- WC_eardir/Stores.war/storedir/ GiftCenter/searchRegistry/GiftRegistrySearchResultsDisplay.jsp
- Change
ToGRCommonUtilsJS.setCommonParameters(${langId},${storeId},${catalogId});
GRCommonUtilsJS.setCommonParameters('${langId}','${storeId}','${catalogId}');
-