The atg.commerce.endeca.index.producer.PriceListPairVariantProducer
class produces a separate record for each price list pair. It obtains the price list pair for each site from the values of the defaultListPriceList
and defaultSalePriceList
properties of the site’s siteConfiguration
item.
The Guided Search integration includes a component of this class, /atg/commerce/search/PriceListPairVariantProducer
, which is added to the ProductCatalogOutputConfig.variantProducers
property by the DCS.Endeca.Index
module. The following are key properties of PriceListPairVariantProducer
.
priceListPairUniqueParamName
The name of the query parameter used to specify the price list pair in the URL identifying a product or SKU. By default, this property is set to priceListPair
. For example, the value of the product.url
property in a record might be:
atgrep:/ProductCatalog/sku/xsku2099?_product=xprod2099&catalog=
homeStoreCatalog&locale=en_US&priceListPair=plist3080003_plist3080002
languagesPropertyName
The name of the property of the siteConfiguration
item that specifies the languages for the site. By default, this property is null. If this property is set, PriceListPairVariantProducer
uses the value of the specified siteConfiguration
property to exclude unneeded variants.
For example, in Commerce Reference Store, the CRS Store US and CRS Home sites use the same price list pair (representing prices in dollars), while CRS Store Germany uses a separate price list pair (representing prices in euros). Commerce Reference Store sets the value of the languagesPropertyName
property to languages
. For the CRS Store US and CRS Home sites, the siteConfiguration
item’s languages
property is set to en,es
. So when generating the records for the price list pair used for CRS Store US and CRS Home, PriceListPairVariantProducer
excludes the German language variants, since these price lists aren’t used on any sites that support German.
Note that by default the Oracle Commerce Platform does not have a property for languages on the siteConfiguration
item. If the languagesPropertyName
is not set to a valid siteConfiguration
property, records are generated for all possible combinations of language and price list pair.