ANS-1053 · WEB SERVICES & INTEGRATIONS

How to Customize Item Sorting in NetSuite E-commerce Platforms

NetSuite e-commerce platforms offer various methods for sorting items, from URL parameters to advanced scripting and SuiteCommerce features.

Short answer

NetSuite e-commerce platforms provide several options for item sorting. While basic sorting by name and price was common in legacy systems, current SuiteCommerce offers more flexibility. Advanced customization can be achieved through URL parameters, scripting, and saved searches. For comprehensive sorting capabilities, leveraging SuiteCommerce Advanced features is recommended, offering greater control over product display.

Scenario

Users of NetSuite's e-commerce platforms often seek to customize the order in which items are displayed to customers. The default sorting options may not always meet specific business requirements, necessitating alternative methods for product arrangement. This guide outlines various approaches to achieve custom item sorting, enhancing the customer's browsing experience.

Solution

Customizing item sorting in NetSuite e-commerce platforms can be achieved through several methods, depending on the platform version and desired complexity:

  1. Understanding Default Sorting Capabilities

    In legacy NetSuite e-commerce platforms, default item sorting options were often limited to Name and Price. However, current SuiteCommerce offerings provide more flexible out-of-the-box sorting capabilities, including 'Relevance' and the ability to sort by any text or number field configured for display.

  2. Utilizing URL Parameters (Legacy Context)

    For specific configurations, particularly in legacy e-commerce setups, item sorting can be influenced through URL parameters. An example of such a parameter format includes:

?sort1descF&sort1Item_ONLINECUSTOMERPRICE

or

?sort1descF&sort1Item_NAME

It is important to note that current SuiteCommerce platforms typically utilize an Item Search API with a sort=field:order format for more robust sorting control.

  1. Customization with Scripting and Saved Searches

    Beyond URL parameters, advanced customization can be achieved through NetSuite scripting and Saved Searches. These methods allow for highly specific sorting logic based on various item attributes or business rules.

  2. Leveraging SuiteCommerce Advanced

    For comprehensive and flexible sorting options, leveraging the full capabilities of SuiteCommerce Advanced is recommended. This platform provides extensive tools for managing product display and sorting.

  3. Hardcoding (Not Recommended)

    As a last resort, items can be hardcoded, though this approach is generally not recommended due to maintenance complexities and lack of dynamic control.

Expert NetSuite Support

Need help with this NetSuite issue?

Web Services & Integrations consulting and configuration support

Talk to a consultant