Thousands' separator vanished after I've installed the extension: 1200 is displayed instead of 1 200. How to fix it?

The problem lies in Zend Framework's logics.

If the "Symbol position" parameter is set to default — the separator is intact. If you change it to "Left" or "Right" — the space disappears from the price.

The current issue cannot be fixed in the extension itself, due to that it does not affect Zend Framework.

The only way to fix it is to leave the symbol's position at default.

The issue can also be solved by applying changes to the Zend Framework's core, but these changes may disappear after a Magento update.

You need to change the code in the /lib/Zend/Currency.php file's toCurrency function (line 196) from

 if ($options['position'] !== self::STANDARD) {
   $value = str_replace('¤', '', $value);
   $space = '';
   if (iconv_strpos($value, ' ') !== false) {
   $value = str_replace(' ', '', $value);
   $space = ' ';
   }
  
   if ($options['position'] == self::LEFT) {
   $value = '¤' . $space . $value;
   } else {
   $value = $value . $space . '¤';
   }
   }
to
 if ($options['position'] !== self::STANDARD) {
   $value = str_replace('¤', '', $value);
   $space = '';
  
   if (iconv_strpos($value, ' ') !== false) {
   $space = ' ';
   }
  
   $value = str_replace(' ', '^', $value);
   $value = trim($value, '^');
  
   if ($options['position'] == self::LEFT) {
   $value = '¤' . $space . $value;
   } else {
   $value = $value . $space . '¤';
   }
   $value = str_replace('^', ' ', $value);
   }

Last modify date: Monday, October 24, 2016