Tutorials > WebSphere Commerce search > Indexing ratings data in WebSphere Commerce search from an external source

< Previous


Modify the Madisons starter store to display the ratings information

In this lesson, the Madisons starter store is customized to display the warranty information with their associated catalog entries.


Procedure

  1. Open the following file:

    • Stores\WebContent\Madisons\Snippets\ReusableObjects\CatalogEntrySearchThumbnailDisplay.jspf

  2. Add the following code in the location where to display the ratings:

    <div>
    <c:forEach var="userDataField" items="${catEntry.userData.userDataField}">
    <c:if test="${userDataField.typedKey == 'Rating'}">
    <b>User Rating: ${userDataField.typedValue}
    </b>
    </c:if>
    </c:forEach>
    </div>
    

  3. Save the changes and close the file.

  4. Restart the WebSphere Commerce server.

  5. The storefront should now include the ratings information:


Related concepts

Madisons starter store

Related reference

Work with Madisons starter store pages

< Previous


+

Search Tips   |   Advanced Search