The atg.endeca.index.accessor.ActivePriceAccessor class sets the value of a record’s sku.activePrice property based on the prices in the record’s price list pair. The sku.activePrice property is specified in the ProductCatalogOutputConfig definition file like this:

<property name="price" type="float"
  property-accessor="/atg/commerce/endeca/index/accessor/ActivePriceAccessor"
  output-name="sku.activePrice" is-non-repository-property="true"/>

The actual calculation of the price is performed by a component of class atg.commerce.endeca.index.ActivePriceCalculator. This class looks up the prices in the price lists and uses the sale price if there is one, or uses the list price if there is no sale price. The ActivePriceCalculator component is specified through the activePriceCalculator property of the ActivePriceAccessor component. By default, this property is set to:

activePriceCalculator=/atg/commerce/endeca/index/ActivePriceCalculator

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