This content has been marked as final. Show 5 replies
PriceItem droplet calculates price dynamically taking promotions into account.
From Java code, use itempricingEngine.priceItem()
Static pricing display the price what is set in the DB without applying promotions or doing any modifications to the price in the calculators.
example of static pricing are sku's list price, sale price as defined in catalog.
can you give me the small example for ItemPricingEngine.priceItems,
in ItemPricingEngine we have four method, can you explain the usage of that.
thanks and regards
Edited by: shya on Oct 8, 2012 12:32 PM
Did you have any luck with that? I reckon I have the same issue. I want to add a different price in my line item before add it the the shopping cart, or change it when it is already inside the basket.
I found this post: http://docs.oracle.com/cd/E24152_01/Platform.10-1/ATGCommProgGuide/html/s1003itempricecalculator01.html - But it couldn't help me at all. I think ItemSalePriceCalculator is the way to archive what we need, but I don't know exactly how...
In ItemPricingEngine, three methods are there are there:
ItemPriceInfo priceItem(CommerceItem pItem, java.util.Collection pPricingModels, java.util.Locale pLocale, RepositoryItem pProfile, java.util.Map pExtraParameters):Price a single item in a context
java.util.List priceEachItem(java.util.List pItems, java.util.Collection pPricingModels, java.util.Locale pLocale, RepositoryItem pProfile, java.util.Map pExtraParameters):Price each of a List of items in a context
java.util.List priceItems(java.util.List pItems, java.util.Collection pPricingModels, java.util.Locale pLocale, RepositoryItem pProfile, Order pOrder, java.util.Map pExtraParameters):Price a List of items together in a context.