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:
sku- The SKU item.delimiter- Character to use as a separator between the different property values in the concatenated string. If you omit this parameter, a space is used as the delimiter.propertyListorproduct- You can either use thepropertyListparameter to specify the list of SKU properties to display (as a comma-separated list), or you can use theproductparameter specify the parent product of the SKU (in which case, the list of properties is takes from the product’sdisplayableSkuAttributesproperty).
Output parameter:
displayElement- The concatenated text string containing the property values. (You can specify a different name for this parameter through the optionaldisplayElementNameinput parameter.)
Open parameters:
output- The parameter to render if the output text string is not empty.empty- The parameter to render if the output text string is empty.
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> <dsp:oparam name="empty"> <p>There is no information available about this item. </dsp:oparam> </dsp:droplet>

