Crafty_Clicks_International_Address_Validation - Version 0.1.6

Version Notes

Release History
v0.1.6
* Fix: better handling of config values
* Small improvements based on community feedback
v0.1.5
* Code clean up
v0.1.4
* Fix: better handling of region dropdowns
v0.1.3
* Fix: added check for google CDN state.
v0.1.2
* Stable release
v0.1.1
* Fix: some gmaps suggestions were considered premise level when they were not.
v0.1.0
* Initial Release

Download this release

Release Info

Developer Crafty Clicks
Extension Crafty_Clicks_International_Address_Validation
Version 0.1.6
Comparing to
See all releases


Code changes from version 0.1.4 to 0.1.6

app/code/local/CraftyClicksValidate/controllers/AjaxController.php CHANGED
@@ -1,16 +1,6 @@
1
  <?php
2
  class CraftyClicksValidate_AjaxController extends Mage_Core_Controller_Front_Action{
3
 
4
- public function indexAction()
5
- {
6
- echo 'respect my autoritah';
7
- $order_id = Mage::getSingleton('checkout/session')->getLastRealOrderId();
8
- //$_GET["order_id"];
9
- $order = Mage::getSingleton('sales/order')->loadByIncrementId($order_id);
10
- $shippingAddress = Mage::getModel('sales/order_address')->load($order->shipping_address_id);
11
- print_r($shippingAddress);
12
- }
13
-
14
  public function updateAction(){
15
  $order_id = Mage::getSingleton('checkout/session')->getLastRealOrderId();
16
  //$_GET["order_id"];
@@ -44,7 +34,7 @@ class CraftyClicksValidate_AjaxController extends Mage_Core_Controller_Front_Act
44
  $shippingAddress->addData($data);
45
 
46
  $shippingAddress->implodeStreetAddress()->save();
47
- echo 'ok';
48
  }
49
 
50
  }
1
  <?php
2
  class CraftyClicksValidate_AjaxController extends Mage_Core_Controller_Front_Action{
3
 
 
 
 
 
 
 
 
 
 
 
4
  public function updateAction(){
5
  $order_id = Mage::getSingleton('checkout/session')->getLastRealOrderId();
6
  //$_GET["order_id"];
34
  $shippingAddress->addData($data);
35
 
36
  $shippingAddress->implodeStreetAddress()->save();
37
+ header("Status: 200");
38
  }
39
 
40
  }
app/code/local/CraftyClicksValidate/etc/config.xml CHANGED
@@ -12,7 +12,7 @@
12
  <config>
13
  <modules>
14
  <CraftyClicksValidate>
15
- <version>0.1.4</version>
16
  </CraftyClicksValidate>
17
  </modules>
18
 
12
  <config>
13
  <modules>
14
  <CraftyClicksValidate>
15
+ <version>0.1.6</version>
16
  </CraftyClicksValidate>
17
  </modules>
18
 
app/design/frontend/base/default/template/craftyclicksvalidate/post_checkout.phtml CHANGED
@@ -310,7 +310,7 @@ document.observe('dom:loaded', function() {
310
  region: $('region').getValue()
311
  },
312
  onSuccess: function(transport){
313
- $('correct_box').update('<?php echo $conf['craftyclicksvalidate']['finish_text']; ?>');
314
  }
315
  });
316
  });
@@ -332,8 +332,6 @@ function getDataFromMaps(element){
332
  var result = new Object();
333
  result = output;
334
  result.formatted = element.formatted_address;
335
-
336
- //console.log(result);
337
  return result;
338
 
339
  }
310
  region: $('region').getValue()
311
  },
312
  onSuccess: function(transport){
313
+ $('correct_box').update('<?php echo addslashes($conf['craftyclicksvalidate']['finish_text']); ?>');
314
  }
315
  });
316
  });
332
  var result = new Object();
333
  result = output;
334
  result.formatted = element.formatted_address;
 
 
335
  return result;
336
 
337
  }
app/etc/modules/CraftyClicksValidate.xml CHANGED
@@ -4,7 +4,6 @@
4
  <CraftyClicksValidate>
5
  <active>true</active>
6
  <codePool>local</codePool>
7
- <version>0.1.4</version>
8
  </CraftyClicksValidate>
9
  </modules>
10
  </config>
4
  <CraftyClicksValidate>
5
  <active>true</active>
6
  <codePool>local</codePool>
 
7
  </CraftyClicksValidate>
8
  </modules>
9
  </config>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Crafty_Clicks_International_Address_Validation</name>
4
- <version>0.1.4</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
@@ -11,6 +11,11 @@
11
  &#xD;
12
  Upon completing a checkout, the shipping address gets validated, to ensure the existence of the location. In case the address cannot be confirmed, suggestions to fix the address will be shown, with the option to manually check and fix the address.</description>
13
  <notes>Release History&#xD;
 
 
 
 
 
14
  v0.1.4&#xD;
