Addrexx_AddressValidation - Version 1.1.8

Version Notes

This extension has been in use with community and enterprise customers since November, 2012.

Download this release

Release Info

Developer Joseph De La Cruz
Extension Addrexx_AddressValidation
Version 1.1.8
Comparing to
See all releases


Code changes from version 1.1.7 to 1.1.8

app/design/adminhtml/default/default/template/addrexx/common_config.phtml CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  $conf = Mage::getStoreConfig('general');
3
- $conf3 = Mage::getStoreConfig('tab1');
4
  $activeFrontend = ($conf3['general']['active_frontend']);
5
  $activeAdmin = ($conf3['general']['active_admin']);
6
  $confx = Mage::getStoreConfig('advanced/modules_disable_output/Addrexx');
@@ -9,23 +9,9 @@ $poX = ($conf3['general']['pobox']);
9
  $nameX = ($conf3['general']['names']);
10
  $zipX = ($conf3['general']['zip4']);
11
  $accessTokenFrontend = ($conf3['general']['access_token_frontend']);
12
- $accessTokenAdmin = ($conf3['general']['access_token_admin']);
13
- ?>
14
- <script type="text/javascript">
15
- activeAddrexx = "<?= $confx ?>";
16
- activeFrontend = "<?= $activeFrontend ?>";
17
- activeAdmin = "<?= $activeAdmin ?>";
18
- url = "<?= $url ?>";
19
- poCheck = "<?= $poX ?>";
20
- nameAutocomplete = "<?= $nameX ?>";
21
- zipPlusFour = "<?= $zipX ?>";
22
- accessTokenFrontend = "<?= $accessTokenFrontend ?>";
23
- accessTokenAdmin = "<?= $accessTokenAdmin ?>";
24
- var ww = location.hostname;
25
- ww = ww.replace("www.","");
26
- ww = ww.replace(/-/g,""); //remove dashes since function can't have them
27
- var _DemoURL = "https://s3.amazonaws.com/xxredda";
28
- var v = new Date().getMilliseconds();
29
  /*! head.load - v1.0.3 */
