app/code/community/Mygento/Geoip/Model/City.php 1 location
|
@@ 38-44 (lines=7) @@
|
| 35 |
|
return Mage::getStoreConfig('geoip/general/city'); |
| 36 |
|
} |
| 37 |
|
|
| 38 |
|
public function getCity() |
| 39 |
|
{ |
| 40 |
|
if (!$this->city) { |
| 41 |
|
$this->city = $this->getCityByIp(Mage::helper('core/http')->getRemoteAddr()); |
| 42 |
|
} |
| 43 |
|
return $this->city; |
| 44 |
|
} |
| 45 |
|
} |
| 46 |
|
|
app/code/community/Mygento/Geoip/Model/Country.php 1 location
|
@@ 37-43 (lines=7) @@
|
| 34 |
|
return Mage::getStoreConfig('geoip/general/country'); |
| 35 |
|
} |
| 36 |
|
|
| 37 |
|
public function getCity() |
| 38 |
|
{ |
| 39 |
|
if (!$this->city) { |
| 40 |
|
$this->city = $this->getCityByIp(Mage::helper('core/http')->getRemoteAddr()); |
| 41 |
|
} |
| 42 |
|
return $this->city; |
| 43 |
|
} |
| 44 |
|
} |
| 45 |
|
|