Rules

A sorting option based on weighing lets you set up different parameters that are dependent on each other's importance:
ENsortingweigh.png

The order in which you add the parameters doesn't matter. Only the position of the sliders compared to the rest matters. The position of a slider is translated into a multiplication factor between 1 (left) and 10 (right).

The maximum value that appears in each product is then determined for each parameter. Using a maximum value, each parameter can be converted into a number between 0 and 1. The formula that calculates this for each line is:
((Value + (-1 * Min-value)) / (Max-value + (-1 * Min-value))) * Weighing factor

This is done for each parameter. At the end, the calculated values are all added into a ranking value for each product. The complete ranking formula for the setup above goes like this:

((new + (-1 *Min-new))/ (Max-new + (-1 * Min-new))) * 7  +

((stock + (-1 * Min-stock)) / (Max-stock + (-1 * Min-stock))) * 8 +

((relevance + (-1 * Min-relevance))/ (Max-relevance + (-1 * Min-relevance))) * 6 +

((push + (-1 * Min-push))/ (Max-push + ( -1 * Min-push))) * 10

Ranking value

There are exceptions to the rule:

  • If Min-value is equal to the Max-value, products get 1 as a value

  • If the product has no value for this parameter, it will get 0 as a value

A product may with a very low push factor may appear on top, because the product scores very low on new, stock and relevance.


Has reading the relevant articles not helped you?