30
  (function(n,t){"use strict";function w(){}function u(n,t){if(n){typeof n=="object"&&(n=[].slice.call(n));for(var i=0,r=n.length;i<r;i++)t.call(n,n[i],i)}}function it(n,i){var r=Object.prototype.toString.call(i).slice(8,-1);return i!==t&&i!==null&&r===n}function s(n){return it("Function",n)}function a(n){return it("Array",n)}function et(n){var i=n.split("/"),t=i[i.length-1],r=t.indexOf("?");return r!==-1?t.substring(0,r):t}function f(n){(n=n||w,n._done)||(n(),n._done=1)}function ot(n,t,r,u){var f=typeof n=="object"?n:{test:n,success:!t?!1:a(t)?t:[t],failure:!r?!1:a(r)?r:[r],callback:u||w},e=!!f.test;return e&&!!f.success?(f.success.push(f.callback),i.load.apply(null,f.success)):e||!f.failure?u():(f.failure.push(f.callback),i.load.apply(null,f.failure)),i}function v(n){var t={},i,r;if(typeof n=="object")for(i in n)!n[i]||(t={name:i,url:n[i]});else t={name:et(n),url:n};return(r=c[t.name],r&&r.url===t.url)?r:(c[t.name]=t,t)}function y(n){n=n||c;for(var t in n)if(n.hasOwnProperty(t)&&n[t].state!==l)return!1;return!0}function st(n){n.state=ft;u(n.onpreload,function(n){n.call()})}function ht(n){n.state===t&&(n.state=nt,n.onpreload=[],rt({url:n.url,type:"cache"},function(){st(n)}))}function ct(){var n=arguments,t=n[n.length-1],r=[].slice.call(n,1),f=r[0];return(s(t)||(t=null),a(n[0]))?(n[0].push(t),i.load.apply(null,n[0]),i):(f?(u(r,function(n){s(n)||!n||ht(v(n))}),b(v(n[0]),s(f)?f:function(){i.load.apply(null,r)})):b(v(n[0])),i)}function lt(){var n=arguments,t=n[n.length-1],r={};return(s(t)||(t=null),a(n[0]))?(n[0].push(t),i.load.apply(null,n[0]),i):(u(n,function(n){n!==t&&(n=v(n),r[n.name]=n)}),u(n,function(n){n!==t&&(n=v(n),b(n,function(){y(r)&&f(t)}))}),i)}function b(n,t){if(t=t||w,n.state===l){t();return}if(n.state===tt){i.ready(n.name,t);return}if(n.state===nt){n.onpreload.push(function(){b(n,t)});return}n.state=tt;rt(n,function(){n.state=l;t();u(h[n.name],function(n){f(n)});o&&y()&&u(h.ALL,function(n){f(n)})})}function at(n){n=n||"";var t=n.split("?")[0].split(".");return t[t.length-1].toLowerCase()}function rt(t,i){function e(t){t=t||n.event;u.onload=u.onreadystatechange=u.onerror=null;i()}function o(f){f=f||n.event;(f.type==="load"||/loaded|complete/.test(u.readyState)&&(!r.documentMode||r.documentMode<9))&&(n.clearTimeout(t.errorTimeout),n.clearTimeout(t.cssTimeout),u.onload=u.onreadystatechange=u.onerror=null,i())}function s(){if(t.state!==l&&t.cssRetries<=20){for(var i=0,f=r.styleSheets.length;i<f;i++)if(r.styleSheets[i].href===u.href){o({type:"load"});return}t.cssRetries++;t.cssTimeout=n.setTimeout(s,250)}}var u,h,f;i=i||w;h=at(t.url);h==="css"?(u=r.createElement("link"),u.type="text/"+(t.type||"css"),u.rel="stylesheet",u.href=t.url,t.cssRetries=0,t.cssTimeout=n.setTimeout(s,500)):(u=r.createElement("script"),u.type="text/"+(t.type||"javascript"),u.src=t.url);u.onload=u.onreadystatechange=o;u.onerror=e;u.async=!1;u.defer=!1;t.errorTimeout=n.setTimeout(function(){e({type:"timeout"})},7e3);f=r.head||r.getElementsByTagName("head")[0];f.insertBefore(u,f.lastChild)}function vt(){for(var t,u=r.getElementsByTagName("script"),n=0,f=u.length;n<f;n++)if(t=u[n].getAttribute("data-headjs-load"),!!t){i.load(t);return}}function yt(n,t){var v,p,e;return n===r?(o?f(t):d.push(t),i):(s(n)&&(t=n,n="ALL"),a(n))?(v={},u(n,function(n){v[n]=c[n];i.ready(n,function(){y(v)&&f(t)})}),i):typeof n!="string"||!s(t)?i:(p=c[n],p&&p.state===l||n==="ALL"&&y()&&o)?(f(t),i):(e=h[n],e?e.push(t):e=h[n]=[t],i)}function e(){if(!r.body){n.clearTimeout(i.readyTimeout);i.readyTimeout=n.setTimeout(e,50);return}o||(o=!0,vt(),u(d,function(n){f(n)}))}function k(){r.addEventListener?(r.removeEventListener("DOMContentLoaded",k,!1),e()):r.readyState==="complete"&&(r.detachEvent("onreadystatechange",k),e())}var r=n.document,d=[],h={},c={},ut="async"in r.createElement("script")||"MozAppearance"in r.documentElement.style||n.opera,o,g=n.head_conf&&n.head_conf.head||"head",i=n[g]=n[g]||function(){i.ready.apply(null,arguments)},nt=1,ft=2,tt=3,l=4,p;if(r.readyState==="complete")e();else if(r.addEventListener)r.addEventListener("DOMContentLoaded",k,!1),n.addEventListener("load",e,!1);else{r.attachEvent("onreadystatechange",k);n.attachEvent("onload",e);p=!1;try{p=!n.frameElement&&r.documentElement}catch(wt){}p&&p.doScroll&&function pt(){if(!o){try{p.doScroll("left")}catch(t){n.clearTimeout(i.readyTimeout);i.readyTimeout=n.setTimeout(pt,50);return}e()}}()}i.load=i.js=ut?lt:ct;i.test=ot;i.ready=yt;i.ready(r,function(){y()&&u(h.ALL,function(n){f(n)});i.feature&&i.feature("domloaded",!0)})})(window);
