Develop > Presentation layer > Customize marketing > Work with Product Advisor > Create a metaphor XML input file > Prepare a Guided Sell metaphor
Insert a constraint element
Constraint elements can be inserted into answer elements.
To insert a constraint element:
Procedure
- Insert a <constraint> element between the begin and end tags of the answer element.
- Place the following elements between the constraint begin and end tags:
<pfReference></pfReference> <columnName></columnName> <operation></operation> <opValueType></opValueType> <opVal></opVal>
For information about the content for these tags, refer to the following topics:
- Changing the pfReference setting
- Changing the columnName setting
- Changing the operation setting
- Changing the opValueType setting
- Changing the opVal setting
- You can create additional <opVal> elements if required to support multiple languages.
To create an additional <opVal> repeat step 2, but insert the <opVal> element after the original <opVal> element.
Results
Notes:
- The feature value constraints between one feature and another feature have an "AND" relationship. For example, you might have feature "hard drive" equal to 1.2GB AND feature "processor speed" equal to 200MHZ. Only products with a 1.2GB hard drive and 200MHZ processor speed will qualify for this answer.
- If you specify the Equal to constraint for more than one value or if you specify Equal to with any other constraint, you create an "OR" relationship. For example, if you define two constraints where the feature value has to be equal to 2 and equal to 3, then only features with a value of 2 or 3 will be selected. If you define two constraints where the feature value must be equal to 4 and greater than or equal to 10, then only products with a feature value of 4 or a feature value greater than or equal to 10 will be selected.
- When you specify the Greater than or equal to, Less than or equal to, or Not equal to constraints, you create an "AND" relationship. For example, if you define two constraints where the feature value has to be greater than or equal to 5 and less than or equal to 10, then only products with a feature value between 5 and 10 will be selected. If you select Not equal to for the value 3 and Less than or equal to for the value 5, then only products with a feature value of 1, 2, 4 or 5 will be included.
- Each time you define a constraint, you reduce the number of products that are displayed to the customer. Each successive constraint applies only to the products that meet the criteria of the previous constraints and we will be able to select only those feature values that apply to those products. This applies whether you are working with a feature you have selected previously or with a different feature.
Related concepts
Related tasks
Prepare a Guided Sell metaphor
Edit the question and answer tree