Display (tier) prices with qty increments and taxes

Posted by witrin on Stack Overflow See other posts from Stack Overflow or by witrin
Published on 2012-06-23T15:10:47Z Indexed on 2012/06/23 15:15 UTC
Read the original article Hit count: 120

Filed under:
|
|
|

I need to display (tier) prices based on the qty increments of a product. E.g. a simple product, with a regular price of 50¢, no taxes and qty increments of 20 should be displayed on product views with "$10 per 20".

Without using taxes this should be quite easy. But there seems to be no "default" helper or model to do this with taxes enabled and different calulation algorithms (e.g. Mage_Tax_Model_Calculation::CALC_UNIT_BASE); expect for quotes in Mage_Tax_Model_Sales_Total_Quote_Tax and Mage_Tax_Model_Sales_Total_Quote_Subtotal.

Did I miss something here, or do I have to write the business logic on my own? And how I would best encapsulate it?

© Stack Overflow or respective owner

Related posts about api

Related posts about magento