Sorting Criteria

Go to System > Improved Sorting > Sorting Criteria.

You will see the list of configured sorting options. If list is empty, magento will use default sorting options.

Here you can change the order of the criteria visible to users and add/remove available options.

Once you add your first sorting criteria, extension will replace native Magento sorting options and use your configuration.

To add new Criteria click Add new button.

General information:

  • Name * - name of option, visible in the dropdown on front-end;
  • Active - to enable/disable criteria;
  • Default - applies sorting criteria by default on category page;
  • Default for Search - applies sorting criteria by default on the search results page (instead of sort by relevance);
  • Position - position of sorting option in the dropdown on front-end.
  • Conditions - describes logic to sort products. You can use:
    • Catalog attributes - an attribute is visible for sorting, if option Used for Sorting in Product Listing is enabled (Stores > Attributes > Product);
    • Ranking factors - allows choosing one of the Ranking Factors;
    • ASC (A-Z, 0-9)/DESC (Z-A, 9-0) - allows sorting from smallest to largest/ from largest to smallest;
    • Weight - allows increasing the impact of the factor in a particular rule, set the value within 1 - 100;
    • Limit - sets the maximum number of products for which this weight will be applied;
  • Add New Sub Condition button - allows adding several criteria and set their weight in the current group of conditions. Affects the position of a product in a category.

    Note

    Product Score = SubConditionWeight1 + SubConditionWeight2 + SubConditionWeightN

    The extension will calculate, assign each item its own Score and place them in ascending or descending order. For example, let's make sorting by creation date and stock availability:

    • Product E (28.10.2020, in stock)
    • Product C (25.10.2020, in stock)
    • Product A (20.10.2020, in stock)
    • Product D (25.10.2020, out of stock)
    • Product F (20.10.2020, out of stock)
    • Product B (18.10.2020, out of stock)
  • Add New Condition button - allows setting the sort sequence. Affects the product position in the product group and in the category;

    Note

    Product Score = Condition1(SubConditionWeight1 + SubConditionWeight2 + SubConditionWeightN) + Condition2(SubConditionWeight1 + SubConditionWeight2 + SubConditionWeightN)

    It will sequentially sort the products, first by the first condition and then by following conditions within the group. Lets arrange the products, for example, by creation date and then by stock availability for the specified date:

    • Product E (28.10.2020, in stock)
    • Product C (25.10.2020, in stock)
    • Product D (25.10.2020, out of stock)
    • Product A (20.10.2020, in stock)
    • Product F (20.10.2020, out of stock)
    • Product B (18.10.2020, out of stock)
  • Advanced Configuration:

    • Code - used to generated URL. Does not affect anything else.