Technote

(troubleshooting)
Category Recommendation Web Activity shows categories from current catalog only
Problem(Abstract)
Your storefront uses multiple sales catalogs, and you have created a Web Activity with an activity type of Category Recommendation with categories from different catalogs. However, after configuration, the Web activity shows up on the storefront as an e-Marketing spot, and it only displays categories from the current catalog (catalog_id in the browser URL).
Cause The default behavior of the e-Marketing spot is to display categories and products from the current catalog only. However you can configure the various filters of the e-Marketing spot to change this behavior. Resolving the problem To allow an e-Marketing spot to display categories from multiple catalogs, and not just the current one, then filter disable is called CATEGORY_IN_CURRENT_CATALOG.


This CATEGORY_IN_CURRENT_CATALOG maps to a constant value of 17.
You can disable this filter (and not restrict to the e-spot current catalog only) by adding this code into the JSP snippet which calls the default bean.

For example, the default snippet to display an e-Marketing Spot is:
WC_eardir\Stores.war\storedir\include\eMarketingSpotDisplay.jsp

In this JSP, locate the end of this useBean snippet, and add the following code before the </wcbase:useBean> tag:
<c:set value="17" target="${eMarketingSpot}" property="resultFilterOff"/>


For example (see line second from the bottom):
<c:choose>
<c:when test="${param.maxNumDisp>0}">
<c:set value="${param.maxNumDisp}" target="${eMarketingSpot}" property="maximumNumberOfCatalogEntries" />
<c:set value="${param.maxNumDisp}" target="${eMarketingSpot}" property="maximumNumberOfCategories" />
<c:set value="${param.maxNumDisp}" target="${eMarketingSpot}" property="maximumNumberOfCollateral" />
<c:set value="${param.maxNumDisp}" target="${eMarketingSpot}"
property="maximumNumberOfAssociateCatalogEntries" />
</c:when>
<c:otherwise>
<c:set value="4" target="${eMarketingSpot}" property="maximumNumberOfCatalogEntries" />
<c:set value="4" target="${eMarketingSpot}" property="maximumNumberOfCategories" />
<c:set value="3" target="${eMarketingSpot}" property="maximumNumberOfCollateral" />
<c:set value="4" target="${eMarketingSpot}" property="maximumNumberOfAssociateCatalogEntries" />
</c:otherwise>
</c:choose>
<c:set value="17" target="${eMarketingSpot}" property="resultFilterOff"/>
</wcbase:useBean>
Cross Reference information
Segment Product Component Platform Version Edition
Commerce WebSphere Commerce Business Edition Configuration AIX, Linux, Solaris, Windows 5.6, 5.6.1, 5.6.1.1, 5.6.1.2, 5.6.1.3 Business Edition
Commerce WebSphere Commerce - Express Configuration AIX, Linux, Solaris, Windows 5.6, 5.6.1, 5.6.1.1, 5.6.1.2, 5.6.1.3, 6.0, 6.0.0.1, 6.0.0.2, 6.0.0.3, 6.0.0.4 Express
Commerce WebSphere Commerce Professional Edition Configuration AIX, Linux, Solaris, Windows 5.6, 5.6.1, 5.6.1.1, 5.6.1.2, 5.6.1.3, 6.0, 6.0.0.1, 6.0.0.2, 6.0.0.3, 6.0.0.4 Professional Edition
Commerce WebSphere Commerce Developer Enterprise Configuration AIX, Linux, Solaris, Windows 6.0, 6.0.0.1, 6.0.0.2, 6.0.0.3, 6.0.0.4
Commerce WebSphere Commerce Developer Business Edition Configuration AIX, Linux, Solaris, Windows 5.6, 5.6.1, 5.6.1.1, 5.6.1.2, 5.6.1.3 Developer Business Edition
Commerce WebSphere Commerce Developer Professional Edition Configuration AIX, Linux, Solaris, Windows 5.6, 5.6.1, 5.6.1.1, 5.6.1.2, 5.6.1.3, 6.0, 6.0.0.1, 6.0.0.2, 6.0.0.3, 6.0.0.4 Developer Professional Edition
Commerce WebSphere Commerce Developer Express Configuration AIX, Linux, Solaris, Windows 5.6, 5.6.1, 5.6.1.1, 5.6.1.2, 6.0, 6.0.0.1, 6.0.0.2, 6.0.0.3, 6.0.0.4 Developer Express
   

Document Information

Current web document: http://www.ibm.com/support/docview.wss?uid=swg21285776