This content has been marked as final. Show 3 replies
create a calculator which extends ItemPriceCalculator and override methods customize it with your requirement.
ItemPricingEngine#postCalculators should point to your Calculator.
I think there is source code for ItemListPriceCalcualtor/ItemSalePriceCalculator in
Wirte the post calculator as said by samdani following ItemSalePriceCalculator code.
Create Calculator by extending ItemListPriceCalculator and override priceItem(..) as already told in above posts refer ItemListPriceCalcualtor.
Set your calculated price in priceQuote and add adjustment.
Add your calculator :
postCalculators=/<Your Calculator Path>
Now by doing getAmount() you should get your price after your custom adjustment.