Enable a Subscribe link for a wish list feed in the Aurora starter store
The Aurora starter store includes a feature that allows shoppers to subscribe to wish list feeds. To familiarize yourself with the Aurora implementation, we can enable and test the Subscribe link for the wish list. Then, consider a similar implementation for our own store.The Subscribe link is included on the Personal Wish List page, in the upper-right corner of the wish list:
When a customer clicks the Subscribe link, the wish list feed displays in a browser. To subscribe to the feed, the customer can copy the URL and paste it into a feed reader.
Procedure
- For the Aurora starter store that you published, use the Store Management tool to enable the following store functions on the Wish Lists and Feeds tab:
- Enable wish lists
- E-Marketing Spot feeds
- Open WebSphere Commerce Developer and switch to the Enterprise Explorer view.
- Open the wish list JSP file at the following path:
/Stores/WebContent/Aurora/UserArea/ServiceSection/InterestItemListSubsection/WishListResultDisplay.jsp
- Within the JSP file, find the following code snippet:
<c:url var="feedURL" value="${restURLScheme}://${pageContext.request.serverName}:${restURLPort}${restURI}/stores/${WCParam.storeId}/GiftLists/${selectedWishListId} ?guestAccessKey=${defaultWishList.accessSpecifier.guestAccessKey}"> <c:param name="responseFormat" value="atom" /> <c:param name="langId" value="${langId}" /> <c:param name="currency" value="${CommandContext.currency}" /> </c:url> <c:import url="/${sdb.jspStoreDir}/Widgets/ESpot/include/RemoteWidgetButtons.jsp"> <c:param name="showFeed" value="false" /> 1 <c:param name="feedURL" value="${feedURL}" /> </c:import>
- In the line of code that is labeled 1 , change the value from false to true, as shown here:
<c:param name="showFeed" value="true" />
- Save and close the JSP file.
- View and test the Subscribe link:
- Launch store preview.
- Register as a test customer with the store.
- Create a wish list that contains a few products.
- On the Personal Wish List page, view the wish list. Above the wish list, the Subscribe link is displayed.
- Click the Subscribe link. The browser displays the feed in the manner the browser supports. For example, some browsers display the formatted feed whereas others display the XML code. Either way, the feed URL displays in the address bar.
- To subscribe to the feed, copy the feed URL and paste it into a feed reader.
Related concepts
E-Marketing Spots
Related tasks
Enable a Subscribe link for an e-Marketing Spot feed in the Aurora starter store
Developing Aurora starter store pages
Related reference
Personal Wish List page