コード例 #1
0
ファイル: Sales.php プロジェクト: jpbender/mage_virtual
 /**
  * @deprecated after 1.4.0.0-rc1
  *
  * @param float $price
  * @return string
  */
 public function getPriceFormatted($price)
 {
     return $this->_currency->format($price);
 }
コード例 #2
0
ファイル: Currency.php プロジェクト: FranchuCorraliza/magento
 public function convert($price, $toCurrency = null)
 {
     $result = parent::convert($price, $toCurrency);
     $data = new Varien_Object(array("price" => $price, "toCurrency" => $toCurrency, "result" => $result));
     Mage::dispatchEvent("currency_convert_after", array("conversion" => $data));
     return $data->getData("result");
 }