Migrate > Take the first steps after WebSphere Commerce migration > Migrating marketing > Migrating marketing from WebSphere Commerce Accelerator to Management Center v7



Update 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, update any e-Marketing Spot code on the 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.

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 the 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 Developer WCDE_installdir\samples\Snippets\web\Marketing\Campaigns\WebServiceeMarketingSpotDisplay.jsp

    • WebSphere Commerce EnterpriseWebSphere Commerce ProfessionalWebSphere Commerce - Express WC_INSTALL\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 the existing e-Marketing Spot snippets.

  3. Navigate to the include directory at the following location in the development environment:

    WCDE_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 the 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.


Previous topic:

Configure the site to support optional Management Center marketing features


Next topic:

Options for managing content spots after moving to Management Center


+

Search Tips   |   Advanced Search