Portfolio
My Blog
Scroll down to discover
Search
Categories

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

September 4, 2013Category : Code/Web

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]

01.
© Oliver / All rights reserved.
To top