Example #1
0
 /**
  * Rewrite to use custom precision (http://support.etwebsolutions.com/issues/466)
  *
  * @param $value
  * @param $type
  * @return string
  */
 public function getPriceValue($value, $type)
 {
     $options = Mage::helper('currencymanager')->getOptions(array());
     if (isset($options["input_admin"]) && isset($options['precision'])) {
         if ($type == 'percent') {
             return number_format($value, $options['precision'], null, '');
         } elseif ($type == 'fixed') {
             return number_format($value, $options['precision'], null, '');
         }
     }
     return parent::getPriceValue($value, $type);
 }