Class Name |
|
---|---|
Component(s) |
|
The ExcludeItemsInCartFilterDroplet
servlet bean allows you to filter items that are already in a shopper’s cart out of a list.
Input Parameters
collectionIdentifierKey
This value identifies the unfiltered collection. If it is not provided, the consultCache and updateCache parameters are forced to false.
filter
Any collection filter component.
profile
The value can be any profile repository item.
collection (Required)
The unfiltered collection.
consultCache
The string value can be “true” or “false”.
updateCache
The string value can be “true” or “false”.
Output Parameters
filteredCollection
The filtered collection.
errorMsg
An error message when processing errors occur.
Open Parameter
output
This tag is rendered once upon successful completion of the filter.
empty
This tag is rendered if the filtered collection is null or contains no objects.
error
This tag is rendered if an error occurs.
Example
The following JSP example uses the filteredCollection
parameter in ExcludeItemsInCart
to display a filtered list of upsell products.
<dsp:droplet name="/atg/commerce/collections/filter/droplet/ExcludeItemsInCart FilterDroplet"> <dsp:param name="collection" param="category.upsellProducts"/> <dsp:oparam name="output"> You may also like these<p> <dsp:droplet name="/atg/droplet/ForEach"> <dsp:param name="array" param="filteredCollection" /> <dsp:oparam name="output"> Product <dsp:valueof param="element.repositoryId"/><p> <dsp:valueof param="element.description"/><p> </dsp:oparam> </dsp:droplet> </dsp:oparam> </dsp:droplet>