Calculation Matrix
Info
Method name: CalculationMatrix
Simplified and refactored for performance implementation is using hash to find matching record for each item in the cart and populate pricing variables. Fully configurable, you have to declare input and output mappings. Can be used with any Calculation Matrix. You can use it to fetch additional pricing information, costs, margins or SKUs or even integration ids when integrating with other systems.
Start with setting up the pricing plan step:
This sample configuration will fetch % approval levels for each product code:
All mapping of input and output matrix columns is done automatically, based on matrix definition. As output specify pricing variables. Configure pricing variable bindings to store ouptut values in fields.
Params
As params provide:
MatrixName
: name of the matrix, highest priority will be automatically selected- mappings of all input and output matrix columns these inputs will be mapped automatically from JSONAttribute field based on actual matrix configuration