예제 #1
0
파일: Store.php 프로젝트: ahsanmage/vr
 /**
  * Update default store currency code
  *
  * @return string
  */
 public function getDefaultCurrencyCode()
 {
     if (Mage::helper('autocurrency')->isEnabled()) {
         $result = $this->getConfig(Mage_Directory_Model_Currency::XML_PATH_CURRENCY_DEFAULT);
         return $this->getCurrencyCodeByIp($result);
     } else {
         return parent::getDefaultCurrencyCode();
     }
 }
예제 #2
0
 public function testGetDefaultCurrency()
 {
     /* currency operations require store to be loaded */
     $this->_model->load('default');
     $this->assertEquals($this->_model->getDefaultCurrencyCode(), $this->_model->getDefaultCurrency()->getCode());
 }