UK_Postcode_Address_Finder - Version 2.5.1

Version Notes

Release History
v2.5.1
* Fixed issue in Admin Panel
* Fixed issue with Amasty Checkout
* Fine tuned a county hiding for Firecheckout

v2.5.0
* Major Code Rework.

v2.4.9
* Added support for Awesome Checkout

v2.4.8
* Added support for the new Responsive Magento Template. New option in settings: Button Absolute Position.
* If the company field is hidden, push the company data into the address field.

v2.4.7
*Added support for AITOC Checkout.

v2.4.6
* Added support for Amesty One Step Checkout. Updated IWD Checkout support for a newer version. (backwards compatible to older IWD versions)

v2.4.5
* fix packaging issue with v2.4.4, no changes.

v2.4.4
* update support for Templates Master Firecheckout
* test and mark as Magento 1.8 compatible

v2.4.3
* add support of AheadWorks OneStepCheckout

v2.4.2
* add support for further one-page-checkout extensions, supported now are: AHT, EcommerceTeam, GoMage, IWD, Magestore, Mage World, OneStepCheckout, Tempates Master, Vinagento, Web Experiment
* small changes to config settings

v2.4.1
* add support for Magestore OneStepCheckout
* bug fix - if county field is hidden, don't populate it

v2.4.0
* major rework. Keeping compatible with the growing list of one-page-checkout extensions was a pain.
* now using the Magento prototype JS framework to do most of the heavy lifiting. Less tweaks to .phtml files means we can better maintain compativility with all possible checkout layouts.

v2.3.3
* no changes - repackaged to keep Magento Connect happy

v 2.3.2
* update to GoMage integration

v 2.3.1
* workaround for Firefox 4 bug

v 2.3.0
* updated to support Magento v 1.5

v 2.2.0
* added support for Gomage Light Checkout

v 2.1.0
* added support for One Step Checkout

v 2.0.2
* fix layout problem on in IE8 on onepage checkout

v 2.0.1
* fix minor typo in default config

v 2.0
* big re-design for compatibility with Magento 1.4
* added ability to search by house name/number + postcode (previous versions can search by postcode only)
* pressing enter key in the postcode input field does a search

v 1.6.2
* fix for Internet Explorer in admin panel - new customer page; the add address button didn't always work
* use default country in admin pannel - Magento doesn't do this by default
* in one page checkout unhide billing address fields on 'continue' - this esures any error messages are placed correctly if parts of the address are missing

v 1.6.1
* fix for admin panel - sales pages; Added a 1s delay before CraftyClicks stuff is added to a form.
In some rare cases the timing was such that the form may not yet exist in DOM when we tried to add
address finder button etc.

v 1.6.0
* added address lookup to the admin panel, to change order of address fields please see the
documentation tab - http://www.magentocommerce.com/boards/viewchild/17082/

v 1.5.1
* small modification following tests with the blank theme (changed order of initialisation in JavaScript)

v 1.5.0
* add config option for 1st result line.
* avoid using JavaScript DOM for modifying address forms - it was conflicting with Magento JavaScript.
We now edit the template .phtml files directly.
* fix problems with re-displaying state select box when country is changed from UK to USA.
* fix problem with postcode error message affecting button position if form was submitted with a blank postcode.

v 1.4.0
* make error message class configurable - it can now be styled to match other Magento errors
* make error message text configurable
* fix issue with error message not being shown if hiding of address fields was enabled

v 1.3.0
* populate the company field if company name is available
* unhide all address lines on lookup error to allow customer to enter the address manually
* update to latest CraftyClicks JavaScript (v3.5):
- added the on_error event
- fixed selection of result using keyboard (got broken in latest Firefox v3.5)

v 1.2.0
* can now hide the region/province (county) field
* update to latest CraftyClicks JavaScript (v3.4)

v 1.1.2 (bug fix release)
* fix typo in JS code

v 1.1.1 (bug fix release)
* fix rearranging address fields order; was causing problems on one page checkout
* fix hiding of result box on result select
* hide result box on country change

