How to determine which Rules are being checked when adding items to the cart in 3.1
Problem
An item added to the cart does not show the individual rule violations. Aside from going into the item and checking rules one by one to try and find the problem, is there an easier way to find out what rule is being broken?
One item is returning a message without detail:
Rules
You have not satisfied any of the following Allowances.
Individual Allowance Rules
Solution
Yes. Select the Log Rule Checking Results option, found under the Logging/Debugging Settings group on the Static Parameters Profile..
After selecting this option, attempt to purchase the item again. After receiving the problem message, open the Transaction Simulator program under Management System Management Misc Management > Transaction Simulator.
Accept the default search criteria or adjust as desired, then click Process. Using the DataGrid, enter checkrules in the procedure field, then press Enter. All Rules that were checked will now display in the DataGrid. Rules that are not met will appear similar to this example:
CheckRules.p NOTICE: Match: no
CheckRules.p NOTICE: Message1: Age older than or equal to 0.00 and younger than or equal to 18.00. The date used for calculating the age is 06/09/2016.
CheckRules.p NOTICE: Message2: Age = 39.25.
CheckRules.p NOTICE: OverallScore: 0 GroupScore: 1 Rule: Age 18 or Younger
This rule was set as a 'Fixed' type rule that was only set to display on WebTrac and there was no matching rule set up for RecTrac, which is why in RecTrac the clerk did not see the level of detail regarding this rule. Being able to see the complete rule in the log helped determine the problem rule.
See Also: RecTrac Rules Overview