Changing the default WebSphere Commerce Accelerator home page

To change the default WebSphere Commerce Accelerator home page to a custom page, do the following:

  1. Depending on the home page you want to change, open the appropriate WebSphere Commerce Accelerator home page file as follows:
    • For the consumer direct home page, open CommerceAcceleratorB2C.xml
    • For the B2B direct home page, open CommerceAcceleratorB2B.xml
    • For the value chain catalog profile home page, open CommerceAcceleratorCPS.xml
    • For the value chain home pages:
      • Hosting home pages:
        • For the hosting hub home page, open CommerceAcceleratorHCP.xml
        • For the hosted storefront asset store home page, open CommerceAcceleratorMPS.xml
        • For the hosted store home page, open CommerceAcceleratorMHS.xml
      • Demand chain home pages:
        • For the channel hub home page, open CommerceAcceleratorCHS.xml
        • For the reseller storefront asset store home page, open CommerceAcceleratorCPS.xml
        • For the hosted store for resellers home page, open CommerceAcceleratorRHS.xml
      • Supply chain home pages:
        • For the supplier hub home page, open CommerceAcceleratorSCP.xml
        • For the supplier asset store home page, open CommerceAcceleratorSPS.xml
        • For the hosted store for suppliers home page, open CommerceAcceleratorSHS.xml

    The default location for all home page files is as follows:
    AIXLinuxSun Solaris Operating EnvironmentWindowsWC_installdir/xml/tools/common
    iSeries/QIBM/ProdData/WebCommerce/xml/tools/common

    WebSphere Commerce StudioWCDE_installdir\xml\tools\common

  2. In the file, search for the homepage parameter. Note that the default WebSphere Commerce Accelerator home page file location and name are /CommerceAccelerator/wctools.war/tools/common (under the WebSphere Application Server installed application Enterprise Archive (EAR) directory) and AcceleratorHomeXXX.jsp, where XXX is the three character acronymn for the home page you want to work with (for example, B2B as in AcceleratorHomeB2B.jsp).
    Change the default home page file name, location, or both, to your custom home page file name or URL as follows:
    • If your custom home page is located in the same directory as the default WebSphere Commerce Accelerator home page file, do the following:
      1. Copy the custom home page into the following directory:

        AIXLinuxSun Solaris Operating EnvironmentWindows WAS_installdir\installedApps\cell_name\WC_ instance.ear\CommerceAccelerator.war\tools\common

        iSeriesWAS_userdir/cell_name/WC_instance.ear/CommerceAccelerator.war/tools/common
        WebSphere Commerce StudioWAS_installdir\installedApps\cell_name\ WC_instance.ear\CommerceAccelerator.war\tools\common where:

        • cell_name is the WebSphere Application Server cell that your server is part of. The default cell name is the same as the host name of the system.
        • instance is the name of the WebSphere Commerce instance.
      2. In the XML file you worked with in step 1, change the homepage parameter value to one of the following:
        • If the home page is a JSP file, change the parameter to the following:
          homepage="/webapp/wcs/tools/servlet/tools/common/custom_home_page.jsp"
          

          where custom_home_page is the name of your custom JSP file for the WebSphere Commerce Accelerator home page (for example, customhomepage.jsp).

        • If the home page is a file other than a JSP file (such as an HTML file), change the parameter to the following:
          homepage="/wcs/tools/common/custom_home_page"
          

          where custom_home_page is the name of your custom file, including its extension, for the WebSphere Commerce Accelerator home page (for example, if the home page is an HTML file, the file may be customhomepage.htm).

    • If your custom home page is located in a different directory from the default WebSphere Commerce Accelerator home page file (such as in /homepage), in the XML file you worked with in step 1, change the homepage parameter value to the following:
      homepage="/homepage/custom_home_page"
      

      where custom_home_page is the name of your custom file for the WebSphere Commerce Accelerator home page.

    • If your custom home page is a Web site, in the XML file you worked with in step 1, change the homepage parameter value to the following:
      homepage="URL"
      where URL is the Web page for the WebSphere Commerce Accelerator home page, with the https:// prefix (for instance, https://www.myhomepage.com) to ensure that the page is in SSL (secure) mode.
      Note: Due to the browser security restrictions, if you use an external URL as your home page (such as http://www.myhomepage.com), the WebSphere Commerce Accelerator does not check the loading status of the content frame, and the progress indicator does not display while the Web page is loading.
  3. Save the XML file you worked with in step 1.
  4. Restart the WebSphere Commerce Server.