Commerce includes a ShareableType
component, /atg/commerce/ShoppingCartShareableType
, which is of class atg.multisite.NucleusComponentShareableType
. This component is configured to manage the sharing of the shopping cart and the product comparisons list:
paths=/atg/commerce/ShoppingCart,\
/atg/commerce/catalog/comparison/ProductList
If you want sharing of these components to be managed independently, you can create separate ShareableType
components for them. To do this:
Remove the
ProductList
component from thepaths
property ofShoppingCartShareableType
.Create a separate component of class
NucleusComponentShareableType
and set itspaths
property to/atg/commerce/catalog/comparison/ProductList
.Register the new component with the
/atg/multisite/SiteGroupManager
component by adding it to that component’sshareableTypes
property. For example:
shareableTypes+=/myShareableTypes/ProductListShareableType