Metis Smart Modeling - Rules
From Metis Documentation
(→Minimal Selection) |
(→Formulas) |
||
Line 579: | Line 579: | ||
[[File:MetisSmartModelingSCRuleFormula.PNG|center|700x600px]] | [[File:MetisSmartModelingSCRuleFormula.PNG|center|700x600px]] | ||
+ | |||
+ | |||
+ | In the “Modeling” menu, make sure that the “Rules” sub-menu has been selected. | ||
+ | On the left, in the “Groups of rules” dropdown list, select “Shipping.” | ||
+ | Click on add. A window opens where the new rule will be created. | ||
+ | In the “Type” field, select “Formula” from the dropdown list. In the “comment” field, enter “Shipping.” | ||
+ | Click on the add button near the “input” field. A window opens where it is possible to select positions, variables, and attributes. Select “Attributes.” | ||
+ | Select “weight” and click on confirm. | ||
+ | Click on add again. Select “variables.” Search for the variable “$Shipping_Type.” Select it and click on confirm. | ||
+ | Click on the add button near the “Output” field. Search for the “shipping and handling” position. Select it and click on confirm. | ||
+ | In the “Quantity =” field, enter the following formula “(Var1*Var2)/2" | ||
+ | To test this new rule, click on the “test” button. | ||
+ | The test window opens. | ||
+ | In the “test value” field for “weight” enter “12.” For “$Shipping_type” enter “3.” | ||
+ | Click on the test button. The results appear below. The formula is applied. | ||
+ | Note: The result of the formula is rounded if the result is not a whole number. | ||
+ | Close the test window. | ||
+ | Click on confirm to save the rule. It now appears in the list of rules. | ||
+ | |||