2026 Executive BenchmarkMid-Market Enterprise Modernization: How leaders across unify Commerce, Odoo ERP & AI in 90 days.
MAGENTO COMMERCE

Remove Decimal price in Magento Product

How to Remove Decimal price in Magento Product. First Go to appcodecoreMageDirectoryModel Path and Open Currency.php File Found this code in File } ?> And Remove and paste this cod...

Akshar Group Technologies
Dec 25, 2020
1 min read
Verified Source

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

php
<?php
public function format($price, $options = array(), $includeContainer = true, $addBrackets = false)

{
return $this->formatPrecision($price, 2, $options, $includeContainer, $addBrackets);
}
?>
And Remove and paste this code
php
<?php
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.
Share this playbook
LET'S BUILD WHAT'S NEXT

What's Holding Your Business Back?

Tell us where you want to go, what's getting in the way, and we'll help you figure out the technology to get there.

No sales pitch. Confidential strategic advisory.