Ranking Factors

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

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

General information:

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

Configuration:

Depending on data type:

  • Date - Ranks products based on Created At/Updated At date;
    • Creation date - when the product was added to the database;
    • Updating date - when the product was most recently updated;
    • Zero point - Number of days the Created At/Updated At date influences the products ranking.

      Note

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

Note

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