When it adds a CommerceItem
to an order, the atg.commerce.order.purchase.CartModifierFormHandler
sets the value of the item’s siteId
property. The value is typically the site that was current when the item was added to the order. In some cases, though, it may be a different site; for example, if the CommerceItem
is a cross-sell associated with a different site, this property will contain the site ID of the associated site.
Order items in the Order Repository have two properties for tracking the sites they are associated with:
creationSiteId
– Contains the site ID of the firstCommerceItem
added to the order.siteId
– If the order has not been submitted, this property contains the site ID of the lastCommerceItem
added to the order.CartModifierFormHandler
updates this property each time aCommerceItem
is added to the order or the quantity of an item is updated. When the order is submitted,CommitOrderFormHandler
orExpressCheckoutFormHandler
sets this property to the site ID of the site from which the order was submitted.
The OrderLookup
, ScheduledOrderLookup
, and ApprovalRequiredDroplet
servlet beans have siteIds
and siteScope
input parameters to determine which sites to look up orders for. (See Site Scope for information about these parameters.)