My Oracle Support Banner

How to Filter Search Result to Display Only Products Have Prices Set (Doc ID 2592772.1)

Last updated on APRIL 02, 2021

Applies to:

Oracle Commerce Cloud Service - Version N/A and later
Information in this document applies to any platform.


How to filter searches for products that have prices set.

Example scenario:

A customer uses endpoint 'listProducts' in widgets to search for some specific rendering products. The customer wants filtering on search result so that products, which do not have price are not displayed.
Since pagination is created from attributes returned from the request, when they filter products in the widget itself, removing priceless products, they come across an issue with pagination: Pages rendered in the widget end up with blanks because a number of products are returned for each page but not all of them are rendered because of the removal they need to do.

Basically, it is unable to filter from the prices contained in the products or SKUs, due to the following error:



To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.