Sep 4, 2013
61 Views

[Magento] Bỏ phần thập phân tiền tệ

Written by

Step 1: Open file with path: app\code\core\Mage\Directory\Model\Currency.php
Step 2:
Old line:
return $this->formatPrecision($price, 2, $options, $includeContainer, $addBrackets);
New line:
return $this->formatPrecision($price, 0, $options, $includeContainer, $addBrackets);
Step 3: System/Cache management/
Action:
1. [Select all] -> [Refresh] -> [Submit] 2. [Flush Cache Storage]

Article Tags:
·
Article Categories:
Code/Web
    http://linholiver.com

    https://linholiver.com/diary/about/