Version Notes
Release History
v2.5.2
* Fixed special character escaping issue with error messages
* Added support for Lotus Breath one step checkout
* New feature: detect & change country after address selected. (Guernsey, Jersey, Isle of Man or UK)
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
Release Info
Developer | Crafty Clicks |
Extension | UK_Postcode_Address_Finder |
Version | 2.5.2 |
Comparing to | |
See all releases |
Code changes from version 2.5.1 to 2.5.2
- app/code/community/Craftyclicks/Clicktoaddress/etc/config.xml +2 -2
- app/design/adminhtml/default/default/template/craftyclicks/clicktoaddress/common_config.phtml +5 -5
- app/design/frontend/base/default/layout/craftyclicks_clicktoaddress.xml +9 -0
- app/design/frontend/base/default/template/craftyclicks/clicktoaddress/common_config.phtml +5 -5
- js/craftyclicks/clicktoaddress/craftyclicks_aheadworks_onestepcheckout.js +15 -0
- js/craftyclicks/clicktoaddress/craftyclicks_aitoc_checkout.js +15 -0
- js/craftyclicks/clicktoaddress/craftyclicks_amesty_onepagecheckout.js +15 -0
- js/craftyclicks/clicktoaddress/craftyclicks_ath_oscheckout.js +15 -0
- js/craftyclicks/clicktoaddress/craftyclicks_awesome_checkout.js +15 -0
- js/craftyclicks/clicktoaddress/craftyclicks_ecomm_easycheckout.js +15 -0
- js/craftyclicks/clicktoaddress/craftyclicks_gomage_lightcheckout.js +15 -0
- js/craftyclicks/clicktoaddress/craftyclicks_iwd_onestepcheckout.js +15 -0
- js/craftyclicks/clicktoaddress/craftyclicks_iwd_onestepcheckout_v2_2.js +15 -0
- js/craftyclicks/clicktoaddress/craftyclicks_magento.js +15 -0
- js/craftyclicks/clicktoaddress/craftyclicks_magento_admin.js +15 -0
- js/craftyclicks/clicktoaddress/craftyclicks_onepagecheckout.js +15 -0
- js/craftyclicks/clicktoaddress/craftyclicks_tm_firecheckout.js +15 -0
- js/craftyclicks/clicktoaddress/craftyclicks_vinagentocheckout.js +15 -0
- js/craftyclicks/clicktoaddress/craftyclicks_webandpeople_onepagecheckout.js +15 -0
- package.xml +9 -4
@@ -12,7 +12,7 @@
|
|
12 |
<config>
|
13 |
<modules>
|
14 |
<Craftyclicks_Clicktoaddress>
|
15 |
-
<version>2.5.
|
16 |
</Craftyclicks_Clicktoaddress>
|
17 |
</modules>
|
18 |
|
@@ -99,4 +99,4 @@
|
|
99 |
</craftyclicks_clicktoaddress_setup>
|
100 |
</resources>
|
101 |
</global>
|
102 |
-
</config>
|
12 |
<config>
|
13 |
<modules>
|
14 |
<Craftyclicks_Clicktoaddress>
|
15 |
+
<version>2.5.2</version>
|
16 |
</Craftyclicks_Clicktoaddress>
|
17 |
</modules>
|
18 |
|
99 |
</craftyclicks_clicktoaddress_setup>
|
100 |
</resources>
|
101 |
</global>
|
102 |
+
</config>
|
@@ -25,11 +25,11 @@ if (1 == $conf['active_admin_panel']) {
|
|
25 |
}
|
26 |
|
27 |
$js_config.= " var _cp_hide_result = true;"; // once users make the selection, hide the result box - true/false
|
28 |
-
$js_config.= " var _cp_1st_res_line = '"
|
29 |
-
$js_config.= " var _cp_err_msg1 = '"
|
30 |
-
$js_config.= " var _cp_err_msg2 = '"
|
31 |
-
$js_config.= " var _cp_err_msg3 = '"
|
32 |
-
$js_config.= " var _cp_err_msg4 = '"
|
33 |
$js_config.= " var _cp_token_adm = '".$conf['access_token_admin_panel']."';";
|
34 |
|
35 |
if (array_key_exists('hide_fields',$conf) && $conf['hide_fields']) {
|
25 |
}
|
26 |
|
27 |
$js_config.= " var _cp_hide_result = true;"; // once users make the selection, hide the result box - true/false
|
28 |
+
$js_config.= " var _cp_1st_res_line = '".htmlspecialchars($conf['first_res_line'])."';";
|
29 |
+
$js_config.= " var _cp_err_msg1 = '".htmlspecialchars($conf['error_msg_1'])."';";
|
30 |
+
$js_config.= " var _cp_err_msg2 = '".htmlspecialchars($conf['error_msg_2'])."';";
|
31 |
+
$js_config.= " var _cp_err_msg3 = '".htmlspecialchars($conf['error_msg_3'])."';";
|
32 |
+
$js_config.= " var _cp_err_msg4 = '".htmlspecialchars($conf['error_msg_4'])."';";
|
33 |
$js_config.= " var _cp_token_adm = '".$conf['access_token_admin_panel']."';";
|
34 |
|
35 |
if (array_key_exists('hide_fields',$conf) && $conf['hide_fields']) {
|
@@ -152,4 +152,13 @@
|
|
152 |
<block type="page/html" name="craftyclicks_config" template="craftyclicks/clicktoaddress/common_config.phtml"/>
|
153 |
</reference>
|
154 |
</anattadesign_awesomecheckout_onepage_index>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
155 |
</layout>
|
152 |
<block type="page/html" name="craftyclicks_config" template="craftyclicks/clicktoaddress/common_config.phtml"/>
|
153 |
</reference>
|
154 |
</anattadesign_awesomecheckout_onepage_index>
|
155 |
+
<!-- LOTUS BREATH onestep checkout - http://store.lotusbreath.com/magento-extension/lotusbreath-one-step-checkout.html -->
|
156 |
+
<lotusbreath_onestepcheckout_index_index>
|
157 |
+
<reference name="head">
|
158 |
+
<action method="addJs"><script>craftyclicks/clicktoaddress/crafty_postcode.class.js</script></action>
|
159 |
+
<action method="addJs"><script>craftyclicks/clicktoaddress/craftyclicks_magento.js</script></action>
|
160 |
+
<!-- #2 applied to dodge lotus breaths own way of integrating with CC. they trying to use a wrong path, and it would overwrite our cfg -->
|
161 |
+
<block type="page/html" name="craftyclicks_config2" template="craftyclicks/clicktoaddress/common_config.phtml"/>
|
162 |
+
</reference>
|
163 |
+
</lotusbreath_onestepcheckout_index_index>
|
164 |
</layout>
|
@@ -37,11 +37,11 @@ if (1 == $conf['active']) {
|
|
37 |
}
|
38 |
|
39 |
$js_config.= " var _cp_hide_result = true;"; // once users make the selection, hide the result box - true/false
|
40 |
-
$js_config.= " var _cp_1st_res_line = '"
|
41 |
-
$js_config.= " var _cp_err_msg1 = '"
|
42 |
-
$js_config.= " var _cp_err_msg2 = '"
|
43 |
-
$js_config.= " var _cp_err_msg3 = '"
|
44 |
-
$js_config.= " var _cp_err_msg4 = '"
|
45 |
$js_config.= " var _cp_token_fe = '".$conf['access_token']."';";
|
46 |
|
47 |
if (array_key_exists('hide_fields',$conf) && $conf['hide_fields']) {
|
37 |
}
|
38 |
|
39 |
$js_config.= " var _cp_hide_result = true;"; // once users make the selection, hide the result box - true/false
|
40 |
+
$js_config.= " var _cp_1st_res_line = '".htmlspecialchars($conf['first_res_line'])."';";
|
41 |
+
$js_config.= " var _cp_err_msg1 = '".htmlspecialchars($conf['error_msg_1'])."';";
|
42 |
+
$js_config.= " var _cp_err_msg2 = '".htmlspecialchars($conf['error_msg_2'])."';";
|
43 |
+
$js_config.= " var _cp_err_msg3 = '".htmlspecialchars($conf['error_msg_3'])."';";
|
44 |
+
$js_config.= " var _cp_err_msg4 = '".htmlspecialchars($conf['error_msg_4'])."';";
|
45 |
$js_config.= " var _cp_token_fe = '".$conf['access_token']."';";
|
46 |
|
47 |
if (array_key_exists('hide_fields',$conf) && $conf['hide_fields']) {
|
@@ -291,6 +291,21 @@ function CraftyClicksMagentoClass () {
|
|
291 |
this.result_selected = function() {
|
292 |
if (_cp_clear_result) this.cp_obj.update_res(null);
|
293 |
$$('.'+this.prefix+'_cp_address_class').invoke('show');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
294 |
}
|
295 |
|
296 |
this.result_error = function() {
|
291 |
this.result_selected = function() {
|
292 |
if (_cp_clear_result) this.cp_obj.update_res(null);
|
293 |
$$('.'+this.prefix+'_cp_address_class').invoke('show');
|
294 |
+
|
295 |
+
switch($(this.fields.postcode_id).getValue().substring(0,2)){
|
296 |
+
case "GY":
|
297 |
+
$(this.fields.country_id).setValue("GG");
|
298 |
+
break;
|
299 |
+
case "JE":
|
300 |
+
$(this.fields.country_id).setValue("JE");
|
301 |
+
break;
|
302 |
+
case "IM":
|
303 |
+
$(this.fields.country_id).setValue("IM");
|
304 |
+
break;
|
305 |
+
default:
|
306 |
+
$(this.fields.country_id).setValue("GB");
|
307 |
+
break;
|
308 |
+
}
|
309 |
}
|
310 |
|
311 |
this.result_error = function() {
|
@@ -298,6 +298,21 @@ function CraftyClicksMagentoClass () {
|
|
298 |
this.result_selected = function() {
|
299 |
if (_cp_clear_result) this.cp_obj.update_res(null);
|
300 |
$$('.'+this.prefix+'_cp_address_class').invoke('show');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
301 |
}
|
302 |
|
303 |
this.result_error = function() {
|
298 |
this.result_selected = function() {
|
299 |
if (_cp_clear_result) this.cp_obj.update_res(null);
|
300 |
$$('.'+this.prefix+'_cp_address_class').invoke('show');
|
301 |
+
|
302 |
+
switch($(this.fields.postcode_id).getValue().substring(0,2)){
|
303 |
+
case "GY":
|
304 |
+
$(this.fields.country_id).setValue("GG");
|
305 |
+
break;
|
306 |
+
case "JE":
|
307 |
+
$(this.fields.country_id).setValue("JE");
|
308 |
+
break;
|
309 |
+
case "IM":
|
310 |
+
$(this.fields.country_id).setValue("IM");
|
311 |
+
break;
|
312 |
+
default:
|
313 |
+
$(this.fields.country_id).setValue("GB");
|
314 |
+
break;
|
315 |
+
}
|
316 |
}
|
317 |
|
318 |
this.result_error = function() {
|
@@ -333,6 +333,21 @@ function CraftyClicksMagentoClass () {
|
|
333 |
this.result_selected = function() {
|
334 |
if (_cp_clear_result) this.cp_obj.update_res(null);
|
335 |
$$('.'+this.prefix+'_cp_address_class').invoke('show');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
336 |
}
|
337 |
|
338 |
this.result_error = function() {
|
333 |
this.result_selected = function() {
|
334 |
if (_cp_clear_result) this.cp_obj.update_res(null);
|
335 |
$$('.'+this.prefix+'_cp_address_class').invoke('show');
|
336 |
+
|
337 |
+
switch($(this.fields.postcode_id).getValue().substring(0,2)){
|
338 |
+
case "GY":
|
339 |
+
$(this.fields.country_id).setValue("GG");
|
340 |
+
break;
|
341 |
+
case "JE":
|
342 |
+
$(this.fields.country_id).setValue("JE");
|
343 |
+
break;
|
344 |
+
case "IM":
|
345 |
+
$(this.fields.country_id).setValue("IM");
|
346 |
+
break;
|
347 |
+
default:
|
348 |
+
$(this.fields.country_id).setValue("GB");
|
349 |
+
break;
|
350 |
+
}
|
351 |
}
|
352 |
|
353 |
this.result_error = function() {
|
@@ -286,6 +286,21 @@ function CraftyClicksMagentoClass () {
|
|
286 |
this.result_selected = function() {
|
287 |
if (_cp_clear_result) this.cp_obj.update_res(null);
|
288 |
$$('.'+this.prefix+'_cp_address_class').invoke('show');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
289 |
}
|
290 |
|
291 |
this.result_error = function() {
|
286 |
this.result_selected = function() {
|
287 |
if (_cp_clear_result) this.cp_obj.update_res(null);
|
288 |
$$('.'+this.prefix+'_cp_address_class').invoke('show');
|
289 |
+
|
290 |
+
switch($(this.fields.postcode_id).getValue().substring(0,2)){
|
291 |
+
case "GY":
|
292 |
+
$(this.fields.country_id).setValue("GG");
|
293 |
+
break;
|
294 |
+
case "JE":
|
295 |
+
$(this.fields.country_id).setValue("JE");
|
296 |
+
break;
|
297 |
+
case "IM":
|
298 |
+
$(this.fields.country_id).setValue("IM");
|
299 |
+
break;
|
300 |
+
default:
|
301 |
+
$(this.fields.country_id).setValue("GB");
|
302 |
+
break;
|
303 |
+
}
|
304 |
}
|
305 |
|
306 |
this.result_error = function() {
|
@@ -290,6 +290,21 @@ function CraftyClicksMagentoClass () {
|
|
290 |
if (_cp_clear_result) this.cp_obj.update_res(null);
|
291 |
$$('.'+this.prefix+'_cp_address_class').invoke('show');
|
292 |
$(this.prefix+"_cp_result_display").up('li').hide();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
293 |
}
|
294 |
|
295 |
this.result_error = function() {
|
290 |
if (_cp_clear_result) this.cp_obj.update_res(null);
|
291 |
$$('.'+this.prefix+'_cp_address_class').invoke('show');
|
292 |
$(this.prefix+"_cp_result_display").up('li').hide();
|
293 |
+
|
294 |
+
switch($(this.fields.postcode_id).getValue().substring(0,2)){
|
295 |
+
case "GY":
|
296 |
+
$(this.fields.country_id).setValue("GG");
|
297 |
+
break;
|
298 |
+
case "JE":
|
299 |
+
$(this.fields.country_id).setValue("JE");
|
300 |
+
break;
|
301 |
+
case "IM":
|
302 |
+
$(this.fields.country_id).setValue("IM");
|
303 |
+
break;
|
304 |
+
default:
|
305 |
+
$(this.fields.country_id).setValue("GB");
|
306 |
+
break;
|
307 |
+
}
|
308 |
}
|
309 |
|
310 |
this.result_error = function() {
|
@@ -253,6 +253,21 @@ function CraftyClicksMagentoClass () {
|
|
253 |
this.result_selected = function() {
|
254 |
if (_cp_clear_result) this.cp_obj.update_res(null);
|
255 |
$$('.'+this.prefix+'_cp_address_class').invoke('show');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
256 |
}
|
257 |
|
258 |
this.result_error = function() {
|
253 |
this.result_selected = function() {
|
254 |
if (_cp_clear_result) this.cp_obj.update_res(null);
|
255 |
$$('.'+this.prefix+'_cp_address_class').invoke('show');
|
256 |
+
|
257 |
+
switch($(this.fields.postcode_id).getValue().substring(0,2)){
|
258 |
+
case "GY":
|
259 |
+
$(this.fields.country_id).setValue("GG");
|
260 |
+
break;
|
261 |
+
case "JE":
|
262 |
+
$(this.fields.country_id).setValue("JE");
|
263 |
+
break;
|
264 |
+
case "IM":
|
265 |
+
$(this.fields.country_id).setValue("IM");
|
266 |
+
break;
|
267 |
+
default:
|
268 |
+
$(this.fields.country_id).setValue("GB");
|
269 |
+
break;
|
270 |
+
}
|
271 |
}
|
272 |
|
273 |
this.result_error = function() {
|
@@ -279,6 +279,21 @@ function CraftyClicksMagentoClass () {
|
|
279 |
this.result_selected = function() {
|
280 |
if (_cp_clear_result) this.cp_obj.update_res(null);
|
281 |
$$('.'+this.prefix+'_cp_address_class').invoke('show');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
282 |
}
|
283 |
|
284 |
this.result_error = function() {
|
279 |
this.result_selected = function() {
|
280 |
if (_cp_clear_result) this.cp_obj.update_res(null);
|
281 |
$$('.'+this.prefix+'_cp_address_class').invoke('show');
|
282 |
+
|
283 |
+
switch($(this.fields.postcode_id).getValue().substring(0,2)){
|
284 |
+
case "GY":
|
285 |
+
$(this.fields.country_id).setValue("GG");
|
286 |
+
break;
|
287 |
+
case "JE":
|
288 |
+
$(this.fields.country_id).setValue("JE");
|
289 |
+
break;
|
290 |
+
case "IM":
|
291 |
+
$(this.fields.country_id).setValue("IM");
|
292 |
+
break;
|
293 |
+
default:
|
294 |
+
$(this.fields.country_id).setValue("GB");
|
295 |
+
break;
|
296 |
+
}
|
297 |
}
|
298 |
|
299 |
this.result_error = function() {
|
@@ -282,6 +282,21 @@ function CraftyClicksMagentoClass () {
|
|
282 |
this.result_selected = function() {
|
283 |
if (_cp_clear_result) this.cp_obj.update_res(null);
|
284 |
$$('.'+this.prefix+'_cp_address_class').invoke('show');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
285 |
}
|
286 |
|
287 |
this.result_error = function() {
|
282 |
this.result_selected = function() {
|
283 |
if (_cp_clear_result) this.cp_obj.update_res(null);
|
284 |
$$('.'+this.prefix+'_cp_address_class').invoke('show');
|
285 |
+
|
286 |
+
switch($(this.fields.postcode_id).getValue().substring(0,2)){
|
287 |
+
case "GY":
|
288 |
+
$(this.fields.country_id).setValue("GG");
|
289 |
+
break;
|
290 |
+
case "JE":
|
291 |
+
$(this.fields.country_id).setValue("JE");
|
292 |
+
break;
|
293 |
+
case "IM":
|
294 |
+
$(this.fields.country_id).setValue("IM");
|
295 |
+
break;
|
296 |
+
default:
|
297 |
+
$(this.fields.country_id).setValue("GB");
|
298 |
+
break;
|
299 |
+
}
|
300 |
}
|
301 |
|
302 |
this.result_error = function() {
|
@@ -308,6 +308,21 @@ function CraftyClicksMagentoClass () {
|
|
308 |
this.result_selected = function() {
|
309 |
if (_cp_clear_result) this.cp_obj.update_res(null);
|
310 |
$$('.'+this.prefix+'_cp_address_class').invoke('show');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
311 |
}
|
312 |
|
313 |
this.result_error = function() {
|
308 |
this.result_selected = function() {
|
309 |
if (_cp_clear_result) this.cp_obj.update_res(null);
|
310 |
$$('.'+this.prefix+'_cp_address_class').invoke('show');
|
311 |
+
|
312 |
+
switch($(this.fields.postcode_id).getValue().substring(0,2)){
|
313 |
+
case "GY":
|
314 |
+
$(this.fields.country_id).setValue("GG");
|
315 |
+
break;
|
316 |
+
case "JE":
|
317 |
+
$(this.fields.country_id).setValue("JE");
|
318 |
+
break;
|
319 |
+
case "IM":
|
320 |
+
$(this.fields.country_id).setValue("IM");
|
321 |
+
break;
|
322 |
+
default:
|
323 |
+
$(this.fields.country_id).setValue("GB");
|
324 |
+
break;
|
325 |
+
}
|
326 |
}
|
327 |
|
328 |
this.result_error = function() {
|
@@ -348,6 +348,21 @@ function CraftyClicksMagentoClass () {
|
|
348 |
this.result_selected = function() {
|
349 |
if (_cp_clear_result) this.cp_obj.update_res(null);
|
350 |
$$('.'+this.prefix+'_cp_address_class').invoke('show');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
351 |
}
|
352 |
|
353 |
this.result_error = function() {
|
348 |
this.result_selected = function() {
|
349 |
if (_cp_clear_result) this.cp_obj.update_res(null);
|
350 |
$$('.'+this.prefix+'_cp_address_class').invoke('show');
|
351 |
+
|
352 |
+
switch($(this.fields.postcode_id).getValue().substring(0,2)){
|
353 |
+
case "GY":
|
354 |
+
$(this.fields.country_id).setValue("GG");
|
355 |
+
break;
|
356 |
+
case "JE":
|
357 |
+
$(this.fields.country_id).setValue("JE");
|
358 |
+
break;
|
359 |
+
case "IM":
|
360 |
+
$(this.fields.country_id).setValue("IM");
|
361 |
+
break;
|
362 |
+
default:
|
363 |
+
$(this.fields.country_id).setValue("GB");
|
364 |
+
break;
|
365 |
+
}
|
366 |
}
|
367 |
|
368 |
this.result_error = function() {
|
@@ -244,6 +244,21 @@ function CraftyClicksMagentoClass () {
|
|
244 |
|
245 |
this.result_selected = function() {
|
246 |
if (_cp_clear_result) this.cp_obj.update_res(null);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
247 |
}
|
248 |
|
249 |
this.result_error = function() {
|
244 |
|
245 |
this.result_selected = function() {
|
246 |
if (_cp_clear_result) this.cp_obj.update_res(null);
|
247 |
+
|
248 |
+
switch($(this.fields.postcode_id).getValue().substring(0,2)){
|
249 |
+
case "GY":
|
250 |
+
$(this.fields.country_id).setValue("GG");
|
251 |
+
break;
|
252 |
+
case "JE":
|
253 |
+
$(this.fields.country_id).setValue("JE");
|
254 |
+
break;
|
255 |
+
case "IM":
|
256 |
+
$(this.fields.country_id).setValue("IM");
|
257 |
+
break;
|
258 |
+
default:
|
259 |
+
$(this.fields.country_id).setValue("GB");
|
260 |
+
break;
|
261 |
+
}
|
262 |
}
|
263 |
|
264 |
this.result_error = function() {
|
@@ -299,6 +299,21 @@ function CraftyClicksMagentoClass () {
|
|
299 |
this.result_selected = function() {
|
300 |
if (_cp_clear_result) this.cp_obj.update_res(null);
|
301 |
$$('.'+this.prefix+'_cp_address_class').invoke('show');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
302 |
}
|
303 |
|
304 |
this.result_error = function() {
|
299 |
this.result_selected = function() {
|
300 |
if (_cp_clear_result) this.cp_obj.update_res(null);
|
301 |
$$('.'+this.prefix+'_cp_address_class').invoke('show');
|
302 |
+
|
303 |
+
switch($(this.fields.postcode_id).getValue().substring(0,2)){
|
304 |
+
case "GY":
|
305 |
+
$(this.fields.country_id).setValue("GG");
|
306 |
+
break;
|
307 |
+
case "JE":
|
308 |
+
$(this.fields.country_id).setValue("JE");
|
309 |
+
break;
|
310 |
+
case "IM":
|
311 |
+
$(this.fields.country_id).setValue("IM");
|
312 |
+
break;
|
313 |
+
default:
|
314 |
+
$(this.fields.country_id).setValue("GB");
|
315 |
+
break;
|
316 |
+
}
|
317 |
}
|
318 |
|
319 |
this.result_error = function() {
|
@@ -261,6 +261,21 @@ function CraftyClicksMagentoClass () {
|
|
261 |
this.result_selected = function() {
|
262 |
if (_cp_clear_result) this.cp_obj.update_res(null);
|
263 |
$$('.'+this.prefix+'_cp_address_class').invoke('show');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
264 |
}
|
265 |
|
266 |
this.result_error = function() {
|
261 |
this.result_selected = function() {
|
262 |
if (_cp_clear_result) this.cp_obj.update_res(null);
|
263 |
$$('.'+this.prefix+'_cp_address_class').invoke('show');
|
264 |
+
|
265 |
+
switch($(this.fields.postcode_id).getValue().substring(0,2)){
|
266 |
+
case "GY":
|
267 |
+
$(this.fields.country_id).setValue("GG");
|
268 |
+
break;
|
269 |
+
case "JE":
|
270 |
+
$(this.fields.country_id).setValue("JE");
|
271 |
+
break;
|
272 |
+
case "IM":
|
273 |
+
$(this.fields.country_id).setValue("IM");
|
274 |
+
break;
|
275 |
+
default:
|
276 |
+
$(this.fields.country_id).setValue("GB");
|
277 |
+
break;
|
278 |
+
}
|
279 |
}
|
280 |
|
281 |
this.result_error = function() {
|
@@ -271,6 +271,21 @@ function CraftyClicksMagentoClass () {
|
|
271 |
this.result_selected = function() {
|
272 |
if (_cp_clear_result) this.cp_obj.update_res(null);
|
273 |
$$('.'+this.prefix+'_cp_address_class').invoke('show');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
274 |
/* need to fix this - how do we hide the $%^&% labels ??!!!
|
275 |
var tmp_val;
|
276 |
if ($(this.fields.company_id)) {
|
271 |
this.result_selected = function() {
|
272 |
if (_cp_clear_result) this.cp_obj.update_res(null);
|
273 |
$$('.'+this.prefix+'_cp_address_class').invoke('show');
|
274 |
+
|
275 |
+
switch($(this.fields.postcode_id).getValue().substring(0,2)){
|
276 |
+
case "GY":
|
277 |
+
$(this.fields.country_id).setValue("GG");
|
278 |
+
break;
|
279 |
+
case "JE":
|
280 |
+
$(this.fields.country_id).setValue("JE");
|
281 |
+
break;
|
282 |
+
case "IM":
|
283 |
+
$(this.fields.country_id).setValue("IM");
|
284 |
+
break;
|
285 |
+
default:
|
286 |
+
$(this.fields.country_id).setValue("GB");
|
287 |
+
break;
|
288 |
+
}
|
289 |
/* need to fix this - how do we hide the $%^&% labels ??!!!
|
290 |
var tmp_val;
|
291 |
if ($(this.fields.company_id)) {
|
@@ -266,6 +266,21 @@ function CraftyClicksMagentoClass () {
|
|
266 |
this.result_selected = function() {
|
267 |
if (_cp_clear_result) this.cp_obj.update_res(null);
|
268 |
$$('.'+this.prefix+'_cp_address_class').invoke('show');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
269 |
}
|
270 |
|
271 |
this.result_error = function() {
|
266 |
this.result_selected = function() {
|
267 |
if (_cp_clear_result) this.cp_obj.update_res(null);
|
268 |
$$('.'+this.prefix+'_cp_address_class').invoke('show');
|
269 |
+
|
270 |
+
switch($(this.fields.postcode_id).getValue().substring(0,2)){
|
271 |
+
case "GY":
|
272 |
+
$(this.fields.country_id).setValue("GG");
|
273 |
+
break;
|
274 |
+
case "JE":
|
275 |
+
$(this.fields.country_id).setValue("JE");
|
276 |
+
break;
|
277 |
+
case "IM":
|
278 |
+
$(this.fields.country_id).setValue("IM");
|
279 |
+
break;
|
280 |
+
default:
|
281 |
+
$(this.fields.country_id).setValue("GB");
|
282 |
+
break;
|
283 |
+
}
|
284 |
}
|
285 |
|
286 |
this.result_error = function() {
|
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>UK_Postcode_Address_Finder</name>
|
4 |
-
<version>2.5.
|
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 |

|
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
|
|
|
|
|
|
|
|
|
|
|
18 |
v2.5.1
|
19 |
* Fixed issue in Admin Panel
|
20 |
* Fixed issue with Amasty Checkout
|
@@ -141,9 +146,9 @@ v 1.1.0 
|
|
141 |

|
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>
|
145 |
-
<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="
|
147 |
<compatible/>
|
148 |
<dependencies><required><php><min>4.0.0</min><max>6.0.0</max></php></required></dependencies>
|
149 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>UK_Postcode_Address_Finder</name>
|
4 |
+
<version>2.5.2</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 |

|
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
|
18 |
+
v2.5.2
|
19 |
+
* Fixed special character escaping issue with error messages
|
20 |
+
* Added support for Lotus Breath one step checkout
|
21 |
+
* New feature: detect & change country after address selected. (Guernsey, Jersey, Isle of Man or UK)
|
22 |
+

|
23 |
v2.5.1
|
24 |
* Fixed issue in Admin Panel
|
25 |
* Fixed issue with Amasty Checkout
|
146 |

|
147 |
v 1.0.0 - Initial Release</notes>
|
148 |
<authors><author><name>Crafty Clicks</name><user>styloa</user><email>support@craftyclicks.co.uk</email></author></authors>
|
149 |
+
<date>2015-01-20</date>
|
150 |
+
<time>17:04:20</time>
|
151 |
+
<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="607f794fd1d11f44200db476320f2396"/><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="105cfbd98b0da641df4c182b5a1930b1"/></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="299908002600660a94a87abb356ee2c6"/></dir></dir><dir name="template"><dir name="craftyclicks"><dir name="clicktoaddress"><file name="common_config.phtml" hash="f5790f5c764684d79d4a0a9fa1d23344"/></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="8e771ddfcbd125a86298bec9627e0455"/><file name="craftyclicks_aitoc_checkout.js" hash="e4e1128e97c78545afe5a2b176c3865c"/><file name="craftyclicks_amesty_onepagecheckout.js" hash="9b1040089d3e4fbfcac15474c959b46a"/><file name="craftyclicks_ath_oscheckout.js" hash="5b1bf7b4b52750c3495ed028ababad2b"/><file name="craftyclicks_awesome_checkout.js" hash="3acb3da5f1fa843046076fb1c8f4b9cf"/><file name="craftyclicks_ecomm_easycheckout.js" hash="dfa623bd3ec54f5680c9da6a01825142"/><file name="craftyclicks_gomage_lightcheckout.js" hash="1c6f9d930a3d946508bda2bd54b8f93b"/><file name="craftyclicks_iwd_onestepcheckout.js" hash="4134989d3d606a052f62e8f2cf304c0c"/><file name="craftyclicks_iwd_onestepcheckout_v2_2.js" hash="a6ca0de328765b07d5b7447b7c54951e"/><file name="craftyclicks_magento.js" hash="e37d09979e449bc98bb99b2e99895a5d"/><file name="craftyclicks_magento.js~" hash="aa12f726bcb272d247e1af2e32768145"/><file name="craftyclicks_magento_admin.js" hash="84a831a251d80e5b4ba6513431a4c98d"/><file name="craftyclicks_onepagecheckout.js" hash="d0cfccf16beb7586b4eba73edeb0fd58"/><file name="craftyclicks_tm_firecheckout.js" hash="f3173c46c6d131c2021172919adcba3b"/><file name="craftyclicks_vinagentocheckout.js" hash="1157f50866b78fdecaf948e3f07d23b0"/><file name="craftyclicks_webandpeople_onepagecheckout.js" hash="7c319da4b6889fbe75ba8c5abfb503ec"/></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>
|
152 |
<compatible/>
|
153 |
<dependencies><required><php><min>4.0.0</min><max>6.0.0</max></php></required></dependencies>
|
154 |
</package>
|