Crafty_Clicks_International_Address_Validation - Version 0.1.4

Version Notes

Release History
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.4
Comparing to
See all releases


Code changes from version 0.1.3 to 0.1.4

app/code/local/CraftyClicksValidate/etc/config.xml CHANGED
@@ -12,7 +12,7 @@
12
  <config>
13
  <modules>
14
  <CraftyClicksValidate>
15
- <version>0.1.3</version>
16
  </CraftyClicksValidate>
17
  </modules>
18
 
12
  <config>
13
  <modules>
14
  <CraftyClicksValidate>
15
+ <version>0.1.4</version>
16
  </CraftyClicksValidate>
17
  </modules>
18
 
app/design/frontend/base/default/template/craftyclicksvalidate/post_checkout.phtml CHANGED
@@ -204,7 +204,15 @@ document.observe('dom:loaded', function() {
204
  var country = shipping.country_id;
205
  if($('region_id').childElements('option').length){
206
  $('region').hide();
207
- $('region_id')[shipping.region_id].selected = true;
 
 
 
 
 
 
 
 
208
  } else {
209
  $('region_id').hide();
210
  $('region').value = shipping.region;
204
  var country = shipping.country_id;
205
  if($('region_id').childElements('option').length){
206
  $('region').hide();
207
+
208
+ var options = $$('select#region_id option');
209
+ var len = options.length;
210
+ for (var i = 0; i < len; i++) {
211
+ if(options[i].value == shipping.region_id){
212
+ options[i].selected = true;
213
+ }
214
+ }
215
+ //$('region_id')[shipping.region_id].selected = true;
216
  } else {
217
  $('region_id').hide();
218
  $('region').value = shipping.region;
app/etc/modules/CraftyClicksValidate.xml CHANGED
@@ -4,7 +4,7 @@
4
  <CraftyClicksValidate>
5
  <active>true</active>
6
  <codePool>local</codePool>
7
- <version>0.1.3</version>
8
  </CraftyClicksValidate>
9
  </modules>
10
  </config>
4
  <CraftyClicksValidate>
5
  <active>true</active>
6
  <codePool>local</codePool>
7
+ <version>0.1.4</version>
8
  </CraftyClicksValidate>
9
  </modules>
10
  </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.3</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,8 @@
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.3&#xD;
15
  * Fix: added check for google CDN state.&#xD;
16
  v0.1.2&#xD;
@@ -21,8 +23,8 @@ v0.1.0&#xD;
21
  * Initial Release</notes>
22
  <authors><author><name>Crafty Clicks</name><user>styloa</user><email>support@craftyclicks.co.uk</email></author></authors>
23
  <date>2014-08-21</date>
24
- <time>11:45:46</time>
25
- <contents><target name="mage"><dir name="app"><dir name="etc"><dir name="modules"><file name="CraftyClicksValidate.xml" hash="6c87a1144f53c07a38d74f68cad2a089"/></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="0aca3ef0609b88d3076842eac9aa7635"/><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="42747c98605c58752cf9ffcb1ba5c326"/></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>
26
  <compatible/>
27
  <dependencies><required><php><min>4.0.0</min><max>6.0.0</max></php></required></dependencies>
28
  </package>
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
  &#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;
17
  * Fix: added check for google CDN state.&#xD;
18
  v0.1.2&#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>