0

How can get tax amount in mini cart.? for guest and login, both of customer.

How to get programatically.

0

Try this.

Get Price of all Items in Cart including VAT/Tax

Mage::helper('checkout')->formatPrice(Mage::getSingleton('checkout/cart')->getQuote()->getGrandTotal())

Get Total Price excluding/without VAT/Tax

Mage::helper('checkout')->formatPrice(Mage::getSingleton('checkout/cart')->getQuote()->getSubtotal())
  • this code is not working for me. I need to show tax amount in the cart summary with login and guest customer. – Jay Feb 20 '18 at 7:00
  • i have updated the answer, the easy and best way, you can use directly on the minicart – Rahul Singh Feb 20 '18 at 7:24
0

thanks for code but i have do like this its right way in magento

$subTotal = Mage::getModel('checkout/cart')->getQuote()->getSubtotal(); $grandTotal = Mage::getModel('checkout/cart')->getQuote()->getGrandTotal(); $taxAmount = $grandTotal - $subTotal;

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.