OdooWiki OCA HUB

Website Sale Product Sort

website_sale_product_sort folder_open OCA/e-commerce open_in_new
Website License: AGPL-3

This module allows to set a default sorting criteria for the e-commerce product list.

It provides the standard criterias, but allows to extend the options via third modules.

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Lets you choose the default sorting order for products in your online shop, per website, from the Website settings. Shoppers see products sorted that way until they pick another order themselves.

This module adds a setting to control how products are sorted by default in the e-commerce shop. Each website can have its own default order.

Where to find it: - In Website settings, under the shop options, a new "Sort Criteria" setting appears where you pick the default order. - On the shop page, the sort dropdown shows the chosen default when the shopper has not selected anything else.

Available sort options: - Featured - Newest Arrivals - Name (A-Z) - Name (Z-A) - Price - Low to High - Price - High to Low

Business behaviour: - The chosen order is applied automatically to the product list when no specific order is requested. - Published products are always shown first, then the chosen order, then by internal id. - If a shopper picks a different order in the shop, that choice is respected. - The setting is required and defaults to Featured.

It touches the website configuration and the shop product listing. Other modules can add more sort options.

Depends on

website_sale
Models and fields (2)
  • website · extends an existing modeldefault_product_sort_criteria (Sort products by)
  • res.config.settings · extends an existing modelproduct_sort_criteria

Text generated by AI (DeepSeek) from reading the Odoo 19.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 5 confirmed, 4 with no information of 9 versions.

Sources · Odoo 19.0

Confirmed on 2026-11-03 in branch 19.0 of OCA/e-commerce.

terminal Installation and usage

OCA documentation · Odoo 19.0

To configure this module, you need to:

  • Go to Website \> Configuration \> Settings
  • Select the website you want to configure.
  • In the Shop - Products section there's a Sort Criteria option that you can set as the default one for the website selected.

To extend the module you can override the method providing sorting options like this:

> ``python > @api.model > def _get_product_sort_criterias(self): > res = super()._get_product_sort_criterias() > return res.append(("default_code asc", _("Reference - A to Z"))) >``

After you've configured the default website settings:

  • Go to the configured website shop url.
  • The products will be sorted by default by the chosen option.

No verified information in OCA: Installation.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.