Class Name

atg.commerce.pricing.ItemPricingDroplet

Component(s)

None

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:

pricingModels
A 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.

locale
The locale in which the pricing should take place.

profile
The user for whom pricing is performed. If this value is not supplied, then the profile is resolved through the profilePath property.

product
The 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.

elementName
The 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.


Copyright © 1997, 2013 Oracle and/or its affiliates. All rights reserved. Legal Notices