Skip to content

Instantly share code, notes, and snippets.

@Dan0sz
Created October 21, 2018 13:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Dan0sz/d600e5c276eee169476a7ee31021840b to your computer and use it in GitHub Desktop.
Save Dan0sz/d600e5c276eee169476a7ee31021840b to your computer and use it in GitHub Desktop.
Get Total Price of Cart Including/Excluding VAT/Tax in Magento Minicart Widget
<?php
// 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()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment