This documentation is for a version that has reached its End Of Life. Such versions are no longer supported and don't receive security updates. Consider updating to a newer version.
CustomPrice Sort Clause¶
The CustomPrice
Sort Clause sorts search results by the product's custom price for a selected customer group.
Arguments¶
currency
- aCurrencyInterface
object representing the currency to check price for- (optional)
sortDirection
- Query or LocationQuery constant, eitherQuery::SORT_ASC
orQuery::SORT_DESC
- (optional)
customerGroup
- aCustomerGroupInterface
object representing the customer group to check prices for. If you don't provide a customer group, the query uses the group related to the current user.
Limitations¶
The CustomPrice
Sort Clause isn't available in the Legacy Search engine.
Example¶
1 2 3 4 5 6 7 |
|