31
  if (activeAdmin == 1 && activeAddrexx == 0) {
1
  <?php
2
  $conf = Mage::getStoreConfig('general');
3
+ $conf3 = Mage::getStoreConfig('tab1'); //addrexx config panel is tab1
4
  $activeFrontend = ($conf3['general']['active_frontend']);
5
  $activeAdmin = ($conf3['general']['active_admin']);
6
  $confx = Mage::getStoreConfig('advanced/modules_disable_output/Addrexx');
9
  $nameX = ($conf3['general']['names']);
10
  $zipX = ($conf3['general']['zip4']);
11
  $accessTokenFrontend = ($conf3['general']['access_token_frontend']);
12
+ $accessTokenAdmin = ($conf3['general']['access_token_admin']); //frontend access token
13
+ echo("<script>activeAddrexx = '$confx', activeFrontend = '$activeFrontend', activeAdmin = '$activeAdmin', url = '$url', poCheck = '$poX', nameAutocomplete = '$nameX', zipPlusFour = '$zipX', accessTokenFrontend = '$accessTokenFrontend', accessTokenAdmin = '$accessTokenAdmin'; </script>");?>
14
+ <script type="text/javascript"> var ww = location.hostname; ww = ww.replace("www.",""); ww = ww.replace(/-/g,""); //remove dashes since function can't have them
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  /*! head.load - v1.0.3 */
16
  (function(n,t){"use strict";function w(){}function u(n,t){if(n){typeof n=="object"&&(n=[].slice.call(n));for(var i=0,r=n.length;i<r;i++)t.call(n,n[i],i)}}function it(n,i){var r=Object.prototype.toString.call(i).slice(8,-1);return i!==t&&i!==null&&r===n}function s(n){return it("Function",n)}function a(n){return it("Array",n)}function et(n){var i=n.split("/"),t=i[i.length-1],r=t.indexOf("?");return r!==-1?t.substring(0,r):t}function f(n){(n=n||w,n._done)||(n(),n._done=1)}function ot(n,t,r,u){var f=typeof n=="object"?n:{test:n,success:!t?!1:a(t)?t:[t],failure:!r?!1:a(r)?r:[r],callback:u||w},e=!!f.test;return e&&!!f.success?(f.success.push(f.callback),i.load.apply(null,f.success)):e||!f.failure?u():(f.failure.push(f.callback),i.load.apply(null,f.failure)),i}function v(n){var t={},i,r;if(typeof n=="object")for(i in n)!n[i]||(t={name:i,url:n[i]});else t={name:et(n),url:n};return(r=c[t.name],r&&r.url===t.url)?r:(c[t.name]=t,t)}function y(n){n=n||c;for(var t in n)if(n.hasOwnProperty(t)&&n[t].state!==l)return!1;return!0}function st(n){n.state=ft;u(n.onpreload,function(n){n.call()})}function ht(n){n.state===t&&(n.state=nt,n.onpreload=[],rt({url:n.url,type:"cache"},function(){st(n)}))}function ct(){var n=arguments,t=n[n.length-1],r=[].slice.call(n,1),f=r[0];return(s(t)||(t=null),a(n[0]))?(n[0].push(t),i.load.apply(null,n[0]),i):(f?(u(r,function(n){s(n)||!n||ht(v(n))}),b(v(n[0]),s(f)?f:function(){i.load.apply(null,r)})):b(v(n[0])),i)}function lt(){var n=arguments,t=n[n.length-1],r={};return(s(t)||(t=null),a(n[0]))?(n[0].push(t),i.load.apply(null,n[0]),i):(u(n,function(n){n!==t&&(n=v(n),r[n.name]=n)}),u(n,function(n){n!==t&&(n=v(n),b(n,function(){y(r)&&f(t)}))}),i)}function b(n,t){if(t=t||w,n.state===l){t();return}if(n.state===tt){i.ready(n.name,t);return}if(n.state===nt){n.onpreload.push(function(){b(n,t)});return}n.state=tt;rt(n,function(){n.state=l;t();u(h[n.name],function(n){f(n)});o&&y()&&u(h.ALL,function(n){f(n)})})}function at(n){n=n||"";var t=n.split("?")[0].split(".");return t[t.length-1].toLowerCase()}function rt(t,i){function e(t){t=t||n.event;u.onload=u.onreadystatechange=u.onerror=null;i()}function o(f){f=f||n.event;(f.type==="load"||/loaded|complete/.test(u.readyState)&&(!r.documentMode||r.documentMode<9))&&(n.clearTimeout(t.errorTimeout),n.clearTimeout(t.cssTimeout),u.onload=u.onreadystatechange=u.onerror=null,i())}function s(){if(t.state!==l&&t.cssRetries<=20){for(var i=0,f=r.styleSheets.length;i<f;i++)if(r.styleSheets[i].href===u.href){o({type:"load"});return}t.cssRetries++;t.cssTimeout=n.setTimeout(s,250)}}var u,h,f;i=i||w;h=at(t.url);h==="css"?(u=r.createElement("link"),u.type="text/"+(t.type||"css"),u.rel="stylesheet",u.href=t.url,t.cssRetries=0,t.cssTimeout=n.setTimeout(s,500)):(u=r.createElement("script"),u.type="text/"+(t.type||"javascript"),u.src=t.url);u.onload=u.onreadystatechange=o;u.onerror=e;u.async=!1;u.defer=!1;t.errorTimeout=n.setTimeout(function(){e({type:"timeout"})},7e3);f=r.head||r.getElementsByTagName("head")[0];f.insertBefore(u,f.lastChild)}function vt(){for(var t,u=r.getElementsByTagName("script"),n=0,f=u.length;n<f;n++)if(t=u[n].getAttribute("data-headjs-load"),!!t){i.load(t);return}}function yt(n,t){var v,p,e;return n===r?(o?f(t):d.push(t),i):(s(n)&&(t=n,n="ALL"),a(n))?(v={},u(n,function(n){v[n]=c[n];i.ready(n,function(){y(v)&&f(t)})}),i):typeof n!="string"||!s(t)?i:(p=c[n],p&&p.state===l||n==="ALL"&&y()&&o)?(f(t),i):(e=h[n],e?e.push(t):e=h[n]=[t],i)}function e(){if(!r.body){n.clearTimeout(i.readyTimeout);i.readyTimeout=n.setTimeout(e,50);return}o||(o=!0,vt(),u(d,function(n){f(n)}))}function k(){r.addEventListener?(r.removeEventListener("DOMContentLoaded",k,!1),e()):r.readyState==="complete"&&(r.detachEvent("onreadystatechange",k),e())}var r=n.document,d=[],h={},c={},ut="async"in r.createElement("script")||"MozAppearance"in r.documentElement.style||n.opera,o,g=n.head_conf&&n.head_conf.head||"head",i=n[g]=n[g]||function(){i.ready.apply(null,arguments)},nt=1,ft=2,tt=3,l=4,p;if(r.readyState==="complete")e();else if(r.addEventListener)r.addEventListener("DOMContentLoaded",k,!1),n.addEventListener("load",e,!1);else{r.attachEvent("onreadystatechange",k);n.attachEvent("onload",e);p=!1;try{p=!n.frameElement&&r.documentElement}catch(wt){}p&&p.doScroll&&function pt(){if(!o){try{p.doScroll("left")}catch(t){n.clearTimeout(i.readyTimeout);i.readyTimeout=n.setTimeout(pt,50);return}e()}}()}i.load=i.js=ut?lt:ct;i.test=ot;i.ready=yt;i.ready(r,function(){y()&&u(h.ALL,function(n){f(n)});i.feature&&i.feature("domloaded",!0)})})(window);
17
  if (activeAdmin == 1 && activeAddrexx == 0) {
app/design/frontend/{default → base}/default/layout/addrexx_frontend.xml RENAMED
File without changes
app/design/frontend/base/default/template/addrexx/common_config.phtml CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  $conf = Mage::getStoreConfig('general');
3
- $conf3 = Mage::getStoreConfig('tab1');
4
  $activeFrontend = ($conf3['general']['active_frontend']);
5
  $activeAdmin = ($conf3['general']['active_admin']);
6
  $confx = Mage::getStoreConfig('advanced/modules_disable_output/Addrexx');
@@ -9,38 +9,17 @@ $poX = ($conf3['general']['pobox']);
9
  $nameX = ($conf3['general']['names']);
10
  $zipX = ($conf3['general']['zip4']);
11
  $accessTokenFrontend = ($conf3['general']['access_token_frontend']);
12
- $accessTokenAdmin = ($conf3['general']['access_token_admin']);
13
- ?>
14
- <script type="text/javascript">
15
- activeAddrexx = "<?= $confx ?>";
16
- activeFrontend = "<?= $activeFrontend ?>";
17
- activeAdmin = "<?= $activeAdmin ?>";
18
- url = "<?= $url ?>";
19
- poCheck = "<?= $poX ?>";
20
- nameAutocomplete = "<?= $nameX ?>";
21
- zipPlusFour = "<?= $zipX ?>";
22
- accessTokenFrontend = "<?= $accessTokenFrontend ?>";
23
- accessTokenAdmin = "<?= $accessTokenAdmin ?>";
24
- var ww = location.hostname;
25
- ww = ww.replace("www.","");
26
- ww = ww.replace(/-/g,""); //remove dashes since function can't have them
27
- var _DemoURL = "https://s3.amazonaws.com/xxredda";
28
- var v = new Date().getMilliseconds();
29
  /*! head.load - v1.0.3 */
30
  (function(n,t){"use strict";function w(){}function u(n,t){if(n){typeof n=="object"&&(n=[].slice.call(n));for(var i=0,r=n.length;i<r;i++)t.call(n,n[i],i)}}function it(n,i){var r=Object.prototype.toString.call(i).slice(8,-1);return i!==t&&i!==null&&r===n}function s(n){return it("Function",n)}function a(n){return it("Array",n)}function et(n){var i=n.split("/"),t=i[i.length-1],r=t.indexOf("?");return r!==-1?t.substring(0,r):t}function f(n){(n=n||w,n._done)||(n(),n._done=1)}function ot(n,t,r,u){var f=typeof n=="object"?n:{test:n,success:!t?!1:a(t)?t:[t],failure:!r?!1:a(r)?r:[r],callback:u||w},e=!!f.test;return e&&!!f.success?(f.success.push(f.callback),i.load.apply(null,f.success)):e||!f.failure?u():(f.failure.push(f.callback),i.load.apply(null,f.failure)),i}function v(n){var t={},i,r;if(typeof n=="object")for(i in n)!n[i]||(t={name:i,url:n[i]});else t={name:et(n),url:n};return(r=c[t.name],r&&r.url===t.url)?r:(c[t.name]=t,t)}function y(n){n=n||c;for(var t in n)if(n.hasOwnProperty(t)&&n[t].state!==l)return!1;return!0}function st(n){n.state=ft;u(n.onpreload,function(n){n.call()})}function ht(n){n.state===t&&(n.state=nt,n.onpreload=[],rt({url:n.url,type:"cache"},function(){st(n)}))}function ct(){var n=arguments,t=n[n.length-1],r=[].slice.call(n,1),f=r[0];return(s(t)||(t=null),a(n[0]))?(n[0].push(t),i.load.apply(null,n[0]),i):(f?(u(r,function(n){s(n)||!n||ht(v(n))}),b(v(n[0]),s(f)?f:function(){i.load.apply(null,r)})):b(v(n[0])),i)}function lt(){var n=arguments,t=n[n.length-1],r={};return(s(t)||(t=null),a(n[0]))?(n[0].push(t),i.load.apply(null,n[0]),i):(u(n,function(n){n!==t&&(n=v(n),r[n.name]=n)}),u(n,function(n){n!==t&&(n=v(n),b(n,function(){y(r)&&f(t)}))}),i)}function b(n,t){if(t=t||w,n.state===l){t();return}if(n.state===tt){i.ready(n.name,t);return}if(n.state===nt){n.onpreload.push(function(){b(n,t)});return}n.state=tt;rt(n,function(){n.state=l;t();u(h[n.name],function(n){f(n)});o&&y()&&u(h.ALL,function(n){f(n)})})}function at(n){n=n||"";var t=n.split("?")[0].split(".");return t[t.length-1].toLowerCase()}function rt(t,i){function e(t){t=t||n.event;u.onload=u.onreadystatechange=u.onerror=null;i()}function o(f){f=f||n.event;(f.type==="load"||/loaded|complete/.test(u.readyState)&&(!r.documentMode||r.documentMode<9))&&(n.clearTimeout(t.errorTimeout),n.clearTimeout(t.cssTimeout),u.onload=u.onreadystatechange=u.onerror=null,i())}function s(){if(t.state!==l&&t.cssRetries<=20){for(var i=0,f=r.styleSheets.length;i<f;i++)if(r.styleSheets[i].href===u.href){o({type:"load"});return}t.cssRetries++;t.cssTimeout=n.setTimeout(s,250)}}var u,h,f;i=i||w;h=at(t.url);h==="css"?(u=r.createElement("link"),u.type="text/"+(t.type||"css"),u.rel="stylesheet",u.href=t.url,t.cssRetries=0,t.cssTimeout=n.setTimeout(s,500)):(u=r.createElement("script"),u.type="text/"+(t.type||"javascript"),u.src=t.url);u.onload=u.onreadystatechange=o;u.onerror=e;u.async=!1;u.defer=!1;t.errorTimeout=n.setTimeout(function(){e({type:"timeout"})},7e3);f=r.head||r.getElementsByTagName("head")[0];f.insertBefore(u,f.lastChild)}function vt(){for(var t,u=r.getElementsByTagName("script"),n=0,f=u.length;n<f;n++)if(t=u[n].getAttribute("data-headjs-load"),!!t){i.load(t);return}}function yt(n,t){var v,p,e;return n===r?(o?f(t):d.push(t),i):(s(n)&&(t=n,n="ALL"),a(n))?(v={},u(n,function(n){v[n]=c[n];i.ready(n,function(){y(v)&&f(t)})}),i):typeof n!="string"||!s(t)?i:(p=c[n],p&&p.state===l||n==="ALL"&&y()&&o)?(f(t),i):(e=h[n],e?e.push(t):e=h[n]=[t],i)}function e(){if(!r.body){n.clearTimeout(i.readyTimeout);i.readyTimeout=n.setTimeout(e,50);return}o||(o=!0,vt(),u(d,function(n){f(n)}))}function k(){r.addEventListener?(r.removeEventListener("DOMContentLoaded",k,!1),e()):r.readyState==="complete"&&(r.detachEvent("onreadystatechange",k),e())}var r=n.document,d=[],h={},c={},ut="async"in r.createElement("script")||"MozAppearance"in r.documentElement.style||n.opera,o,g=n.head_conf&&n.head_conf.head||"head",i=n[g]=n[g]||function(){i.ready.apply(null,arguments)},nt=1,ft=2,tt=3,l=4,p;if(r.readyState==="complete")e();else if(r.addEventListener)r.addEventListener("DOMContentLoaded",k,!1),n.addEventListener("load",e,!1);else{r.attachEvent("onreadystatechange",k);n.attachEvent("onload",e);p=!1;try{p=!n.frameElement&&r.documentElement}catch(wt){}p&&p.doScroll&&function pt(){if(!o){try{p.doScroll("left")}catch(t){n.clearTimeout(i.readyTimeout);i.readyTimeout=n.setTimeout(pt,50);return}e()}}()}i.load=i.js=ut?lt:ct;i.test=ot;i.ready=yt;i.ready(r,function(){y()&&u(h.ALL,function(n){f(n)});i.feature&&i.feature("domloaded",!0)})})(window);
31
  if (activeFrontend == 1 && activeAddrexx == 0) {
32
- head.ready(document, function() {
33
- head.load(
34
- "https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js",
35
- "https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js",
36
- "https://s3.amazonaws.com/xxredda/" + ww + "/varxFrontend.js",
37
- "https://s3.amazonaws.com/xxredda/" + ww + "/xcorex.js", function() {
38
- // Call a function when done
39
- });
40
- });
41
  }
42
- </script>
43
-
44
-
45
-
46
-
1
  <?php
2
  $conf = Mage::getStoreConfig('general');
3
+ $conf3 = Mage::getStoreConfig('tab1'); //addrexx config panel is tab1
4
  $activeFrontend = ($conf3['general']['active_frontend']);
5
  $activeAdmin = ($conf3['general']['active_admin']);
6
  $confx = Mage::getStoreConfig('advanced/modules_disable_output/Addrexx');
9
  $nameX = ($conf3['general']['names']);
10
  $zipX = ($conf3['general']['zip4']);
11
  $accessTokenFrontend = ($conf3['general']['access_token_frontend']);
12
+ $accessTokenAdmin = ($conf3['general']['access_token_admin']); //frontend access token
13
+ echo("<script>activeAddrexx = '$confx', activeFrontend = '$activeFrontend', activeAdmin = '$activeAdmin', url = '$url', poCheck = '$poX', nameAutocomplete = '$nameX', zipPlusFour = '$zipX', accessTokenFrontend = '$accessTokenFrontend', accessTokenAdmin = '$accessTokenAdmin'; </script>");?>
14
+ <script type="text/javascript"> var ww = location.hostname; ww = ww.replace("www.",""); ww = ww.replace(/-/g,""); //remove dashes since function can't have them
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  /*! head.load - v1.0.3 */
16
  (function(n,t){"use strict";function w(){}function u(n,t){if(n){typeof n=="object"&&(n=[].slice.call(n));for(var i=0,r=n.length;i<r;i++)t.call(n,n[i],i)}}function it(n,i){var r=Object.prototype.toString.call(i).slice(8,-1);return i!==t&&i!==null&&r===n}function s(n){return it("Function",n)}function a(n){return it("Array",n)}function et(n){var i=n.split("/"),t=i[i.length-1],r=t.indexOf("?");return r!==-1?t.substring(0,r):t}function f(n){(n=n||w,n._done)||(n(),n._done=1)}function ot(n,t,r,u){var f=typeof n=="object"?n:{test:n,success:!t?!1:a(t)?t:[t],failure:!r?!1:a(r)?r:[r],callback:u||w},e=!!f.test;return e&&!!f.success?(f.success.push(f.callback),i.load.apply(null,f.success)):e||!f.failure?u():(f.failure.push(f.callback),i.load.apply(null,f.failure)),i}function v(n){var t={},i,r;if(typeof n=="object")for(i in n)!n[i]||(t={name:i,url:n[i]});else t={name:et(n),url:n};return(r=c[t.name],r&&r.url===t.url)?r:(c[t.name]=t,t)}function y(n){n=n||c;for(var t in n)if(n.hasOwnProperty(t)&&n[t].state!==l)return!1;return!0}function st(n){n.state=ft;u(n.onpreload,function(n){n.call()})}function ht(n){n.state===t&&(n.state=nt,n.onpreload=[],rt({url:n.url,type:"cache"},function(){st(n)}))}function ct(){var n=arguments,t=n[n.length-1],r=[].slice.call(n,1),f=r[0];return(s(t)||(t=null),a(n[0]))?(n[0].push(t),i.load.apply(null,n[0]),i):(f?(u(r,function(n){s(n)||!n||ht(v(n))}),b(v(n[0]),s(f)?f:function(){i.load.apply(null,r)})):b(v(n[0])),i)}function lt(){var n=arguments,t=n[n.length-1],r={};return(s(t)||(t=null),a(n[0]))?(n[0].push(t),i.load.apply(null,n[0]),i):(u(n,function(n){n!==t&&(n=v(n),r[n.name]=n)}),u(n,function(n){n!==t&&(n=v(n),b(n,function(){y(r)&&f(t)}))}),i)}function b(n,t){if(t=t||w,n.state===l){t();return}if(n.state===tt){i.ready(n.name,t);return}if(n.state===nt){n.onpreload.push(function(){b(n,t)});return}n.state=tt;rt(n,function(){n.state=l;t();u(h[n.name],function(n){f(n)});o&&y()&&u(h.ALL,function(n){f(n)})})}function at(n){n=n||"";var t=n.split("?")[0].split(".");return t[t.length-1].toLowerCase()}function rt(t,i){function e(t){t=t||n.event;u.onload=u.onreadystatechange=u.onerror=null;i()}function o(f){f=f||n.event;(f.type==="load"||/loaded|complete/.test(u.readyState)&&(!r.documentMode||r.documentMode<9))&&(n.clearTimeout(t.errorTimeout),n.clearTimeout(t.cssTimeout),u.onload=u.onreadystatechange=u.onerror=null,i())}function s(){if(t.state!==l&&t.cssRetries<=20){for(var i=0,f=r.styleSheets.length;i<f;i++)if(r.styleSheets[i].href===u.href){o({type:"load"});return}t.cssRetries++;t.cssTimeout=n.setTimeout(s,250)}}var u,h,f;i=i||w;h=at(t.url);h==="css"?(u=r.createElement("link"),u.type="text/"+(t.type||"css"),u.rel="stylesheet",u.href=t.url,t.cssRetries=0,t.cssTimeout=n.setTimeout(s,500)):(u=r.createElement("script"),u.type="text/"+(t.type||"javascript"),u.src=t.url);u.onload=u.onreadystatechange=o;u.onerror=e;u.async=!1;u.defer=!1;t.errorTimeout=n.setTimeout(function(){e({type:"timeout"})},7e3);f=r.head||r.getElementsByTagName("head")[0];f.insertBefore(u,f.lastChild)}function vt(){for(var t,u=r.getElementsByTagName("script"),n=0,f=u.length;n<f;n++)if(t=u[n].getAttribute("data-headjs-load"),!!t){i.load(t);return}}function yt(n,t){var v,p,e;return n===r?(o?f(t):d.push(t),i):(s(n)&&(t=n,n="ALL"),a(n))?(v={},u(n,function(n){v[n]=c[n];i.ready(n,function(){y(v)&&f(t)})}),i):typeof n!="string"||!s(t)?i:(p=c[n],p&&p.state===l||n==="ALL"&&y()&&o)?(f(t),i):(e=h[n],e?e.push(t):e=h[n]=[t],i)}function e(){if(!r.body){n.clearTimeout(i.readyTimeout);i.readyTimeout=n.setTimeout(e,50);return}o||(o=!0,vt(),u(d,function(n){f(n)}))}function k(){r.addEventListener?(r.removeEventListener("DOMContentLoaded",k,!1),e()):r.readyState==="complete"&&(r.detachEvent("onreadystatechange",k),e())}var r=n.document,d=[],h={},c={},ut="async"in r.createElement("script")||"MozAppearance"in r.documentElement.style||n.opera,o,g=n.head_conf&&n.head_conf.head||"head",i=n[g]=n[g]||function(){i.ready.apply(null,arguments)},nt=1,ft=2,tt=3,l=4,p;if(r.readyState==="complete")e();else if(r.addEventListener)r.addEventListener("DOMContentLoaded",k,!1),n.addEventListener("load",e,!1);else{r.attachEvent("onreadystatechange",k);n.attachEvent("onload",e);p=!1;try{p=!n.frameElement&&r.documentElement}catch(wt){}p&&p.doScroll&&function pt(){if(!o){try{p.doScroll("left")}catch(t){n.clearTimeout(i.readyTimeout);i.readyTimeout=n.setTimeout(pt,50);return}e()}}()}i.load=i.js=ut?lt:ct;i.test=ot;i.ready=yt;i.ready(r,function(){y()&&u(h.ALL,function(n){f(n)});i.feature&&i.feature("domloaded",!0)})})(window);
17
  if (activeFrontend == 1 && activeAddrexx == 0) {
18
+ head.ready(document, function() {
19
+ head.load( "https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js","https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js", "https://s3.amazonaws.com/xxredda/" + ww + "/varxFrontend.js", "https://s3.amazonaws.com/xxredda/" + ww + "/xcorex.js",
20
+ function() {
21
+ // Call a function when done
22
+ });
23
+ });
 
 
 
24
  }
25
+ </script>
 
 
 
 
package.xml CHANGED
@@ -1,21 +1,21 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Addrexx_AddressValidation</name>
4
- <version>1.1.7</version>
5
  <stability>stable</stability>
6
  <license>Open Software License (OSL 3.0)</license>
7
  <channel>community</channel>
8
  <extends/>
9
- <summary>Autocomplete and validate customer information including names and addresses. Increase conversions and provide a better user experience.</summary>
10
  <description>Addrexx radically changes your checkout page and enables autocompletion and validation of names and addresses. Customers can checkout 30 seconds faster and information is validated while it is being entered. Stop losing orders on the checkout page or receiving order with incomplete or undeliverable shipping details. &#xD;
11
  &#xD;
12
  Addrexx increases sales, solves shipping issues and improves customer satisfaction ratings.&#xD;
13
  </description>
14
  <notes>This extension has been in use with community and enterprise customers since November, 2012.</notes>
15
  <authors><author><name>Joseph De La Cruz</name><user>addrexx</user><email>info@addrexx.com</email></author></authors>
16
- <date>2014-01-06</date>
17
- <time>21:31:23</time>
18
- <contents><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="css"><dir name="addrexx"><file name="addrexx.css" hash="2ee3d7315281a1a53408c7ead7de7613"/><dir name="images"><file name="Thumbs.db" hash="490192cdd1bb716a9ac78f072cd61c8a"/><file name="ui-bg_flat_0_302e2e_40x100.png" hash="6b407d54ab0b5cc1e4a88295e5d13b70"/><file name="ui-bg_flat_75_ffffff_40x100.png" hash="a3c44907f702e9a70d93b0db7e1efb6a"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="css"><dir name="addrexx"><file name="addrexx.css" hash="2ee3d7315281a1a53408c7ead7de7613"/><dir name="images"><file name="ui-bg_flat_0_302e2e_40x100.png" hash="6b407d54ab0b5cc1e4a88295e5d13b70"/><file name="ui-bg_flat_75_ffffff_40x100.png" hash="a3c44907f702e9a70d93b0db7e1efb6a"/></dir></dir></dir></dir></dir></dir></target><target name="magelocal"><dir name="Addrexx"><dir name="Helper"><file name="Data.php" hash="c9058d37bc77d493be535b677fbcbed8"/></dir><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><dir name="Dropdown"><file name="Values.php" hash="e3f37c6f0ab44e9bccc1cf0ef5e99e1a"/></dir></dir></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="16315e936954f2b3a8ad90f9e648c4a0"/><file name="config.xml" hash="286f77cc727ade882a51f43450b4119a"/><file name="system.xml" hash="03b58c0aaef61a8dadf63d2b70718b97"/></dir><dir name="sql"><dir name="addsql_setup"><file name="mysql4-install-0.1.0.php" hash="144914dcd01ceba06444cdc6134f18da"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="addrexx_backend.xml" hash="bf037a3b4e0745f2a77079da546b1da7"/></dir><dir name="template"><dir name="addrexx"><file name="common_config.phtml" hash="a75ff2fbe1dcbea2f4d0957c9768ca7b"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="addrexx_frontend.xml" hash="bda3284855feedec1049c51d249c8717"/></dir></dir></dir><dir name="base"><dir name="default"><dir name="template"><dir name="addrexx"><file name="common_config.phtml" hash="867f68bdd6989e79c73f12a78f2e0a0b"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="addrexx.xml" hash="f6d18a0449b438c94cf7b8c0f02d12c8"/></dir></target></contents>
19
  <compatible/>
20
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
21
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Addrexx_AddressValidation</name>
4
+ <version>1.1.8</version>
5
  <stability>stable</stability>
6
  <license>Open Software License (OSL 3.0)</license>
7
  <channel>community</channel>
8
  <extends/>
9
+ <summary>Autocomplete and validate customer information including names and addresses.</summary>
10
  <description>Addrexx radically changes your checkout page and enables autocompletion and validation of names and addresses. Customers can checkout 30 seconds faster and information is validated while it is being entered. Stop losing orders on the checkout page or receiving order with incomplete or undeliverable shipping details. &#xD;
11
  &#xD;
12
  Addrexx increases sales, solves shipping issues and improves customer satisfaction ratings.&#xD;
13
  </description>
14
  <notes>This extension has been in use with community and enterprise customers since November, 2012.</notes>
15
  <authors><author><name>Joseph De La Cruz</name><user>addrexx</user><email>info@addrexx.com</email></author></authors>
16
+ <date>2014-01-09</date>
17
+ <time>22:50:41</time>
18
+ <contents><target name="mageskin"><dir name="adminhtml"><dir name="base"><dir name="default"><dir name="css"><dir name="addrexx"><file name="addrexx.css" hash="2ee3d7315281a1a53408c7ead7de7613"/><dir name="images"><file name="Thumbs.db" hash="490192cdd1bb716a9ac78f072cd61c8a"/><file name="ui-bg_flat_0_302e2e_40x100.png" hash="6b407d54ab0b5cc1e4a88295e5d13b70"/><file name="ui-bg_flat_75_ffffff_40x100.png" hash="a3c44907f702e9a70d93b0db7e1efb6a"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="addrexx"><file name="addrexx.css" hash="2ee3d7315281a1a53408c7ead7de7613"/><dir name="images"><file name="ui-bg_flat_0_302e2e_40x100.png" hash="6b407d54ab0b5cc1e4a88295e5d13b70"/><file name="ui-bg_flat_75_ffffff_40x100.png" hash="a3c44907f702e9a70d93b0db7e1efb6a"/></dir></dir></dir></dir></dir></dir></target><target name="magelocal"><dir name="Addrexx"><dir name="Helper"><file name="Data.php" hash="c9058d37bc77d493be535b677fbcbed8"/></dir><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><dir name="Dropdown"><file name="Values.php" hash="e3f37c6f0ab44e9bccc1cf0ef5e99e1a"/></dir></dir></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="16315e936954f2b3a8ad90f9e648c4a0"/><file name="config.xml" hash="286f77cc727ade882a51f43450b4119a"/><file name="system.xml" hash="03b58c0aaef61a8dadf63d2b70718b97"/></dir><dir name="sql"><dir name="addsql_setup"><file name="mysql4-install-0.1.0.php" hash="144914dcd01ceba06444cdc6134f18da"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="addrexx_backend.xml" hash="bf037a3b4e0745f2a77079da546b1da7"/></dir><dir name="template"><dir name="addrexx"><file name="common_config.phtml" hash="9a5e8c8b40a94e573f22a2ab88825cca"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="addrexx_frontend.xml" hash="bda3284855feedec1049c51d249c8717"/></dir><dir name="template"><dir name="addrexx"><file name="common_config.phtml" hash="bfe44b9f556fb760b7c35b32e69f1f49"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="addrexx.xml" hash="f6d18a0449b438c94cf7b8c0f02d12c8"/></dir></target></contents>
19
  <compatible/>
20
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
21
  </package>
skin/adminhtml/{default → base}/default/css/addrexx/addrexx.css RENAMED
File without changes
skin/adminhtml/{default → base}/default/css/addrexx/images/Thumbs.db RENAMED
File without changes
skin/adminhtml/{default → base}/default/css/addrexx/images/ui-bg_flat_0_302e2e_40x100.png RENAMED
File without changes
skin/adminhtml/{default → base}/default/css/addrexx/images/ui-bg_flat_75_ffffff_40x100.png RENAMED
File without changes
skin/frontend/{default → base}/default/css/addrexx/addrexx.css RENAMED
File without changes
skin/frontend/{default → base}/default/css/addrexx/images/ui-bg_flat_0_302e2e_40x100.png RENAMED
File without changes
skin/frontend/{default → base}/default/css/addrexx/images/ui-bg_flat_75_ffffff_40x100.png RENAMED
File without changes