Class Name |
|
|---|---|
Component(s) |
|
ItemPricingDroplet is an abstract class that is used as the base class for pricing items and displaying the results to the customer. Both PriceEachItemDroplet and PriceItemDroplet extend this class.
If you extend this class, you must override the performPricing method to return the CommerceItem(s) that have been priced. These items are then bound into the output open parameter with the default name element.
Input Parameters
The following optional parameters are permitted:
pricingModelsA collection of pricing models (promotions) that should be used to price the items. If this value is not supplied, then by default a collection of pricing models are used from the user’s PricingModelHolder component. This component is resolved through the userPricingModelsPath property.
localeThe locale in which the pricing should take place.
profileThe user for whom pricing is performed. If this value is not supplied, then the profile is resolved through the profilePath property.
productThe object that represents the product definition of the item to price. Typically, the items that are priced are SKUs. In that case, this is the product that encompasses all of the SKUs.
elementNameThe name to use as the parameter set within the output open parameter.
Output Parameters
element
The priced CommerceItem or collection of priced CommerceItems. This parameter name can be changed by setting the elementName input parameter.
Open Parameters
output
The open parameter rendered if the CommerceItem(s) has been successfully priced.
Example
None. ItemPricingDroplet is an abstract class that is meant to be subclassed. Refer to PriceEachItemDroplet and PriceItemDroplet for JSP examples.

