Skip to content
For AI agents: the complete documentation index is available at llms.txt; this page is also available as Markdown at index.md.

BasePrice Sort Clause

The BasePrice Sort Clause sorts search results by the product's base price.

Arguments

  • currency - a CurrencyInterface object representing the currency to check price for
  • (optional) sortDirection - ProductQuery constant, either ProductQuery::SORT_ASC or ProductQuery::SORT_DESC

Limitations

The BasePrice Sort Clause isn't available in the Legacy Search engine.