Magento by default, rounds off all values to 2
decimal points both at backend and frontend. There are several business
owners, who needs it to be flexible , so they can have multiple decimal
points, whatsoever.
So, we started looking for a fix to this problem. And here is how we did it :
Goto /lib/zend/Currency.php :
And replace it with :
That should do it.
If still it doesnt, then you may do this.
In line 62 in /lib/zend/Currency.php you can change the precision for all prices in your shop.
/app/code/core/Mage/Core/Model/Store.php
appcodecoreMageAdminhtmlBlockCatalogProductEditTabOptionsoption.php
appcodecoreMageSalesModelOrder.php
Changes currency on frontend
appcodecoreMageDirectoryModelcurrency.php
jsvarienjs.js (changed precision to 3 decimal places)
Change in admin to display 3 decimal places price in product form :
appcodecoreMageAdminhtmlBlockCatalogProductHelperFormprice.php
View Orders in Admin
appcodecoreMageAdminhtmlBlockSalesItemsAbstract.php
wherever there was precision or sprintf i changed the values to “3” i.e 3 decimal places
So, we started looking for a fix to this problem. And here is how we did it :
Goto /lib/zend/Currency.php :
'precision' => 0 |
And replace it with :
'precision' => 3If still it doesnt, then you may do this.
In line 62 in /lib/zend/Currency.php you can change the precision for all prices in your shop.
/app/code/core/Mage/Core/Model/Store.php
appcodecoreMageAdminhtmlBlockCatalogProductEditTabOptionsoption.php
appcodecoreMageSalesModelOrder.php
Changes currency on frontend
appcodecoreMageDirectoryModelcurrency.php
jsvarienjs.js (changed precision to 3 decimal places)
Change in admin to display 3 decimal places price in product form :
appcodecoreMageAdminhtmlBlockCatalogProductHelperFormprice.php
View Orders in Admin
appcodecoreMageAdminhtmlBlockSalesItemsAbstract.php
wherever there was precision or sprintf i changed the values to “3” i.e 3 decimal places
I hope this post help you in your magento experience
কোন মন্তব্য নেই:
একটি মন্তব্য পোস্ট করুন