Migrate > Take the first steps after WebSphere Commerce migration > Migrating marketing > Migrating marketing from Management Center v6 Feature Pack 3 or 4 to Management Center v7



Review the latest sample e-Marketing Spot JSP snippet for Management Center

If the site has already been using Management Center Version 6 Feature Pack 3 or 4 for marketing management, the e-Marketing Spot JSP code on the store pages will work correctly with Management Center v7 Marketing tool. While you are not required to make any changes to the existing e-Marketing Spot JSP code, this procedure covers some optional steps to review new customization examples and remove some unnecessary code from existing e-Marketing Spot JSP code.


Procedure

  1. Review some customization examples embedded in the latest sample e-Marketing Spot JSP snippet for Management Center:

    1. Navigate to the latest sample e-Marketing Spot JSP snippet:

      • 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. Open the WebServiceeMarketingSpotDisplay.jsp file in an editor.

    3. Review the examples that have been added as comments in the file. The examples illustrate some potential customization functionality for e-Marketing Spots.

      To reach the first example, search for the following string:

      <%-- Example of specifying the customer is viewing a particular product.
      

      Additional examples in the file provide optional code snippets for:

      • Specify the customer is viewing a set of products

      • Include a value from a specific cookie

      • Include all cookies

      • Include substitution variables

    4. Close the WebServiceeMarketingSpotDisplay.jsp file.

  2. Optional: Remove some lines of code that are no longer required in the existing e-Marketing Spot snippets on the store pages:

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

      WCDE_installdir/workspace/Stores/WebContent/StoreDir/include/

    2. Create a backup copy of the eMarketingSpotDisplay.jsp file.

    3. Open the eMarketingSpotDisplay.jsp file.

    4. Remove the following lines of code from the file because they are no longer used:

      <%-- referral url --%>
         
      <wcf:param name="DM_RefUrl" value="${cookie.REFERRER.value}" />
      <%-- marketing context name value pair parameters --%>
         
      <c:forEach var="aPair" items="${marketingContext.nameValuePairs}">
             
      <wcf:param name="${aPair.key}" value="${aPair.value}" />
         
      </c:forEach>
      

    5. Save and close the updated eMarketingSpotDisplay.jsp file.

    6. Remove the same lines of code from any additional e-Marketing Spot snippets on the store pages. For example, some sample stores also include the StoreCatalogProductESpot.jsp file.

    7. Test the store to ensure that the updated e-Marketing Spot JSP code is working properly.

    8. Deploy all updated JSP files.


Previous topic:

Configure the site to support optional Management Center marketing features


+

Search Tips   |   Advanced Search