OnTechnology_Test3 - Version 1.0.0.1

Version Notes

Mobile development

Download this release

Release Info

Developer Ontechnology
Extension OnTechnology_Test3
Version 1.0.0.1
Comparing to
See all releases


Code changes from version 1.0.0.0 to 1.0.0.1

app/code/community/OnTechnology/Checkout/controllers/Checkout/OnepageController.php CHANGED
@@ -1252,7 +1252,18 @@ $order = $service->getOrder();
1252
  }
1253
 
1254
 
 
 
 
 
 
 
 
1255
 
 
 
 
 
1256
 
1257
 
1258
 
1252
  }
1253
 
1254
 
1255
+ public function curcounAction()
1256
+ {
1257
+
1258
+ $default_currency = Mage::app()->getStore()->getCurrentCurrencyCode();
1259
+ $countryCode = Mage::getStoreConfig('general/country/default');
1260
+
1261
+ $default_country = Mage::getModel('directory/country')->loadByCode($countryCode);
1262
 
1263
+
1264
+ echo 'default_currency_code='.$default_currency.'&default_country_code='.$default_country->iso2_code;
1265
+
1266
+ }
1267
 
1268
 
1269
 
app/code/community/OnTechnology/Mobile/Controller/Varien/Router/Standard.php CHANGED
@@ -30,12 +30,13 @@ class OnTechnology_Mobile_Controller_Varien_Router_Standard extends Mage_Core_Co
30
  if (!$this->_beforeModuleMatch()) {
31
  return false;
32
  }
33
-
34
- if(strstr($_SERVER['HTTP_USER_AGENT'],'iPhone') || strstr($_SERVER['HTTP_USER_AGENT'],'iPod') || strstr($_SERVER['HTTP_USER_AGENT'],'Mobile') || strstr($_SERVER['HTTP_USER_AGENT'],'PlayBook'))
 
