Introduced in Feature Pack 2

Modifying the Madisons starter store to display the warranty information

Introduced in Feature Pack 2 In this lesson, the Madisons starter store is customized to display the warranty information with their associated catalog entries. That is, since the mapping is complete, they are simply extracted and displayed in the Madisons starter store.

About this task

Procedure

  1. Go to the Stores\WebContent\Madisons\Snippets\ReusableObjects\ directory.
  2. Open the CatalogEntrySearchThumbnailDisplay.jspf file for editing.
  3. Locate the following code snippet:
    </c:choose>
    </div>
    </c:when>
    <c:when test="${pageView == 'detailed'}">
  4. Add the following code before </c:when> in the above location:
    <div>
    <c:forEach var="userDataField" items="${catEntry.userData.userDataField}">
    <c:if test="${userDataField.typedKey == 'WarrantyTerm'}">
    <b>Warranty: ${userDataField.typedValue} </b>
    
    </c:if>
    </c:forEach>
    </div>
  5. Save your changes and close the file.
  6. Restart the WebSphere Commerce server.
  7. Verify the warranty information in the storefront:
    1. Open the Madisons starter store.
    2. Click Advanced Search.
    3. Enter comprehensive as the search term.
    4. Select located in product name and description.
    5. Click Search.
      The search results page should include warranty information:
      Madisons starter store warranty information

Results