How to Create and Manage Sorting Algorithms in Omnitron?
Last updated
Was this helpful?
Last updated
Was this helpful?
Users have the flexibility to design and manage the sorting algorithms on Omnitron using the Sorting Algorithms page. These algorithms are applied when presenting products in a category or collection on the storefront. By inputting queries based on attribute values, users can dynamically rank products within categories and collections.
To access the Sorting Algorithms page, navigate to the Settings>Sorting Algorithms in Omnitron.
Omnitron offers three distinct types of sorting algorithms: Static, Dynamic, and External.
Static Sorting Algorithms store the necessary information for manually sorting products into categories or collections.
Dynamic Sorting Algorithms allow users to sort products in a category or collection based on chosen product features and sorting rules.
External Sorting Algorithms provide a unique capability to arrange products into collections or categories using a specific query on the client's metabase. Additionally, these algorithms offer the option to add a file for bulk-sorting products.
The Sorting Algorithms page is structured into three distinct functionalities.
The +New Sorting Algorithm button enables users to create a new algorithm, making it straightforward to set up customized sorting arrangements.
Within the Filters section, users can efficiently search and filter among the various generated algorithms.
In the Sorting Algorithms list, users can view all the available algorithms. By clicking on a specific algorithm, they can access its detailed page.
To add a new Sorting Algorithm to Omnitron, follow these steps:
On Omnitron, navigate to Settings > Sorting Algorithms.
Next, click on +New Sorting Algorithm.
Provide a Sort Name for Sorting Algorithm, making it easy to identify and manage.
From the options presented in the Sorting Type parameter, choose the one that best suits your specific sorting requirements.
Dynamic sorting algorithms are designed based on a set of rules, such as specific product Attributes.
External sorting algorithms utilize rule sets that are defined in a file or Base URL to sort goods.
Static sorting algorithms enable manual product sorting. When displayed on the storefront, static sorting algorithms are prioritized over Dynamic and External ones.
Set the Visibility of the sorting algorithm.
Select the specific Catalog to which you want to apply the newly created sorting algorithm.
To finalize the procedure, simply click on the Save button. This action will preserve all the settings and configurations made for the sorting algorithm, ensuring that sorting algorithm is applied accurately.
If the Dynamic Sorting Algorithm has been selected as the sorting type, the dynamic sorting rule set will also need to be set.
For the Select an attribute parameter, select one of the predefined attributes.
For the Sorting parameter, select one of the available options to determine the sorting order.
Multiple rules can be added to a dynamic sorting algorithm by clicking on the ⊕Add button.
If the External Sorting Algorithm has been selected as the sorting type, the additional parameters for the external sorting rule set will also need to be set.
When creating an external sorting algorithm, the Client parameter presents a Stream option.
Stream: This option provides the ability to perform bulk sorting of products using either a file containing Number and SKU columns or by saving a bulk sorting algorithm generated through a query on the client's metabase.
Client Type: There are two alternatives available for this field: Stream-File and Stream-Base URL.
If Stream is selected for the Client parameter and Stream File is selected for the Client Type parameter, the following inputs will be dynamically listed:
Choose File: The uploaded file format should only contain 'sku' and 'number' columns, and all SKUs in the file must exist in the catalog.
File Format: CSV or XLSX file must be selected for the file format. CSV and Excel files must contain two columns: sku
and number
.
sku: The unique identifies for each distinct product.
number: The ordering value indicates the position of the item that will be displayed basen on selected criteria.
Delimiter: This option is only applicable to CSV files, and you can specify the delimiter used for distinguishing file contents.
Sorting: The sorting order for the "number" column in the file can be selected, either ascending (from small to big) or descending (from big to small), depending on your preference.
Elasticsearch Mode Type: This determines how items are ranked for relevancy.
After filling out all the required inputs, click the Save button. Once the relevant external sorting algorithm is saved, a Base URL is generated for the uploaded file.
To associate the saved external sorting algorithm with a sales channel, users should create a Sort Option on the Sales Channels>Sales Channels Settings>General Sorting Settings page or Sorting Algorithms tab in Products and Catalogs>Catalogs>Sorting page.