Version Notes
FIXED: Re-routing of API requests to incorrect location.
Download this release
Release Info
Developer | Juicy Media |
Extension | Juicy_GeoIP |
Version | 1.2.5 |
Comparing to | |
See all releases |
Code changes from version 1.2.4 to 1.2.5
app/code/local/Juicy/Geoip/Helper/Data.php
CHANGED
@@ -16,6 +16,11 @@ class Juicy_Geoip_Helper_Data extends Mage_Core_Helper_Abstract {
|
|
16 |
}
|
17 |
return false;
|
18 |
}
|
|
|
|
|
|
|
|
|
|
|
19 |
public function enableTestMode()
|
20 |
{
|
21 |
$type = $this->getTestingType();
|
16 |
}
|
17 |
return false;
|
18 |
}
|
19 |
+
public function isApi()
|
20 |
+
{
|
21 |
+
$req = Mage::app()->getRequest()->getModuleName();
|
22 |
+
return $req == "api" ? true : false;
|
23 |
+
}
|
24 |
public function enableTestMode()
|
25 |
{
|
26 |
$type = $this->getTestingType();
|
app/code/local/Juicy/Geoip/Model/Observer.php
CHANGED
@@ -4,7 +4,7 @@ class Juicy_Geoip_Model_Observer
|
|
4 |
{
|
5 |
public function controllerActionPredispatch($e)
|
6 |
{
|
7 |
-
if(Mage::helper("geoip")->isModuleEnabled() == 1 && !Mage::helper("geoip")->isPrivateIp() && !Mage::helper("geoip")->isCrawler()){
|
8 |
if(Mage::helper("geoip")->enableTestMode()){
|
9 |
Mage::getModel('core/session')->unsGeoipChecked();
|
10 |
}
|
4 |
{
|
5 |
public function controllerActionPredispatch($e)
|
6 |
{
|
7 |
+
if(Mage::helper("geoip")->isModuleEnabled() == 1 && !Mage::helper("geoip")->isPrivateIp() && !Mage::helper("geoip")->isCrawler() && !Mage::helper("geoip")->isApi()){
|
8 |
if(Mage::helper("geoip")->enableTestMode()){
|
9 |
Mage::getModel('core/session')->unsGeoipChecked();
|
10 |
}
|
app/code/local/Juicy/Geoip/etc/config.xml
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
<config>
|
5 |
<modules>
|
6 |
<Juicy_Geoip>
|
7 |
-
<version>1.2.
|
8 |
</Juicy_Geoip>
|
9 |
</modules>
|
10 |
<global>
|
4 |
<config>
|
5 |
<modules>
|
6 |
<Juicy_Geoip>
|
7 |
+
<version>1.2.5</version>
|
8 |
</Juicy_Geoip>
|
9 |
</modules>
|
10 |
<global>
|
package.xml
CHANGED
@@ -1,20 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Juicy_GeoIP</name>
|
4 |
-
<version>1.2.
|
5 |
<stability>stable</stability>
|
6 |
<license>GPL</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Change currency using the visitors IP address and the PHP GeoIP module</summary>
|
10 |
<description>Gets the customers current country using PHP's GeoIP module, filters through a list of countries and grabs the associated currency code for Magento</description>
|
11 |
-
<notes>FIXED:
|
12 |
-

|
13 |
-
FIXED: Removed unnecessary output</notes>
|
14 |
<authors><author><name>Jonathan Webb</name><user>JuicyMedia</user><email>jonathan.webb@juicymedia.co.uk</email></author></authors>
|
15 |
-
<date>2015-
|
16 |
-
<time>
|
17 |
-
<contents><target name="magelocal"><dir name="Juicy"><dir name="Geoip"><dir name="Block"><file name="Countrydefine.php" hash="0032d7797b0dc464fe0edc99d6a7fe7e"/></dir><dir name="Helper"><file name="Data.php" hash="
|
18 |
<compatible/>
|
19 |
<dependencies><required><php><min>5.0.0</min><max>6.0.0</max></php></required></dependencies>
|
20 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Juicy_GeoIP</name>
|
4 |
+
<version>1.2.5</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>GPL</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Change currency using the visitors IP address and the PHP GeoIP module</summary>
|
10 |
<description>Gets the customers current country using PHP's GeoIP module, filters through a list of countries and grabs the associated currency code for Magento</description>
|
11 |
+
<notes>FIXED: Re-routing of API requests to incorrect location.</notes>
|
|
|
|
|
12 |
<authors><author><name>Jonathan Webb</name><user>JuicyMedia</user><email>jonathan.webb@juicymedia.co.uk</email></author></authors>
|
13 |
+
<date>2015-11-09</date>
|
14 |
+
<time>09:45:46</time>
|
15 |
+
<contents><target name="magelocal"><dir name="Juicy"><dir name="Geoip"><dir name="Block"><file name="Countrydefine.php" hash="0032d7797b0dc464fe0edc99d6a7fe7e"/></dir><dir name="Helper"><file name="Data.php" hash="9d3109ad85a80dd6ae87c77170dbbe64"/></dir><dir name="Model"><dir name="Adminhtml"><dir name="Source"><file name="TestingMode.php" hash="2dd38a3453e62a540122f7bafeda852e"/></dir></dir><file name="Geoip.php" hash="846891c8342a30c5b83d23f8b74635b8"/><file name="Observer.php" hash="e6776dca5d7bc8a6d3475bf1cce569bd"/></dir><dir name="etc"><file name="adminhtml.xml" hash="91b7ec025a4c78cfec3ccabbad065ecb"/><file name="config.xml" hash="4e2a8d98144fc907e37ea74e8196ac41"/><file name="system.xml" hash="fa8ad2819935e9ad08a901d334ea8537"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Juicy_Geoip.xml" hash="c4ebc7b11208b6c6b6020cb581ba9b12"/></dir></target><target name="magelib"><dir name="Juicy"><dir name="Geoip"><dir name="Data"><file name="geoip.dat" hash="76476935f1cfea10145cf52d3798f801"/></dir><file name="geoip.inc" hash="09b0a2dd03361a2cb00ef5ec68b4edea"/></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="juicy"><dir name="geoip"><dir name="system"><dir name="config"><dir name="form"><dir name="field"><file name="array.phtml" hash="6335d9d4d1ce8a63793a1dede6061010"/></dir></dir></dir></dir></dir></dir></dir></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.0.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|