The current price list is used when price lists are employed as it determines which price list is used for catalog and order pricing operations. Price lists also determine the pricing locale. Prices within a price list can be inherited from other price lists. Price lists can also set volume pricing and time-based prices for products or SKUs. Note that price lists themselves can be time-based. For detailed information on price lists, refer to the Core Commerce Programming Guide.

The CSRConfigurtor has a property called usingPriceLists, which must be set to true when the application is using price lists.

The values of the current price list can be set by the following actions:

  • When the agent first logs in, a new, transient profile is automatically loaded as the active customer. The current price list is set from the new profile’s assigned price list. If the profile doesn’t have an assigned price list, the current price list is set based on the PriceListManager defaultPriceList

  • When the agent selects a customer from the profile repository to be the active customer, the current price list is set based on the selected profile’s assigned price list

  • When the agent selects an order from the repository to be the active order, the current price list is set based on the first commerce item in the order with a price list assigned. A commerce item’s price info contains a reference to the price list used to the price it

  • If multisite is enabled, when the agent selects a site, the price list will change to the price list for that site

  • The agent can manually select a different price list using the UI. Once an agent has explicitly selected a price list, that price list remains active even if a new customer with a different assigned price list is selected from the repository. Starting a new call will also reset the current price list and remove the agent’s explicitly selected price list

CSREnvironmentTools

This component contains the API for gaining access to the current catalog and current price list.

Class

atg.commerce.csr.environment.CSREnvironmentTools

Component

/atg/commerce/custsvc/environment/CSREnvironmentTools

CSRAgentTools

This component contains the API for generating a parameter map for pricing operations that contains the active price list.

Class

atg.commerce.csr.util.CSRAgentTools

Component

/atg/commerce/custsvc/util/CSRAgentTools

ChangeCatalogAndPricelist Form Handler

This form handler component is used to manually change the catalog and price list through the UI.

Form Handler

atg.svc.agent.environment.EnvironmentChangeFormHandler

Component

/atg/commerce/custsvc/environment/
  ChangeCatalogAndPricelist


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