Ranking Factors

Ranking Factor - internal functionality, that can be used for sorting criteria.

Go to System > Improved sorting > Ranking Factors. You will see available factors. You can add a Factor by pressing Add New button. You will see then a Ranking factor dialog, which contain basic data:

General information:

  • Type * - data type. Check the details below;
  • Name * - internal name;
  • Active - ability to enable / disable;
  • Global - global factor will be applied before all other conditions for all Sorting Criteria. Global factors have the highest priority. Extension sorts any product collection by global factors. Then it sorts by scoring factors (if any kind of sorting criteria was applied).

Configuration:

Depends on data type:

  • Date - Rank products based on Created At/Updated At date;
    • Creation date - when the product was added to the database;
    • Updating date - when the product was updated the last time;
    • Zero point - Number of days the Created At/Updated At date is of influence of the products ranking.

      Note

      It is recommended to use a value from 1 to 100. For example, if set 100, then products which were created/updated earlier than 100 days will receive a positive Score (the earlier the more), and products which created/updated later than 100 days will receive zero Score.
    • Attribute set - Rank products based on attribute set.
    • Mapping - allows assigning a weight to a set of attributes to participate in sorting;
      • Attribute Set - attributes set;
      • Weight - the weight. It is recommended to use a value from 1 to 100.
    • Attribute - allows assigning a weight to attributes to participate in sorting;
    • Mapping
      • Option - the internal name of ranking factor. Used for Sorting Criteria configuration;
      • Weight - the weight. It is recommended to use a value from 1 to 100.
    • Image - rank products based on image availability;
    • Product Rating - rank products based on overall rating;
    • Bestseller - rank products based on the number of purchases within the period;
    • Past Days - number of days the order date is of influence of the products ranking. By default 60;
    • Profit - calculation: the products price and cost determines the products ranking of this factor;
    • Rule - rank products based on various different conditions;
    • Conditions - allows selecting Product Attribute. Leave blank for all products;
    • Stock status - rank products based on stock status.
    • SPV = Sales Pre View = Number of Sales / Number of Product Page Views;
    • Zero point - number of days, that influence of the products ranking. It is recommended to use a value from 1 to 100.
    • Popularity - rank products based on number of product page views;
    • Discount - calculation: the difference between regular price and special prices.

Note

After creating or making changes, make re-index. You can use the Reindex button for this. Or run the reindex with the cli commands.