Adding portal function to your store

In order to add portal function to an existing store built with WebSphere Commerce, do the following:

  1. Review the information in Guidelines for adding portal function to your store.
  2. Do the following on the WebSphere Commerce machine:
    1. Publish a store archive or use an existing store built on WebSphere Commerce.
    2. Locate the storename folder. By default it should be located in the following directory:
    3. Create a new directory under the storename folder. Call the new directory portal_jsp.
    4. Copy the JSP files from the store root to the portal_jsp folder. Requests from a non portal store front will continue to use the JSP files under the store root folder, and requests from a portal site will use the JSP files under the new portal_jsp folder.
    5. Convert the JSP files in the portal_jsp folder for use with Commerce Enabled Portal. For more information, see Converting existing JSP files to work with Commerce Enabled Portal.
  3. WebSphere Commerce development environment Do the following on the machine on which the Rational Application Developer with Portal Tools feature is installed:
    1. Navigate to the following directory:
      • temp/Portal/B2CPortletApp
      • Enterprise onlytemp/Portal/B2BPortletApp
    2. Depending on which business model you are following, copy the B2CPortletApp or B2BPortletApp directory to a directory of your choice on the WebSphere Portal machine.
    3. Locate the following file in the directory you copied to on the WebSphere Portal machine
      • temp/Portal/B2CPortletApp/WEB-INF/portlet_template.xml
      • Enterprise onlytemp/Portal/B2BPortletApp/WEB-INF/portlet_template.xml
    4. Open the file and update all store specific IDs (including storeID, catalog ID, parent_category_rn, and accountID) to match the IDs in your store.
    5. Save the file as portlet.xml in the following directory:
      • temp/Portal/B2CPortletApp/WEB-INF
      • Enterprise onlytemp/Portal/B2BPortletApp/WEB-INF
    6. Refer to Configuring WebSphere Commerce Developer for Commerce Enabled Portal. If you have not already installed the development environment, complete all of the steps. If you have installed the development environment, repeat the following steps:
      • 2g, h
      • 3 (all steps)
    7. In the portlet application project, change any URL references to commerce commands in the web.xml and portlet.xml files. For more information, see Creating a Commerce Enabled Portal portlet.
    8. Debug the portlets. For more information, see the WebSphere Portal information center.
    9. Export the WAR file and deploy it to the production system. For more information, see Deploying Commerce Enabled Portal.

Feedback