Because prices in price lists aren’t stored in properties of the product or SKU, you must create a special property to represent the price in queries. You can use a component of class atg.commerce.search.PriceListPropertyProvider to create a metadata property whose value is set at query time to the item price from the appropriate price list. Oracle ATG Web Commerce includes a component of this class, /atg/commerce/search/PriceListPropertyProvider, which creates a metadata property named price. You can use this property for constraints and faceting as if it were actually a property of the indexed item.

Note that if you create an additional PriceListPropertyProvider component, you must register it with the /atg/commerce/search/MetaPropertiesHelper component by adding it to that component’s propertyProviders array property. For example:

propertyProviders+=/mystuff/MyPriceListPropertyProvider

Copyright © 1997, 2013 Oracle and/or its affiliates. All rights reserved. Legal Notices