To configure WebSphere Commerce so that promotions can be shared among stores:
- Create a store relationship between the two stores.
- Create a self-referencing store relationship. Without this relationship definition, promotions belonging to a customer-facing store are not evaluated. Furthermore, in cases where a customer-facing store has multiple store relationships defined, this self-referencing relationship definition specifies the relative priority of the various promotion sources. The priority is determined by the relative values in the SEQUENCE column.
- Configure the promotion engine to use the sequence builder and the agenda builder implementations that exploit the promotions store relationship. To configure the promotions engine:
- Update the WCSPromotionEngineConfig.xml file, located in the following directory:
- WC_installdir/instances/instance_name/xml/PromotionEngineConfiguration/
WCDE_installdir\conf\xml\PromotionEngineConfiguration\
- Locate the following XML element:
<PromotionExecutionSequenceBuilder impl="com.ibm.commerce.marketing.promotion.runtime.DefaultSequenceBuilder"/>
- Change it to match the following:
<PromotionExecutionSequenceBuilder impl="com.ibm.commerce.marketing.promotion.runtime.StorePathSupportedSequenceBuilder" />
- Locate the following XML element:
<PromotionExecutionAgendaBuilder impl="com.ibm.commerce.marketing.promotion.runtime.DefaultAgendaBuilder">
- Change it to match the following:
<PromotionExecutionAgendaBuilder impl="com.ibm.commerce.marketing.promotion.runtime.StorePathSupportedAgendaBuilder">
- Save the file.
- Update the WCSPromotionEngineConfig.xml file, located in the following directory:
- Stop and restart WebSphere Commerce.