When you display a product, you may also want to display information about the SKUs associated with it. You can use the atg.commerce.catalog.DisplaySkuProperties servlet bean to do this. This servlet bean takes a SKU item as input, and renders a set of specified properties as a concatenated string. For example, you could use DisplaySkuProperties to display the displayName, price, and description properties of the SKU.

The DisplaySkuProperties takes the following input parameters:

Output parameter:

Open parameters:

The following example illustrates using the DisplaySkuProperties servlet bean. In this example, the SKU is passed to DisplaySkuProperties by another servlet bean that DisplaySkuProperties is nested in.

<dsp:droplet name="/atg/commerce/catalog/DisplaySkuProperties">
  <dsp:param value=" | " name="delimiter"/>
  <dsp:param param="element" name="sku"/>
  <dsp:param value="displayName,listPrice,description" name="propertyList"/>
  <dsp:oparam name="output">
  <p><dsp:valueof param="displayElement"/>
  <dsp:oparam name="empty">
  <p>There is no information available about this item.
loading table of contents...