magento get taxes in checkout page


by using this code i got tax_amount(total tax 10%+21%) but i need all taxes individually by tax percent 10%, 21%... I have to display these taxes in checkout page


So Any help will be much appreciated...


/app/design/frontend/base/default/template/tax/checkout/tax.phtml ---checkout page add the bellow code

$quote = Mage::getModel("checkout/session")->getQuote();
$shippingAmount = $quote->getShippingAddress()->getShippingAmount();
foreach ($this->getTotal()->getFullInfo() as $info){
$rates = $info['rates']; 
foreach ($rates as $rate){
    if ($i==1){
        echo $this->helper('checkout')->formatPrice($amount2); 
    if ($i==2){
        echo $this->helper('checkout')->formatPrice($amount1);
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.