If your site has already been using Management Center Version
6 Feature Pack 3 or 4 for marketing management, the e-Marketing Spot
JSP code on your store pages will work correctly with Management Center
Version 7 Marketing tool. While you are not required to make any changes
to your 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
- Review some customization examples embedded in the latest
sample e-Marketing Spot JSP snippet for Management Center:
- Navigate to the latest sample e-Marketing Spot JSP snippet:
- WCDE_installdir\samples\Snippets\web\Marketing\Campaigns\WebServiceeMarketingSpotDisplay.jsp
- WC_installdir\samples\Snippets\web\Marketing\Campaigns\WebServiceeMarketingSpotDisplay.jsp
- Open the WebServiceeMarketingSpotDisplay.jsp file
in an editor.
- 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:
- Specifying the customer is viewing a set of products
- Including a value from a specific cookie
- Including all cookies
- Including substitution variables
- Close the WebServiceeMarketingSpotDisplay.jsp file.
- Optional: Remove some lines of
code that are no longer required in the existing e-Marketing Spot
snippets on your store pages:
- Navigate to the include directory
at the following location in your development environment:
WCDE_installdir/workspace/Stores/WebContent/StoreDir/include/
- Create a backup copy of the eMarketingSpotDisplay.jsp file.
- Open the eMarketingSpotDisplay.jsp file.
- 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>
- Save and close the updated eMarketingSpotDisplay.jsp file.
- Remove the same lines of code from any additional e-Marketing
Spot snippets on your store pages. For example, some sample stores
also include the StoreCatalogProductESpot.jsp file.
- Test the store to ensure that the updated e-Marketing
Spot JSP code is working properly.
- Deploy
all updated JSP files.