v 1.1.0
* added Admin Panel options to configure look and feel of the module
* add address lookup to multiship checkout pages

v 1.0.0 - Initial Release

Download this release

Release Info

Developer Crafty Clicks
Extension UK_Postcode_Address_Finder
Version 2.5.1
Comparing to
See all releases


Code changes from version 2.5.0 to 2.5.1

app/design/adminhtml/default/default/template/craftyclicks/clicktoaddress/common_config.phtml CHANGED
@@ -1,6 +1,6 @@
1
<?php
2
3
- $conf = Mage::getStoreConfig('clicktoaddress');
4
5
$js_config = "";
6
1
<?php
2
3
+ $conf = Mage::getStoreConfig('clicktoaddress/general');
4
5
$js_config = "";
6
app/design/frontend/base/default/template/craftyclicks/clicktoaddress/common_config.phtml CHANGED
@@ -13,7 +13,7 @@ if (1 == $conf['active']) {
13
if (isset($ams)){
14
$js_config .= " var _cp_integrate = false;";
15
$js_config .= " var _cp_integrate_amesty = true;";
16
- echo '<script src="'.Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS).'craftyclicks/craftyclicks_amesty_onepagecheckout.js"></script>';
17
}
18
else{
19
$js_config .= " var _cp_integrate = true;";
13
if (isset($ams)){
14
$js_config .= " var _cp_integrate = false;";
15
$js_config .= " var _cp_integrate_amesty = true;";
16
+ echo '<script src="'.Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS).'craftyclicks/clicktoaddress/craftyclicks_amesty_onepagecheckout.js"></script>';
17
}
18
else{
19
$js_config .= " var _cp_integrate = true;";
js/craftyclicks/clicktoaddress/craftyclicks_amesty_onepagecheckout.js CHANGED
@@ -68,7 +68,7 @@ function CraftyClicksMagentoClass () {
68
69
// postcode should be bundled with country in the same li on the standard magento address templates
70
// if this isn't the case, the rest of this code unlikely to work!
71
- if ($(fields.country_id).up('li') == $(fields.postcode_id).up('li') || this.mw_opc) {
72
73
if ('' != $(fields.town_id).getValue()) {
74
_cp_hide_fields = false;
@@ -181,7 +181,7 @@ function CraftyClicksMagentoClass () {
181
if ('' != _cp_button_image) {
182
tmp_html += '<img style="cursor: pointer;" src="'+_cp_button_image+'" id="'+this.prefix+'_cp_button_id" class="'+_cp_button_class+'" title="'+_cp_button_text+'"/>';
183
} else {
184
- tmp_html += '<button type="button" id="'+this.prefix+'_cp_button_id" class="'+_cp_button_class+'" style="height:100%"><span><span>'+_cp_button_text+'</span></span></button>';
185
}
186
if (0 == this.div_depth) {
187
tmp_html += '</div>';
@@ -351,7 +351,8 @@ document.observe("dom:loaded", function() {
351
"prefix" : "billing",
352
"fields" : { "postcode_id" : "billing:postcode",
353
"company_id" : "billing:company",
354
- "street1_id" : "billing:street",
355
"town_id" : "billing:city",
356
"county_id" : "billing:region",
357
"country_id" : "billing:country_id",
@@ -366,7 +367,8 @@ document.observe("dom:loaded", function() {
366
"prefix" : "shipping",
367
"fields" : { "postcode_id" : "shipping:postcode",
368
"company_id" : "shipping:company",
369
- "street1_id" : "shipping:street",
370
"town_id" : "shipping:city",
371
"county_id" : "shipping:region",
372
"country_id" : "shipping:country_id",
68
69
// postcode should be bundled with country in the same li on the standard magento address templates
70
// if this isn't the case, the rest of this code unlikely to work!
71
+ if ($(fields.country_id).up('li') == $(fields.postcode_id).up('li') || true) {
72
73
if ('' != $(fields.town_id).getValue()) {
74
_cp_hide_fields = false;
181
if ('' != _cp_button_image) {
182
tmp_html += '<img style="cursor: pointer;" src="'+_cp_button_image+'" id="'+this.prefix+'_cp_button_id" class="'+_cp_button_class+'" title="'+_cp_button_text+'"/>';
183
} else {
184
+ tmp_html += '<button type="button" id="'+this.prefix+'_cp_button_id" class="'+_cp_button_class+'" style="height:100%"><span><span style="padding: 0px 10px;">'+_cp_button_text+'</span></span></button>';
185
}
186
if (0 == this.div_depth) {
187
tmp_html += '</div>';
351
"prefix" : "billing",
352
"fields" : { "postcode_id" : "billing:postcode",
353
"company_id" : "billing:company",
354
+ "street1_id" : "billing:street1",
355
+ "street2_id" : "billing:street2",
356
"town_id" : "billing:city",
357
"county_id" : "billing:region",
358
"country_id" : "billing:country_id",
367
"prefix" : "shipping",
368
"fields" : { "postcode_id" : "shipping:postcode",
369
"company_id" : "shipping:company",
370
+ "street1_id" : "shipping:street1",
371
+ "street2_id" : "shipping:street2",
372
"town_id" : "shipping:city",
373
"county_id" : "shipping:region",
374
"country_id" : "shipping:country_id",
js/craftyclicks/clicktoaddress/craftyclicks_magento.js CHANGED
@@ -16,7 +16,7 @@
16
// If you copy/use/modify this code - please keep this
17
// comment header in place
18
//
19
- // Copyright (c) 2009-2013 Crafty Clicks (http://www.craftyclicks.com)
20
//
21
// This code relies on prototype js, you must have a reasonably recent version loaded
22
// in your template. Magento should include it as standard.
@@ -61,14 +61,18 @@ function CraftyClicksMagentoClass () {
61
var fields = this.fields;
62
63
this.mw_opc = (typeof $MW_Onestepcheckout !== "undefined" ? true : false);
64
-
65
if (this.mw_opc) {
66
this.li_class = 'fields';
67
}
68
69
// postcode should be bundled with country in the same li on the standard magento address templates
70
// if this isn't the case, the rest of this code unlikely to work!
71
- if ($(fields.country_id).up('li') == $(fields.postcode_id).up('li') || this.mw_opc) {
72
73
if ('' != $(fields.town_id).getValue()) {
74
_cp_hide_fields = false;
16
// If you copy/use/modify this code - please keep this
17
// comment header in place
18
//
19
+ // Copyright (c) 2009-2014 Crafty Clicks (http://www.craftyclicks.com)
20
//
21
// This code relies on prototype js, you must have a reasonably recent version loaded
22
// in your template. Magento should include it as standard.
61
var fields = this.fields;
62
63
this.mw_opc = (typeof $MW_Onestepcheckout !== "undefined" ? true : false);
64
+ this.crafty_melissa = false;
65
+ if(typeof crafty_melissa_cfg !== "undefined"){
66
+ this.crafty_melissa = (parseInt(crafty_melissa_cfg.usaauto.active) || parseInt(crafty_melissa_cfg.globalauto.active)) ? true : false;
67
+ }
68
+
69
if (this.mw_opc) {
70
this.li_class = 'fields';
71
}
72
73
// postcode should be bundled with country in the same li on the standard magento address templates
74
// if this isn't the case, the rest of this code unlikely to work!
75
+ if ($(fields.country_id).up('li') == $(fields.postcode_id).up('li') || this.mw_opc || this.crafty_melissa) {
76
77
if ('' != $(fields.town_id).getValue()) {
78
_cp_hide_fields = false;
js/craftyclicks/clicktoaddress/craftyclicks_magento_admin.js CHANGED
@@ -9,7 +9,7 @@
9
// If you copy/use/modify this code - please keep this
10
// comment header in place
11
//
12
- // Copyright (c) 2009-2012 Crafty Clicks (http://www.craftyclicks.com)
13
//
14
// This code relies on prototype js, you must have a reasonably recent version loaded
15
// in your template. Magento should include it as standard.
9
// If you copy/use/modify this code - please keep this
10
// comment header in place
11
//
12
+ // Copyright (c) 2009-2014 Crafty Clicks (http://www.craftyclicks.com)
13
//
14
// This code relies on prototype js, you must have a reasonably recent version loaded
15
// in your template. Magento should include it as standard.
js/craftyclicks/clicktoaddress/craftyclicks_tm_firecheckout.js CHANGED
@@ -129,7 +129,7 @@ function CraftyClicksMagentoClass () {
129
if (_cp_hide_county) {
130
ne = $(this.fields.county_id);
131
if (ne) {
132
- ne.up('div').hide();
133
}
134
}
135
}
@@ -171,7 +171,7 @@ function CraftyClicksMagentoClass () {
171
if (_cp_hide_county) {
172
ne = $(this.fields.county_id);
173
if (ne) {
174
- ne.up('div').show();
175
}
176
}
177
129
if (_cp_hide_county) {
130
ne = $(this.fields.county_id);
131
if (ne) {
132
+ ne.up('div.field').hide();
133
}
134
}
135
}
171
if (_cp_hide_county) {
172
ne = $(this.fields.county_id);
173
if (ne) {
174
+ ne.up('div.field').show();
175
}
176
}
177
package.xml CHANGED
@@ -1,7 +1,7 @@
1
<?xml version="1.0"?>
2
<package>
3
<name>UK_Postcode_Address_Finder</name>
4
- <version>2.5.0</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>
@@ -15,6 +15,11 @@ UK address entry is greatly speeded up thus improving the user experience. The b
15
&#xD;
16
The extension is free to try and install, but to go live a paid up account with Crafty Clicks will be required. For current prices please go to http://www.craftyclicks.co.uk/paf-database-pricing</description>
17
<notes>Release History&#xD;
18
v2.5.0&#xD;
19
* Major Code Rework.&#xD;
20
&#xD;
@@ -136,9 +141,9 @@ v 1.1.0 &#xD;
136
&#xD;
137
v 1.0.0 - Initial Release</notes>
138
<authors><author><name>Crafty Clicks</name><user>styloa</user><email>support@craftyclicks.co.uk</email></author></authors>
139
- <date>2014-10-22</date>
140
- <time>13:04:30</time>
141
- <contents><target name="mage"><dir name="app"><dir name="code"><dir name="community"><dir name="Craftyclicks"><dir name="Clicktoaddress"><dir name="Helper"><file name="Data.php" hash="a561b9307d3a038e91d32c232820f54d"/></dir><dir name="data"><dir name="craftyclicks_clicktoaddress_setup"><file name="data-upgrade-2.4.9-2.5.0.php" hash="580589f5aff53b041773886008b23743"/></dir></dir><dir name="etc"><file name="config.xml" hash="0c5bc19b47d0ccecd365998bc4d77056"/><file name="system.xml" hash="9ab78f3e038966c6c147932367a3586b"/></dir></dir></dir></dir></dir><dir name="etc"><dir name="modules"><file name="Craftyclicks_Clicktoaddress.xml" hash="66e9933c58e73eaebf95266ea67b11bc"/><file name="CraftyClicks.xml" hash="34ceb62bbcd46b57947d369bf58737a1"/></dir></dir><dir name="design"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="craftyclicks_clicktoaddress.xml" hash="76a352b24809cb433f0dfe0beadb4144"/></dir><dir name="template"><dir name="craftyclicks"><dir name="clicktoaddress"><file name="common_config.phtml" hash="bc9f6d79823de2de877c452aca5a96fe"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir><dir name="layout"><file name="craftyclicks_clicktoaddress.xml" hash="3801f3855fea8ebf8a085e968b46b16d"/></dir></dir><dir name="template"><dir name="craftyclicks"><dir name="clicktoaddress"><file name="common_config.phtml" hash="10a175ec47a3dcff7e2119c86e7c70af"/></dir></dir></dir></dir></dir></dir></dir></dir><dir name="js"><dir name="craftyclicks"><dir name="clicktoaddress"><file name="crafty_postcode.class.js" hash="44593e9ea50fbfb6a6a35760b878331f"/><file name="craftyclicks_aheadworks_onestepcheckout.js" hash="cf50ea20ebf90c128684a18297a232d6"/><file name="craftyclicks_aitoc_checkout.js" hash="c92b1d13b6292a64cdb6851e171ec329"/><file name="craftyclicks_amesty_onepagecheckout.js" hash="5d9e0aef9e1b92a99ba3ea49f57bf169"/><file name="craftyclicks_ath_oscheckout.js" hash="a4fd82428db4635f1e2937ac129e1900"/><file name="craftyclicks_awesome_checkout.js" hash="94a3fc551eca17e227c4524e2eb5a397"/><file name="craftyclicks_ecomm_easycheckout.js" hash="728e1c3cf223f484f7b9050e84d34c10"/><file name="craftyclicks_gomage_lightcheckout.js" hash="a5c0b20eb5295c5e4561d55019d625a7"/><file name="craftyclicks_iwd_onestepcheckout.js" hash="69053cfee63961ecaced8672bf2386b5"/><file name="craftyclicks_iwd_onestepcheckout_v2_2.js" hash="ee241c97833fb0f24cf9e26ec80523bb"/><file name="craftyclicks_magento.js" hash="9a48ef8a5ba1bbbc4ae7de09468129c7"/><file name="craftyclicks_magento_admin.js" hash="75f3078d1d678a5813b66b439409679b"/><file name="craftyclicks_onepagecheckout.js" hash="2be54032160205ab7c5fe3e5bdd4d601"/><file name="craftyclicks_tm_firecheckout.js" hash="c469e57c3de18cbddbcc6fa30661d2da"/><file name="craftyclicks_vinagentocheckout.js" hash="250b2f05677fbf17f847b57ae2c50993"/><file name="craftyclicks_webandpeople_onepagecheckout.js" hash="7a9d5c9cf6b341e6e6102e38593bad81"/></dir></dir></dir><dir name="skin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="images"><dir name="craftyclicks"><dir name="clicktoaddress"><file name="button_find_address.gif" hash="0fdef9bf7ad0f7ec3f6530b7ff40bf59"/><file name="crafty_postcode_busy.gif" hash="618a14f4dca4f51100cd2400e7f9049c"/></dir></dir></dir></dir></dir></dir></dir></target></contents>
142
<compatible/>
143
<dependencies><required><php><min>4.0.0</min><max>6.0.0</max></php></required></dependencies>
144
</package>
1
<?xml version="1.0"?>
2
<package>
3
<name>UK_Postcode_Address_Finder</name>
4
+ <version>2.5.1</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>
15
&#xD;
16
The extension is free to try and install, but to go live a paid up account with Crafty Clicks will be required. For current prices please go to http://www.craftyclicks.co.uk/paf-database-pricing</description>
17
<notes>Release History&#xD;
18
+ v2.5.1&#xD;
19
+ * Fixed issue in Admin Panel&#xD;
20
+ * Fixed issue with Amasty Checkout&#xD;
21
+ * Fine tuned a county hiding for Firecheckout&#xD;
22
+ &#xD;
23
v2.5.0&#xD;
24
* Major Code Rework.&#xD;
25
&#xD;
141
&#xD;
142
v 1.0.0 - Initial Release</notes>
143
<authors><author><name>Crafty Clicks</name><user>styloa</user><email>support@craftyclicks.co.uk</email></author></authors>
144
+ <date>2014-11-05</date>
145
+ <time>12:25:11</time>
146
+ <contents><target name="mage"><dir name="app"><dir name="code"><dir name="community"><dir name="Craftyclicks"><dir name="Clicktoaddress"><dir name="Helper"><file name="Data.php" hash="a561b9307d3a038e91d32c232820f54d"/></dir><dir name="data"><dir name="craftyclicks_clicktoaddress_setup"><file name="data-upgrade-2.4.9-2.5.0.php" hash="580589f5aff53b041773886008b23743"/></dir></dir><dir name="etc"><file name="config.xml" hash="0c5bc19b47d0ccecd365998bc4d77056"/><file name="system.xml" hash="9ab78f3e038966c6c147932367a3586b"/></dir></dir></dir></dir></dir><dir name="etc"><dir name="modules"><file name="Craftyclicks_Clicktoaddress.xml" hash="66e9933c58e73eaebf95266ea67b11bc"/><file name="CraftyClicks.xml" hash="34ceb62bbcd46b57947d369bf58737a1"/></dir></dir><dir name="design"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="craftyclicks_clicktoaddress.xml" hash="76a352b24809cb433f0dfe0beadb4144"/></dir><dir name="template"><dir name="craftyclicks"><dir name="clicktoaddress"><file name="common_config.phtml" hash="26760cbdbbe0c91e4ecaab2a99d1f5b4"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir><dir name="layout"><file name="craftyclicks_clicktoaddress.xml" hash="3801f3855fea8ebf8a085e968b46b16d"/></dir></dir><dir name="template"><dir name="craftyclicks"><dir name="clicktoaddress"><file name="common_config.phtml" hash="65ca83b8da714d771bbbd3b3ce677672"/></dir></dir></dir></dir></dir></dir></dir></dir><dir name="js"><dir name="craftyclicks"><dir name="clicktoaddress"><file name="crafty_postcode.class.js" hash="44593e9ea50fbfb6a6a35760b878331f"/><file name="craftyclicks_aheadworks_onestepcheckout.js" hash="cf50ea20ebf90c128684a18297a232d6"/><file name="craftyclicks_aitoc_checkout.js" hash="c92b1d13b6292a64cdb6851e171ec329"/><file name="craftyclicks_amesty_onepagecheckout.js" hash="4f46644e465f420589beaf3a18c27f70"/><file name="craftyclicks_ath_oscheckout.js" hash="a4fd82428db4635f1e2937ac129e1900"/><file name="craftyclicks_awesome_checkout.js" hash="94a3fc551eca17e227c4524e2eb5a397"/><file name="craftyclicks_ecomm_easycheckout.js" hash="728e1c3cf223f484f7b9050e84d34c10"/><file name="craftyclicks_gomage_lightcheckout.js" hash="a5c0b20eb5295c5e4561d55019d625a7"/><file name="craftyclicks_iwd_onestepcheckout.js" hash="69053cfee63961ecaced8672bf2386b5"/><file name="craftyclicks_iwd_onestepcheckout_v2_2.js" hash="ee241c97833fb0f24cf9e26ec80523bb"/><file name="craftyclicks_magento.js" hash="c1af2573def40164de77620dd3ca8169"/><file name="craftyclicks_magento_admin.js" hash="2a10561320b3330cc79e13e04bc583d2"/><file name="craftyclicks_onepagecheckout.js" hash="2be54032160205ab7c5fe3e5bdd4d601"/><file name="craftyclicks_tm_firecheckout.js" hash="1040bb1b35b27f0450219ceb6fbd5454"/><file name="craftyclicks_vinagentocheckout.js" hash="250b2f05677fbf17f847b57ae2c50993"/><file name="craftyclicks_webandpeople_onepagecheckout.js" hash="7a9d5c9cf6b341e6e6102e38593bad81"/></dir></dir></dir><dir name="skin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="images"><dir name="craftyclicks"><dir name="clicktoaddress"><file name="button_find_address.gif" hash="0fdef9bf7ad0f7ec3f6530b7ff40bf59"/><file name="crafty_postcode_busy.gif" hash="618a14f4dca4f51100cd2400e7f9049c"/></dir></dir></dir></dir></dir></dir></dir></target></contents>
147
<compatible/>
148
<dependencies><required><php><min>4.0.0</min><max>6.0.0</max></php></required></dependencies>
149
</package>