How to remove decimal price in magento

  • Open  code/core/Mage/Directory/Model/Currency.php
  •  Find the following :-
 public function format($price$options=array(), $includeContainer = true, $addBrackets = false)
    {
        return $this->formatPrecision($price, 2, $options$includeContainer, $addBrackets);
    }


on line no 194
change this code to:-

 public function format($price$options=array(), $includeContainer = true, $addBrackets = false)
    {
        return $this->formatPrecision($price, 0, $options$includeContainer, $addBrackets);
    }

How to check if Magento is running in production mode or developer mode

If you want to know. your Magento 2 website is running on which environment you can run below command on terminal and very easily you can kn...

Popular Posts

Posts