Gift wrapping in ATG Store is applied to the entire order. It is not possible to select gift wrap for individual items in an order.
The /cart/gadgets/giftWrap.jsp
gadget on the shopping cart page invokes the /atg/store/droplet/ShowGiftWrap
servlet bean to determine if gift wrapping should be available for the order. This component is a CRS-specific servlet bean of class atg.projects.store.droplet.ShowGiftWrap
.
If the giftWrapEligible
property is true
for every hardgood SKU in the order (i.e., everything except for gift certificates) the ShowGiftWrap
servlet bean renders the /cart/gadgets/giftWrapRenderer.jsp
gadget, which displays the gift wrap options:
StoreCartModifierFormHandler
manages adding the gift wrap and gift note to the order. Gift Wrap is an actual SKU that is added to the order if gift wrapping is selected.