Updating store pages to use the e-Marketing Spot JSP sample for Management Center

If you previously used WebSphere Commerce Accelerator for marketing management and you have migrated to the Management Center Marketing tool, you must update any e-Marketing Spot code on your storefront with a different sample JSP snippet. This is required so that the e-Marketing Spots and the store work properly with the Management Center marketing services.

About this task

The sample e-Marketing Spot JSP snippet for Management Center is different from the e-Marketing Spot JSP snippet for WebSphere Commerce Accelerator. You must make a copy of the sample e-Marketing Spot JSP snippet for Management Center and paste the contents into your existing e-Marketing Spot snippets. The sample e-Marketing Spot JSP snippet for Management Center is provided in the WebServiceeMarketingSpotDisplay.jsp file that installs with WebSphere Commerce. The sample JSP snippet is not store-specific.

Procedure

  1. Navigate to the sample e-Marketing Spot JSP snippet for Management Center:
    • WebSphere Commerce DeveloperWCDE_installdir\samples\Snippets\web\Marketing\Campaigns\WebServiceeMarketingSpotDisplay.jsp
    • WebSphere Commerce EnterpriseWebSphere Commerce - ExpressWebSphere Commerce ProfessionalWC_installdir\samples\Snippets\web\Marketing\Campaigns\WebServiceeMarketingSpotDisplay.jsp
  2. Copy the contents of the WebServiceeMarketingSpotDisplay.jsp file.
    This file contains the sample JSP snippet to use with the Management Center Marketing tool; this file is provided only so that you can copy and paste its contents into your existing e-Marketing Spot snippets.
  3. Go to the include directory at the following location in your development environment:
    WebSphere Commerce DeveloperWCDE_installdir/workspace/Stores/WebContent/StoreDir/include/
  4. Create a backup copy of the eMarketingSpotDisplay.jsp file.
  5. Replace the contents of the eMarketingSpotDisplay.jsp file with the contents you copied from the WebServiceeMarketingSpotDisplay.jsp file in a previous step.
  6. Save the eMarketingSpotDisplay.jsp file with the updated code.
  7. Update any additional e-Marketing Spot snippets on your store pages. For example, some sample stores also include the StoreCatalogProductESpot.jsp file.
  8. Test the store to ensure that the updated e-Marketing Spot JSP code is working properly.
  9. Deploy all updated JSP files.