0 Replies Latest reply on Jan 5, 2013 4:17 AM by 902088

    atg.commerce.pricing.PricingException: There was no price list provided

    902088
      Hi

      I am getting this error while adding item to cart. Here are the logs

      2013-01-04 00:02:54,466 ERROR [nucleusNamespace.atg.commerce.pricing.calculators.ItemPriceListCalculator]
      atg.commerce.pricing.PricingException: There was no price list provided
           at atg.commerce.pricing.priceLists.ItemPriceCalculator.priceItem(ItemPriceCalculator.java:369)
           at atg.commerce.pricing.ItemPricingEngineImpl.priceItem(ItemPricingEngineImpl.java:245)
           at atg.commerce.pricing.PricingTools.priceItem(PricingTools.java:1986)
           at atg.commerce.pricing.PricingTools.priceItem(PricingTools.java:1936)
           at atg.commerce.pricing.PriceItemDroplet.performPricing(PriceItemDroplet.java:191)
           at atg.commerce.pricing.ItemPricingDroplet.service(ItemPricingDroplet.java:249)

      This is for an anonymous user.

      I have come across this

      If you set defaultPriceListId property in PriceListManager component, this priceList will be used for all users - anonymous as well as logged in.

      Could any one let me know why ItemPricingEngine is not able to find price list.

      Here are my component configuration:

      /atg/commerce/pricing/priceLists/PriceListManager/
      defaultPriceList instance of atg.adapter.gsa.GSAItem atg.repository.RepositoryItem
      defaultPriceListId plist14580006 java.lang.String
      defaultSalePriceList instance of atg.adapter.gsa.GSAItem atg.repository.RepositoryItem
      defaultSalePriceListId plist14580006 java.lang.String

      /atg/commerce/pricing/PricingTools/
      itemPricingEngine /atg/commerce/pricing/ItemPricingEngine
      priceItem instance of atg.adapter.gsa.GSAItem atg.repository.MutableRepositoryItem
      priceList instance of atg.adapter.gsa.GSAItem atg.repository.RepositoryItem
      priceListId plist14580006 java.lang.String
      priceListManager /atg/commerce/pricing/priceLists/PriceListManager atg.commerce.pricing.priceLists.PriceListManager
      priceLists /atg/commerce/pricing/priceLists/PriceLists

      /atg/commerce/pricing/ItemPricingEngine/
      postCalculators null [Latg.commerce.pricing.ItemPricingCalculator;
      preCalculators atg.commerce.pricing.ItemPricingCalculator [4]
      pricingModelProperties /atg/commerce/pricing/PricingModelProperties atg.commerce.pricing.PricingModelProperties
      pricingTools /atg/commerce/pricing/PricingTools

      /atg/commerce/pricing/calculators/ItemPriceListCalculator/
      priceListManager /atg/commerce/pricing/priceLists/PriceListManager atg.commerce.pricing.priceLists.PriceListManager
      pricingSchemeNames Dictionary (entryCount: 3) java.util.Properties
      pricingSchemePropertyName pricingScheme java.lang.String
      profilePriceListPropertyName priceList java.lang.String
      serviceInfo ItemPriceCalculator java.lang.String
      useDefaultPriceList true boolean

      /atg/commerce/pricing/calculators/ItemPriceListSaleCalculator/
      priceListManager /atg/commerce/pricing/priceLists/PriceListManager atg.commerce.pricing.priceLists.PriceListManager
      pricingSchemeNames Dictionary (entryCount: 3) java.util.Properties
      pricingSchemePropertyName pricingScheme java.lang.String
      profilePriceListPropertyName salePriceList java.lang.String
      serviceInfo ItemPriceCalculator java.lang.String
      useDefaultPriceList true boolean

      Thanks