Class Name |
|
---|---|
Component(s) |
|
The ShipItemRelPrice
servlet bean returns a price for a ShippingGroupCommerceItemRelationship
. It looks at the range of the ShippingGroupCommerceItemRelationship
and returns the sum of the amounts of the DetailedItemPriceInfo
objects that apply to the range.
Refer to the Working With Purchase Process Objects chapter in the Core Commerce Programming Guide for more information about ShippingGroupCommerceItemRelationship
and Range
objects. Refer to the Using and Extending Pricing Services chapter of the Core Commerce Programming Guide for more information about the DetailedItemPriceInfo
price holding class.
Input Parameters
shipItemRel (Required)
The ShippingGroupCommerceItemRelationship
for which you want a price.
propertyName
The property of the individual DetailedItemPriceInfo
objects used to calculate the price of the ShippingGroupCommerceItemRelationship
. The default property is amount
.
Output Parameters
price
The price of the ShippingGroupCommerceItemRelationship
.
error
Any exception that may have occurred while processing the price of the ShippingGroupCommerceItemRelationship
.
Open Parameters
output
The open parameter rendered if the price is processed successfully.
error
The open parameter rendered if an error occurs.
Example
<dsp:droplet name="/atg/commerce/pricing/ShipItemRelPrice"> <dsp:param param="shipItemRel" name="shipItemRel"/> <dsp:oparam name="output">Price = <dsp:valueof param="price" converter="currency">no price</dsp:valueof> </dsp:oparam> </dsp:droplet>