Commerce allows you to control which sites are allowed to access any given gift list. This functionality allows more than one site to access the same list, effectively letting the sites share the list. Gift list access is controlled by the /atg/commerce/gifts/GiftlistManager
component’s siteScope
setting. Out of the box, Commerce sets the GiftlistManager.siteScope
setting to all
, so all gift lists are shared by all sites. Commerce Reference Store’s Store.Estore
module modifies this setting and makes the assumption that stores that share shopping carts should also share gift lists, so it sets the siteScope
property in the /atg/commerce/gifts/GiftlistManager.properties
file as follows:
siteScope=atg.ShoppingCart
This setting dictates that the current site can access its own gift lists as well as any gift lists that are affiliated with sites that share a shopping cart with the current site. For example, in Commerce Reference Store, ATG Store US and ATG Home share a shopping cart, therefore, when ATG Store US is the current site, it can access gift lists affiliated with ATG Store US and ATG Home. ATG Store US cannot access gift lists affiliated with ATG Store Germany because it does not share a shopping cart with ATG Store Germany.
Note that wish lists are always universal. This is because a customer can only have one wish list, so all sites must be able to access it. Commerce provides filtering functionality that allows you to filter the items in a wish list to show only those that are appropriate for the current site context.
Notes:
While Commerce Reference Store uses the shopping cart
ShareableType
to control gift list activity, you can use the ID of anyShareableType
component you have created in its stead.See the ATG Commerce Programming Guide for more information on using gift and wish lists in a multisite environment.