This JSP code snippet displays an e-Marketing Spot in a store page. This e-Marketing Spot code supports all types of campaign Web activity:
- Products, items and category suggestions
- Content
- Awareness advertisements
- Discount advertisements
- Coupons advertisements
- Merchandising Association - cross-sell and up-sell
If you intend to display only one type of the campaign Web activity in your e-Marketing Spot, sections of the code that will not be used can be removed.
The eMarketingSpotDisplay.jsp file is available under the following directory:
- WC_installdir/samples/Snippets/web/Marketing/Campaigns
WCDE_installdir\samples\Snippets\web\Marketing\Campaigns
Prerequisites
These two parameters are required by this code:
- emsName
- This file can be reused in different pages of the store by including it and giving a unique value for emsName, which should match exactly with an eMarketingSpot name that is defined in the Accelerator tool.
- catalogId
- catalogId needs to be passed in as it is required to build proper URL.
Usage
This is an example of how this file could be included into a page:
<c:import url="${jspStoreDir}include/eMarketingSpotDisplay.jsp"> <c:param name="emsName" value="ShoppingCartPage" /> <c:param name="catalogId" value="${WCParam.catalogId}" /> </c:import>