15
  * Fix: better handling of region dropdowns&#xD;
16
  v0.1.3&#xD;
@@ -22,9 +27,9 @@ v0.1.1&#xD;
22
  v0.1.0&#xD;
23
  * Initial Release</notes>
24
  <authors><author><name>Crafty Clicks</name><user>styloa</user><email>support@craftyclicks.co.uk</email></author></authors>
25
- <date>2014-08-21</date>
26
- <time>12:37:03</time>
27
- <contents><target name="mage"><dir name="app"><dir name="etc"><dir name="modules"><file name="CraftyClicksValidate.xml" hash="cb665e10c0f96742f62a0225eeb010d7"/></dir></dir><dir name="code"><dir name="local"><dir name="CraftyClicksValidate"><dir><dir name="Helper"><file name="Data.php" hash="a96df9efe70446493039881397aa37bf"/></dir><dir name="controllers"><file name="AjaxController.php" hash="cde744ab853107c3c3eb520b1421e5fa"/></dir><dir name="etc"><file name="config.xml" hash="0b14073288fae9c4421e0893f3f481dc"/><file name="system.xml" hash="e0932e8c5838d5a8855ffb4dd33560cd"/></dir></dir></dir></dir></dir><dir name="design"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="craftyclicks_validate.xml" hash="20bb120782c6b81b71538acf2e2840ff"/></dir><dir name="template"><dir name="craftyclicksvalidate"><file name="post_checkout.phtml" hash="3e942d1799c2744b287cd75ab6222b7b"/></dir></dir></dir></dir></dir></dir></dir><dir name="skin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="craftyclicksvalidate"><file name="validate.css" hash="353e6e8267ce0a7fccad15bc1d1418cd"/><file name="validate_old.css" hash="3a4dd9986bdf93462afb0c6a20ac838e"/></dir></dir><dir name="images"><dir name="craftyclicksvalidate"><file name="crafty_validate_busy.gif" hash="7660c91e294e91f80219d3c8f6512dca"/></dir></dir></dir></dir></dir></dir></target></contents>
28
  <compatible/>
29
  <dependencies><required><php><min>4.0.0</min><max>6.0.0</max></php></required></dependencies>
30
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Crafty_Clicks_International_Address_Validation</name>
4
+ <version>0.1.6</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
11
  &#xD;
12
  Upon completing a checkout, the shipping address gets validated, to ensure the existence of the location. In case the address cannot be confirmed, suggestions to fix the address will be shown, with the option to manually check and fix the address.</description>
13
  <notes>Release History&#xD;
14
+ v0.1.6&#xD;
15
+ * Fix: better handling of config values&#xD;
16
+ * Small improvements based on community feedback&#xD;
17
+ v0.1.5&#xD;
18
+ * Code clean up&#xD;
19
  v0.1.4&#xD;
20
  * Fix: better handling of region dropdowns&#xD;
21
  v0.1.3&#xD;
27
  v0.1.0&#xD;
28
  * Initial Release</notes>
29
  <authors><author><name>Crafty Clicks</name><user>styloa</user><email>support@craftyclicks.co.uk</email></author></authors>
30
+ <date>2014-09-15</date>
31
+ <time>10:40:33</time>
32
+ <contents><target name="mage"><dir name="app"><dir name="etc"><dir name="modules"><file name="CraftyClicksValidate.xml" hash="cffa088a0069f08f4186c466b5bab5ba"/></dir></dir><dir name="code"><dir name="local"><dir name="CraftyClicksValidate"><dir><dir name="Helper"><file name="Data.php" hash="a96df9efe70446493039881397aa37bf"/></dir><dir name="controllers"><file name="AjaxController.php" hash="3fe1c79849d1efbca1268dcad12f0baa"/></dir><dir name="etc"><file name="config.xml" hash="b5520c09adb91d358f11cf9f99ad7854"/><file name="system.xml" hash="e0932e8c5838d5a8855ffb4dd33560cd"/></dir></dir></dir></dir></dir><dir name="design"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="craftyclicks_validate.xml" hash="20bb120782c6b81b71538acf2e2840ff"/></dir><dir name="template"><dir name="craftyclicksvalidate"><file name="post_checkout.phtml" hash="669a7d0763f7f9620b7ee93f5a71b6c6"/></dir></dir></dir></dir></dir></dir></dir><dir name="skin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="craftyclicksvalidate"><file name="validate.css" hash="353e6e8267ce0a7fccad15bc1d1418cd"/><file name="validate_old.css" hash="3a4dd9986bdf93462afb0c6a20ac838e"/></dir></dir><dir name="images"><dir name="craftyclicksvalidate"><file name="crafty_validate_busy.gif" hash="7660c91e294e91f80219d3c8f6512dca"/></dir></dir></dir></dir></dir></dir></target></contents>
33
  <compatible/>
34
  <dependencies><required><php><min>4.0.0</min><max>6.0.0</max></php></required></dependencies>
35
  </package>