Select and Configure Sort Fields

Adding a Sort Field under Search Index enables sorting for that field. You can then use this sort field with the Item Search API but the sort field is visible in the web store only after you configure it.

To add the sort fields:
Complete the prerequisite tasks as described in Prerequisites.

Go to Commerce > Websites > Website List.

Click Edit next to your SuiteCommerce Advanced site.

Click the Search Index subtab and then Sort Fields.

Field Name — (Required) Select an item record field. Select item attributes that you want shoppers to use for sorting search results.

Field ID — (View only field) Displays the field’s internal ID.

Sort Order — Choose ascending or descending order. This is the order in which products are sorted in search results.

After you select the sort fields, you can configure the sort fields for your Commerce web stores using the SuiteCommerce Configuration record. Configuring a Sort Field ensures that the sort field is available to the shoppers in the web store.

To configure the sort fields:
Select the domain to configure at Commerce > Websites > Configuration.

Select the site that you want to configure from the Select Website list.

Select the specific domain that you want to configure from the Select Domain list.

Click Configure.

On the SuiteCommerce Configuration record page, click the Search tab and then click the Result Sorting subtab.

Define and configure your sort options. For details, see Result Sorting Subtab.

For example, if a custom field, custitem41 has been defined as a sort field in the web site record, a line item for that field must be added to the Desktop, Phone, and Tablet sections before the selection is available in the web store on the applicable device.

Click Save.

Leave a comment

Your email address will not be published. Required fields are marked *