You can enable the AND operation for multiple contracts so that shoppers must
be entitled to products under all contracts before they can purchase them. The default value is OR,
where shoppers can purchase products if they are entitled to them under only one
contract.
Before you begin
To change any properties in the contract component configuration file
(wc-component.xml), you must create a customized version of the file in a new
folder. The customized version of the file must contain only the changed properties.
Procedure
-
Open HCL Commerce Developer and switch to the Enterprise Explorer
view.
-
Create a custom contract component configuration file (wc-component.xml),
if one does not exist:
-
Go to the following directory
workspace_dir\WC\xml\config\
-
In the config folder, create a new
com.ibm.commerce.contract-ext folder so the path looks like this:
workspace_dir\WC\xml\config\com.ibm.commerce.contract-ext\
-
Create an empty wc-component.xml file in the
com.ibm.commerce.contract-ext folder. This file is your custom
wc-component.xml file.
-
Add the basic XML elements that are required for your custom
wc-component.xml file:
-
Open your empty custom wc-component.xml file in an XML editor.
-
Copy the following code snippet into the file:
<_config:DevelopmentComponentConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:_config="http://www.ibm.com/xmlns/prod/commerce/foundation/config"
xsi:schemaLocation="http://www.ibm.com/xmlns/prod/commerce/foundation/config ../xsd/wc-component.xsd ">
<_config:extendedconfiguration>
<_config:configgrouping name="MultipleContracts">
<_config:property name="operation" value="AND"/>
</_config:configgrouping>
</_config:extendedconfiguration>
</_config:DevelopmentComponentConfiguration>
-
Save and close the custom configuration file.
-
Test your configuration changes.