decimal-value

How to Remove Decimal price in Magento Product. First Go to appcodecoreMageDirectoryModel Path and Open Currency.php File Found this code in File

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

And Remove and paste this code

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

After this Go to System Admin and Refresh cache. Now it’s Working Price 122.00 decimal 00 remove from Price and see Your Price 122 for Product.

About Author:

Kalpesh Chavada

Kalpesh Chavada is Our Founder & CEO of Akshar Group Technologies. He is serving with 11+ years of experience in different technologies like Magento, WordPress, Laravel, jQuery, Shopify, Branding, and Digital Marketing. He is very good with creative logic and always ready to take on challenges.

Kalpesh Author