Class Name |
|
---|---|
Component(s) |
|
Servlet beans instantiated from the GiftitemDroplet
class allow customers to buy or remove items from their own personal gift lists. Two Core Commerce servlet beans have been instantiated from GiftitemDroplet
; they are BuyItemFromGiftlist
and RemoveItemFromGiftlist
.
Input Parameters
giftId (Required)
The ID of the gift.
giftlistId (Required)
The ID of the gift list.
Output
None.
Open Parameters
output
The open parameter rendered if item is bought or removed successfully from list.
error
The open parameter rendered if an error occurs during processing.
Example
The following code example demonstrates how to use the RemoveItemFromGiftlist
component to remove items from a customer’s personal gift list.
<dsp:droplet name="/atg/dynamo/droplet/IsEmpty"> <dsp:param param="giftId" name="value"/> <dsp:oparam name="false"> <dsp:droplet name="/atg/commerce/gifts/RemoveItemFromGiftlist"> <dsp:param param="giftlistId" name="giftlistId"/> <dsp:param param="giftId" name="giftId"/> </dsp:droplet> </dsp:oparam> </dsp:droplet>