To create a ProductSkuRenderer
, modify the DCS-CSR-UI/config/atg/commerce/custsvc/ui/
component path. The render components that should be extended are
renderers/ProductSkuRendereratg.commerce.csr.rendering.RenderInfo
with atg.commerce.csr.rendering.
.
SkuRenderInfo
Create new properties that describe how to render each table column. Property names can be actual SKU property names or symbolic names such as price
and status
. Symbolic properties, or property names that do not represent actual properties of the SKU, specify a JSP in the renderer property.
The ProductSkuRenderer
uses the standard pageOptions
property to specify form handler, URL properties and other information. The pageOptions
properties include:
pageOptions=\
actionRenderer=/renderers/order/sku/skuBrowserAction.jsp,\
giftlistActionRenderer=/renderers/gift/skuGiftlistBrowserAction.jsp,\
formHandler=/atg/commerce/custsvc/order/CartModifierFormHandler,\
successPanelStacks=cmcCatalogPS,\
errorPanelStacks=cmcCatalogPS,\
successUrlProperty=addItemToOrderSuccessURL,\
errorUrlProperty=addItemToOrderErrorURL
The properties
variable includes:
properties=viewItem,id,displayName,price,status,quantity
By default, the ProductSkuRenderer
page uses skuItem.
propertyName
to display the SKU property.
The property renderer specifies optional JSP files that are used to render named cells:
renderer=\
viewItem=/renderers/order/sku/viewItem.jsp,\
price=/renderers/order/sku/skuPrice.jsp,\
status=/renderers/order/sku/inventoryStatus.jsp,\
quantity=/renderers/order/sku/quantityInput.jsp,\
id=/renderers/order/sku/sku.jsp,\
displayName=/renderers/order/sku/name.jsp
Each fragment renders its column header and column cell
<c: choose>
<c: when test="${area == 'cell'}">
render cell content
</c: when>
<c: when test="${area == 'header'}">
render column header content
</c: when>
</c: choose>