35
  {
36
 
37
- $HostKey = 'magic';
38
- $HostURL = 'https://beta.ezimerchant.com/21617/proxy/1';
39
 
40
  $headers = array();
41
 
30
  if (!$this->_beforeModuleMatch()) {
31
  return false;
32
  }
33
+ $merchantid = Mage::getStoreConfig('payment/ezimerchant/merchantid');
34
+ $apikey = Mage::getStoreConfig('payment/ezimerchant/apikey');
35
+ if((strstr($_SERVER['HTTP_USER_AGENT'],'iPhone') || strstr($_SERVER['HTTP_USER_AGENT'],'iPod') || strstr($_SERVER['HTTP_USER_AGENT'],'Mobile') || strstr($_SERVER['HTTP_USER_AGENT'],'PlayBook')) && ($merchantid && $apikey))
36
  {
37
 
38
+ $HostKey = $apikey;
39
+ $HostURL = 'https://secure.ezimerchant.com/'.$merchantid.'/proxy/1';
40
 
41
  $headers = array();
42
 
app/etc/modules/OnTechnology_All.xml DELETED
@@ -1,63 +0,0 @@
1
- <?xml version="1.0"?>
2
- <!--
3
- /**
4
- * ezimerchant Payment Extension
5
- *
6
- * NOTICE OF LICENSE
7
- *
8
- * This source file is subject to the Open Software License (OSL 3.0)
9
- * that is bundled with this package in the file LICENSE.txt.
10
- * It is also available through the world-wide-web at this URL:
11
- * http://opensource.org/licenses/osl-3.0.php
12
- * If you did not receive a copy of the license and are unable to
13
- * obtain it through the world-wide-web, please send an email
14
- * to license@magentocommerce.com so we can send you a copy immediately.
15
- *
16
- * @category ezimerchant
17
- * @package OnTechnology_ezimerchant
18
- * @author On Technology
19
- * @copyright Copyright (c) 2008 On Technology Pty. Ltd. (http://www.ezimerchant.com/)
20
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
21
- */
22
- -->
23
- <config>
24
- <modules>
25
- <OnTechnology_Mobile>
26
- <active>true</active>
27
- <codePool>community</codePool>
28
- </OnTechnology_Mobile>
29
-
30
- <OnTechnology_Ezimerchant>
31
- <active>true</active>
32
- <codePool>community</codePool>
33
- </OnTechnology_Ezimerchant>
34
-
35
- <OnTechnology_Checkout>
36
- <active>true</active>
37
- <codePool>community</codePool>
38
- <depends>
39
- <Mage_Core />
40
- <Mage_Checkout />
41
- </depends>
42
- </OnTechnology_Checkout>
43
-
44
- <OnTechnology_Paypal>
45
- <active>true</active>
46
- <codePool>community</codePool>
47
- <depends>
48
- <Mage_Core />
49
- <Mage_Paypal />
50
- </depends>
51
- </OnTechnology_Paypal>
52
-
53
- <OnTechnology_Sales>
54
- <active>true</active>
55
- <codePool>community</codePool>
56
- <depends>
57
- <Mage_Core />
58
- <Mage_Sales />
59
- </depends>
60
- </OnTechnology_Sales>
61
- </modules>
62
- </config>
63
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>OnTechnology_Test3</name>
4
- <version>1.0.0.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
- <summary>Mobile version</summary>
10
- <description>Mobile version</description>
11
- <notes>Mobile version</notes>
12
- <authors><author><name>Ontechnology</name><user>falconcoupe</user><email>jlivas@ontech.com.au</email></author></authors>
13
- <date>2012-05-04</date>
14
- <time>11:40:44</time>
15
- <contents><target name="magecommunity"><dir name="OnTechnology"><dir name="Checkout"><dir name="controllers"><dir name="Checkout"><file name="CartController.php" hash="0c2d03b00e8b796308decd532f0a7edd"/><file name="OnepageController.php" hash="30ef0b42987a1dfc4908456b0b3f350b"/><file name="simple_html_dom.php" hash="e956e77d0197afa28b8c054b9ed9a771"/><file name="system.xml" hash="b0b0765bc3627d785296a7053f167952"/></dir></dir><dir name="etc"><file name="config.xml" hash="1cfe7ea4c1febb8feca2eb718d899555"/></dir></dir><dir name="Ezimerchant"><dir name="Block"><dir name="Paystep"><file name="Form.php" hash="da582046e00055c963383aeef61cc472"/></dir></dir><dir name="Helper"><file name="Data.php" hash="dc2ac95acc26bde4e59cfd3bb0b66bdc"/></dir><dir name="Model"><dir name="Config"><file name="CustomerGroupAccess.php" hash="106115420e07b43fb8f661a4dbf1a0fc"/><file name="CustomerGroups.php" hash="9f99902a834106da10d8bd85dfca9585"/></dir><dir name="Paystep"><file name="PaymentAction.php" hash="854d96febec7b085fc01f1e78254cc87"/></dir><file name="Paystep.php" hash="02581fd927f4fec8cd6baf152ab2240d"/></dir><dir name="controllers"><file name="PaystepController.php" hash="a2a3c8fd2bc21c8b3066089daed30e51"/></dir><dir name="etc"><file name="config.xml" hash="fc2a8308071e517f0eedf90308489510"/><file name="system.xml" hash="cffdf1c89fee07377504a352a16d377d"/></dir></dir><dir name="Mobile"><dir name="Controller"><dir name="Varien"><dir name="Router"><file name="Standard.php" hash="2ccf4632f4f89be6943a5f93db3bf59d"/></dir></dir></dir><dir name="etc"><file name="config.xml" hash="c1465977bec8ccb4de3b0b472262537e"/></dir></dir><dir name="Paypal"><dir name="controllers"><dir name="Paypal"><file name="ExpressController.php" hash="aa18521ba779fbe0bbadbd8c21176f1b"/></dir></dir><dir name="etc"><file name="config.xml" hash="871f6bdd46135d7d53a70d2046062607"/></dir></dir><dir name="Sales"><dir name="Model"><dir name="Order"><file name="Creditmemo.php" hash="6a85a5efd7a8166a50939c7fe8040265"/></dir></dir><dir name="etc"><file name="config.xml" hash="de7659ab764533ac87c8a5fa2bd255f1"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="OnTechnology_All.xml" hash="3a5be25bf490af79a64e15d5c2518b7b"/></dir></target></contents>
16
  <compatible/>
17
- <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php><package><name>Mage_Core_Modules</name><channel>Community</channel><min>1.6.0.0</min><max>1.7</max></package></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>OnTechnology_Test3</name>
4
+ <version>1.0.0.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
+ <summary>Mobile development</summary>
10
+ <description>Mobile development</description>
11
+ <notes>Mobile development</notes>
12
+ <authors><author><name>ezimerchant</name><user>falconcoupe</user><email>jlivas@ontech.com.au</email></author></authors>
13
+ <date>2012-05-10</date>
14
+ <time>13:09:12</time>
15
+ <contents><target name="magecommunity"><dir name="OnTechnology"><dir name="Checkout"><dir name="controllers"><dir name="Checkout"><file name="CartController.php" hash="0c2d03b00e8b796308decd532f0a7edd"/><file name="OnepageController.php" hash="8083177dca289c04e66807163b223772"/><file name="simple_html_dom.php" hash="e956e77d0197afa28b8c054b9ed9a771"/><file name="system.xml" hash="b0b0765bc3627d785296a7053f167952"/></dir></dir><dir name="etc"><file name="config.xml" hash="1cfe7ea4c1febb8feca2eb718d899555"/></dir></dir><dir name="Ezimerchant"><dir name="Block"><dir name="Paystep"><file name="Form.php" hash="da582046e00055c963383aeef61cc472"/></dir></dir><dir name="Helper"><file name="Data.php" hash="dc2ac95acc26bde4e59cfd3bb0b66bdc"/></dir><dir name="Model"><dir name="Config"><file name="CustomerGroupAccess.php" hash="106115420e07b43fb8f661a4dbf1a0fc"/><file name="CustomerGroups.php" hash="9f99902a834106da10d8bd85dfca9585"/></dir><dir name="Paystep"><file name="PaymentAction.php" hash="854d96febec7b085fc01f1e78254cc87"/></dir><file name="Paystep.php" hash="02581fd927f4fec8cd6baf152ab2240d"/></dir><dir name="controllers"><file name="PaystepController.php" hash="a2a3c8fd2bc21c8b3066089daed30e51"/></dir><dir name="etc"><file name="config.xml" hash="fc2a8308071e517f0eedf90308489510"/><file name="system.xml" hash="cffdf1c89fee07377504a352a16d377d"/></dir></dir><dir name="Mobile"><dir name="Controller"><dir name="Varien"><dir name="Router"><file name="Standard.php" hash="ddec5476d372f5260119eb4e230e0ae4"/></dir></dir></dir><dir name="etc"><file name="config.xml" hash="c1465977bec8ccb4de3b0b472262537e"/></dir></dir><dir name="Paypal"><dir name="controllers"><dir name="Paypal"><file name="ExpressController.php" hash="aa18521ba779fbe0bbadbd8c21176f1b"/></dir></dir><dir name="etc"><file name="config.xml" hash="871f6bdd46135d7d53a70d2046062607"/></dir></dir><dir name="Sales"><dir name="Model"><dir name="Order"><file name="Creditmemo.php" hash="6a85a5efd7a8166a50939c7fe8040265"/></dir></dir><dir name="etc"><file name="config.xml" hash="de7659ab764533ac87c8a5fa2bd255f1"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="OnTechnology_All.xml" hash=""/></dir></target></contents>
16
  <compatible/>
17
+ <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>