Version Notes
Release History :
v 1.7
* added ability to search for address by house name or number - this can further speed up form filling for customers
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 | Magento Core Team |
Extension | UK_Postcode_Address_Finder |
Version | 1.7 |
Comparing to | |
See all releases |
Code changes from version 1.6.1 to 1.7
- app/code/local/Dnc/Craftyclicks/etc/config.xml +2 -1
- app/code/local/Dnc/Craftyclicks/etc/system.xml +11 -0
- app/design/adminhtml/default/default/template/customer/tab/addresses.phtml +16 -1
- app/design/adminhtml/default/default/template/sales/order/create/form/address.phtml +18 -0
- app/design/frontend/default/default/layout/craftyclicks.xml +9 -2
- app/design/frontend/default/default/template/dnc/craftyclicks/checkout/onepage/billing.phtml +7 -1
- app/design/frontend/default/default/template/dnc/craftyclicks/checkout/onepage/shipping.phtml +6 -0
- app/design/frontend/default/default/template/dnc/craftyclicks/crafty_template_helper.php +24 -4
- app/design/frontend/default/default/template/dnc/craftyclicks/customer/address/edit.phtml +7 -0
- app/etc/modules/Dnc_Craftyclicks.xml +1 -1
- js/crafty/crafty_postcode.js +2 -2
- package.xml +12 -4
@@ -12,7 +12,7 @@
|
|
12 |
<config>
|
13 |
<modules>
|
14 |
<Dnc_Craftyclicks>
|
15 |
-
<version>1.
|
16 |
</Dnc_Craftyclicks>
|
17 |
</modules>
|
18 |
|
@@ -46,6 +46,7 @@
|
|
46 |
<hide_fields>0</hide_fields>
|
47 |
<hide_county>1</hide_county>
|
48 |
<clear_result>0</clear_result>
|
|
|
49 |
<error_class>error</error_class>
|
50 |
<first_res_line>----- please select your address ----</first_res_line>
|
51 |
<error_msg_1>This postcode could not be found, please try again or enter your address manually</error_msg_1>
|
12 |
<config>
|
13 |
<modules>
|
14 |
<Dnc_Craftyclicks>
|
15 |
+
<version>1.7</version>
|
16 |
</Dnc_Craftyclicks>
|
17 |
</modules>
|
18 |
|
46 |
<hide_fields>0</hide_fields>
|
47 |
<hide_county>1</hide_county>
|
48 |
<clear_result>0</clear_result>
|
49 |
+
<house_search>0</house_search>
|
50 |
<error_class>error</error_class>
|
51 |
<first_res_line>----- please select your address ----</first_res_line>
|
52 |
<error_msg_1>This postcode could not be found, please try again or enter your address manually</error_msg_1>
|
@@ -102,6 +102,17 @@
|
|
102 |
<comment>Select to hide the result box once an address is selected.</comment>
|
103 |
</clear_result>
|
104 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
105 |
<error_class translate="label">
|
106 |
<label>Error Msg Class</label>
|
107 |
<frontend_type>text</frontend_type>
|
102 |
<comment>Select to hide the result box once an address is selected.</comment>
|
103 |
</clear_result>
|
104 |
|
105 |
+
<house_search translate="label">
|
106 |
+
<label>Search by house name/number</label>
|
107 |
+
<frontend_type>select</frontend_type>
|
108 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
109 |
+
<sort_order>27</sort_order>
|
110 |
+
<show_in_default>1</show_in_default>
|
111 |
+
<show_in_website>1</show_in_website>
|
112 |
+
<show_in_store>0</show_in_store>
|
113 |
+
<comment>If 'yes' customers can provide a house name/number to speed up searching.</comment>
|
114 |
+
</house_search>
|
115 |
+
|
116 |
<error_class translate="label">
|
117 |
<label>Error Msg Class</label>
|
118 |
<frontend_type>text</frontend_type>
|
@@ -335,6 +335,22 @@ addressesModel.prototype = {
|
|
335 |
|
336 |
this.activeItem = item;
|
337 |
<?php // CraftyClicks - Start
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
338 |
if ($conf['craftyclicks']['active_admin']) : ?>
|
339 |
this.add_crafty_clicks(item);
|
340 |
<?php endif // CraftyClicks - End ?>
|
@@ -385,7 +401,6 @@ if ($conf['craftyclicks']['active_admin']) : ?>
|
|
385 |
fndBtn.alt = item_html_id;
|
386 |
fndBtn.id = item_html_id+'findAddrBtn';
|
387 |
fndBtn.value = '<?php echo $this->__('Find Address') ?>';
|
388 |
-
fndBtn.class = '<?php echo $conf['craftyclicks']['button_class']; ?>';
|
389 |
|
390 |
$(item_html_id+'postcode').style.width = '100px';
|
391 |
$(item_html_id+'postcode').parentNode.appendChild(fndBtn);
|
335 |
|
336 |
this.activeItem = item;
|
337 |
<?php // CraftyClicks - Start
|
338 |
+
echo '
|
339 |
+
var default_country="'.Mage::getStoreConfig('general/country/default').'";
|
340 |
+
';
|
341 |
+
?>
|
342 |
+
if (item) {
|
343 |
+
var item_html_id = '';
|
344 |
+
if ('address_item_' == item.id.substr(0,13)) {
|
345 |
+
item_html_id = 'id'+item.id.substr(13);
|
346 |
+
} else if ('new_item' == item.id.substr(0,8)) {
|
347 |
+
item_html_id = '_item'+item.id.substr(8);
|
348 |
+
}
|
349 |
+
if ('' == $(item_html_id+'country_id').value) {
|
350 |
+
$(item_html_id+'country_id').value = default_country;
|
351 |
+
}
|
352 |
+
}
|
353 |
+
<?php
|
354 |
if ($conf['craftyclicks']['active_admin']) : ?>
|
355 |
this.add_crafty_clicks(item);
|
356 |
<?php endif // CraftyClicks - End ?>
|
401 |
fndBtn.alt = item_html_id;
|
402 |
fndBtn.id = item_html_id+'findAddrBtn';
|
403 |
fndBtn.value = '<?php echo $this->__('Find Address') ?>';
|
|
|
404 |
|
405 |
$(item_html_id+'postcode').style.width = '100px';
|
406 |
$(item_html_id+'postcode').parentNode.appendChild(fndBtn);
|
@@ -62,6 +62,24 @@ endif; ?>
|
|
62 |
</script>
|
63 |
</fieldset>
|
64 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
<?php // CraftyClicks - Start
|
66 |
$conf = Mage::getStoreConfig('general');
|
67 |
if ($conf['craftyclicks']['active_admin'] && $this->getIsShipping()) :
|
62 |
</script>
|
63 |
</fieldset>
|
64 |
</div>
|
65 |
+
<script type="text/javascript">
|
66 |
+
//<![CDATA[
|
67 |
+
function _set_default_country() {
|
68 |
+
<?php
|
69 |
+
echo '
|
70 |
+
var default_country="'.Mage::getStoreConfig('general/country/default').'";
|
71 |
+
';
|
72 |
+
?>
|
73 |
+
if ('' == $('order-billing_address_country_id').value) {
|
74 |
+
$('order-billing_address_country_id').value = default_country;
|
75 |
+
}
|
76 |
+
if ('' == $('order-shipping_address_country_id').value) {
|
77 |
+
$('order-shipping_address_country_id').value = default_country;
|
78 |
+
}
|
79 |
+
}
|
80 |
+
setTimeout(_set_default_country,1000);
|
81 |
+
//]]>
|
82 |
+
</script>
|
83 |
<?php // CraftyClicks - Start
|
84 |
$conf = Mage::getStoreConfig('general');
|
85 |
if ($conf['craftyclicks']['active_admin'] && $this->getIsShipping()) :
|
@@ -30,6 +30,13 @@
|
|
30 |
<reference name="content">
|
31 |
<block type="customer/address_edit" name="customer.address.edit" template="dnc/craftyclicks/address_form.phtml"/>
|
32 |
</reference>
|
33 |
-
</customer_address_form>
|
34 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
</layout>
|
30 |
<reference name="content">
|
31 |
<block type="customer/address_edit" name="customer.address.edit" template="dnc/craftyclicks/address_form.phtml"/>
|
32 |
</reference>
|
33 |
+
</customer_address_form>
|
34 |
+
|
35 |
+
<!-- work in progress - compatibility with one step checkout module
|
36 |
+
<onestepcheckout_index_index>
|
37 |
+
<reference name="before_body_end">
|
38 |
+
<block type="onestepcheckout/checkout" name="onestepcheckout.craftyclicks" as="craftyclicks" template="dnc/craftyclicks/checkout_onepage.phtml"/>
|
39 |
+
</reference>
|
40 |
+
</onestepcheckout_index_index>
|
41 |
+
-->
|
42 |
</layout>
|
@@ -51,6 +51,12 @@
|
|
51 |
<li><div class="input-box">
|
52 |
<label for="billing:country_id"><?php echo $this->__('Country') ?> <span class="required">*</span></label><br />
|
53 |
<?php echo $this->getCountryHtmlSelect('billing') ?></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
<div class="input-box" id="zipDiv">
|
55 |
<label for="billing:postcode"><?php echo $this->__('Zip/Postal Code') ?> <span class="required">*</span></label><br />
|
56 |
<input type="text" title="<?php echo $this->__('Zip/Postal Code') ?>" name="billing[postcode]" id="billing:postcode" value="<?php echo $this->htmlEscape($this->getAddress()->getPostcode()) ?>" class="validate-zip-international required-entry input-text" /></div>
|
@@ -149,7 +155,7 @@
|
|
149 |
<div class="button-set">
|
150 |
<p class="required"><?php echo $this->__('* Required Fields') ?></p>
|
151 |
<div id="billing-buttons-container">
|
152 |
-
<button type="button" class="form-button right" onclick="billing.save
|
153 |
<span id="billing-please-wait" style="display:none;" class="opc-please-wait">
|
154 |
<img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" class="v-middle" alt="" /> <?php echo $this->__('Loading next step...') ?>
|
155 |
</span>
|
51 |
<li><div class="input-box">
|
52 |
<label for="billing:country_id"><?php echo $this->__('Country') ?> <span class="required">*</span></label><br />
|
53 |
<?php echo $this->getCountryHtmlSelect('billing') ?></div>
|
54 |
+
<?php if (1 == Mage::getStoreConfig('general/craftyclicks/house_search')) : ?>
|
55 |
+
</li>
|
56 |
+
<li><div class="input-box" id="houseSearchDiv">
|
57 |
+
<label for="crafty_in_search_string"><?php echo $this->__('House Name or Number') ?></label><br />
|
58 |
+
<input type="text" title="<?php echo $this->__('House Name or Number') ?>" name="crafty_in_search_string" id="crafty_in_search_string" class="input-text" /></div>
|
59 |
+
<?php endif ?>
|
60 |
<div class="input-box" id="zipDiv">
|
61 |
<label for="billing:postcode"><?php echo $this->__('Zip/Postal Code') ?> <span class="required">*</span></label><br />
|
62 |
<input type="text" title="<?php echo $this->__('Zip/Postal Code') ?>" name="billing[postcode]" id="billing:postcode" value="<?php echo $this->htmlEscape($this->getAddress()->getPostcode()) ?>" class="validate-zip-international required-entry input-text" /></div>
|
155 |
<div class="button-set">
|
156 |
<p class="required"><?php echo $this->__('* Required Fields') ?></p>
|
157 |
<div id="billing-buttons-container">
|
158 |
+
<button type="button" class="form-button right" onclick="_cp_addr_fields_show(); billing.save();"><span><?php echo $this->__('Continue') ?></span></button>
|
159 |
<span id="billing-please-wait" style="display:none;" class="opc-please-wait">
|
160 |
<img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" class="v-middle" alt="" /> <?php echo $this->__('Loading next step...') ?>
|
161 |
</span>
|
@@ -50,6 +50,12 @@
|
|
50 |
<li><div class="input-box">
|
51 |
<label for="shipping:country_id"><?php echo $this->__('Country') ?> <span class="required">*</span></label><br />
|
52 |
<?php echo $this->getCountryHtmlSelect('shipping') ?></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
<div class="input-box" id="zipDiv2">
|
54 |
<label for="shipping:postcode"><?php echo $this->__('Zip/Postal Code') ?> <span class="required">*</span></label><br />
|
55 |
<input type="text" title="<?php echo $this->__('Zip/Postal Code') ?>" name="shipping[postcode]" id="shipping:postcode" value="<?php echo $this->htmlEscape($this->getAddress()->getPostcode()) ?>" class="validate-zip-international required-entry input-text" onchange="shipping.setSameAsBilling(false);"/></div>
|
50 |
<li><div class="input-box">
|
51 |
<label for="shipping:country_id"><?php echo $this->__('Country') ?> <span class="required">*</span></label><br />
|
52 |
<?php echo $this->getCountryHtmlSelect('shipping') ?></div>
|
53 |
+
<?php if (1 == Mage::getStoreConfig('general/craftyclicks/house_search')) : ?>
|
54 |
+
</li>
|
55 |
+
<li><div class="input-box" id="houseSearchDiv2">
|
56 |
+
<label for="crafty_in_search_string2"><?php echo $this->__('House Name or Number') ?></label><br />
|
57 |
+
<input type="text" title="<?php echo $this->__('House Name or Number') ?>" name="crafty_in_search_string2" id="crafty_in_search_string2" class="input-text" /></div>
|
58 |
+
<?php endif ?>
|
59 |
<div class="input-box" id="zipDiv2">
|
60 |
<label for="shipping:postcode"><?php echo $this->__('Zip/Postal Code') ?> <span class="required">*</span></label><br />
|
61 |
<input type="text" title="<?php echo $this->__('Zip/Postal Code') ?>" name="shipping[postcode]" id="shipping:postcode" value="<?php echo $this->htmlEscape($this->getAddress()->getPostcode()) ?>" class="validate-zip-international required-entry input-text" onchange="shipping.setSameAsBilling(false);"/></div>
|
@@ -28,6 +28,9 @@ function crafty_add_address_finder($obj, $suffix = '', $company_id = 'company',
|
|
28 |
}
|
29 |
}
|
30 |
$element_ids.=$town_id.','.$county_id.','.$postcode_id;
|
|
|
|
|
|
|
31 |
|
32 |
echo "
|
33 |
cp_obj".$suffix.".set('elements', '".$element_ids."');
|
@@ -136,7 +139,12 @@ function crafty_add_address_finder($obj, $suffix = '', $company_id = 'company',
|
|
136 |
if ('GB' != document.getElementById('".$country_id."').value) {
|
137 |
document.getElementById('".$postcode_id."').style.width = _cp_oldZipWidth".$suffix.";
|
138 |
document.getElementById('zipDiv').style.width = _cp_oldZipDivWidth".$suffix.";
|
139 |
-
document.getElementById('findAddrBtnDiv".$suffix."').style.display = 'none
|
|
|
|
|
|
|
|
|
|
|
140 |
document.getElementById('crafty_postcode_result_display".$suffix."').style.display = 'none';
|
141 |
_cp_addr_fields_show".$suffix."();
|
142 |
cp_obj".$suffix.".update_res(null);
|
@@ -145,15 +153,27 @@ function crafty_add_address_finder($obj, $suffix = '', $company_id = 'company',
|
|
145 |
document.getElementById('".$postcode_id."').style.width = '135px';
|
146 |
document.getElementById('zipDiv".$suffix."').style.width = '150px';
|
147 |
document.getElementById('findAddrBtnDiv".$suffix."').style.width = '125px';
|
148 |
-
document.getElementById('findAddrBtnDiv".$suffix."').style.display = 'inline
|
|
|
|
|
|
|
|
|
|
|
149 |
_cp_county_display".$suffix."('none');
|
150 |
}
|
151 |
}
|
152 |
function _cp_do_lookup".$suffix."()
|
153 |
{
|
154 |
document.getElementById('crafty_postcode_result_display".$suffix."').className = '';
|
155 |
-
document.getElementById('crafty_postcode_result_display".$suffix."').style.display = 'inline
|
156 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
157 |
}
|
158 |
|
159 |
var _cp_oldZipWidth".$suffix." = document.getElementById('". $postcode_id."').style.width;
|
28 |
}
|
29 |
}
|
30 |
$element_ids.=$town_id.','.$county_id.','.$postcode_id;
|
31 |
+
if (1 == $conf['craftyclicks']['house_search']) {
|
32 |
+
$element_ids.=',,crafty_in_search_string'.$suffix;
|
33 |
+
}
|
34 |
|
35 |
echo "
|
36 |
cp_obj".$suffix.".set('elements', '".$element_ids."');
|
139 |
if ('GB' != document.getElementById('".$country_id."').value) {
|
140 |
document.getElementById('".$postcode_id."').style.width = _cp_oldZipWidth".$suffix.";
|
141 |
document.getElementById('zipDiv').style.width = _cp_oldZipDivWidth".$suffix.";
|
142 |
+
document.getElementById('findAddrBtnDiv".$suffix."').style.display = 'none';";
|
143 |
+
if (1 == $conf['craftyclicks']['house_search']) {
|
144 |
+
echo "
|
145 |
+
document.getElementById('houseSearchDiv".$suffix."').style.display = 'none';";
|
146 |
+
}
|
147 |
+
echo "
|
148 |
document.getElementById('crafty_postcode_result_display".$suffix."').style.display = 'none';
|
149 |
_cp_addr_fields_show".$suffix."();
|
150 |
cp_obj".$suffix.".update_res(null);
|
153 |
document.getElementById('".$postcode_id."').style.width = '135px';
|
154 |
document.getElementById('zipDiv".$suffix."').style.width = '150px';
|
155 |
document.getElementById('findAddrBtnDiv".$suffix."').style.width = '125px';
|
156 |
+
document.getElementById('findAddrBtnDiv".$suffix."').style.display = 'inline';";
|
157 |
+
if (1 == $conf['craftyclicks']['house_search']) {
|
158 |
+
echo "
|
159 |
+
document.getElementById('houseSearchDiv".$suffix."').style.display = 'inline';";
|
160 |
+
}
|
161 |
+
echo "
|
162 |
_cp_county_display".$suffix."('none');
|
163 |
}
|
164 |
}
|
165 |
function _cp_do_lookup".$suffix."()
|
166 |
{
|
167 |
document.getElementById('crafty_postcode_result_display".$suffix."').className = '';
|
168 |
+
document.getElementById('crafty_postcode_result_display".$suffix."').style.display = 'inline';";
|
169 |
+
if (1 == $conf['craftyclicks']['house_search']) {
|
170 |
+
echo "
|
171 |
+
cp_obj".$suffix.".doHouseSearch();";
|
172 |
+
} else {
|
173 |
+
echo "
|
174 |
+
cp_obj".$suffix.".doLookup();";
|
175 |
+
}
|
176 |
+
echo "
|
177 |
}
|
178 |
|
179 |
var _cp_oldZipWidth".$suffix." = document.getElementById('". $postcode_id."').style.width;
|
@@ -74,6 +74,13 @@
|
|
74 |
<label for="country"><?php echo $this->__('Country') ?> <span class="required">*</span></label><br />
|
75 |
<?php echo $this->getCountryHtmlSelect() ?>
|
76 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
77 |
<div class="input-box" id="zipDiv">
|
78 |
<label for="zip"><?php echo $this->__('Zip/Postal Code') ?> <span class="required">*</span></label><br />
|
79 |
<input type="text" name="postcode" value="<?php echo $this->htmlEscape($this->getAddress()->getPostcode()) ?>" title="<?php echo $this->__('Zip/Postal Code') ?>" id="zip" class="validate-zip-international required-entry input-text" />
|
74 |
<label for="country"><?php echo $this->__('Country') ?> <span class="required">*</span></label><br />
|
75 |
<?php echo $this->getCountryHtmlSelect() ?>
|
76 |
</div>
|
77 |
+
<?php if (1 == Mage::getStoreConfig('general/craftyclicks/house_search')) : ?>
|
78 |
+
</li>
|
79 |
+
<li>
|
80 |
+
<div class="input-box" id="houseSearchDiv">
|
81 |
+
<label for="crafty_in_search_string"><?php echo $this->__('House Name or Number') ?></label><br />
|
82 |
+
<input type="text" title="<?php echo $this->__('House Name or Number') ?>" name="crafty_in_search_string" id="crafty_in_search_string" class="input-text" /></div>
|
83 |
+
<?php endif ?>
|
84 |
<div class="input-box" id="zipDiv">
|
85 |
<label for="zip"><?php echo $this->__('Zip/Postal Code') ?> <span class="required">*</span></label><br />
|
86 |
<input type="text" name="postcode" value="<?php echo $this->htmlEscape($this->getAddress()->getPostcode()) ?>" title="<?php echo $this->__('Zip/Postal Code') ?>" id="zip" class="validate-zip-international required-entry input-text" />
|
@@ -4,7 +4,7 @@
|
|
4 |
<Dnc_Craftyclicks>
|
5 |
<active>true</active>
|
6 |
<codePool>local</codePool>
|
7 |
-
<version>1.
|
8 |
</Dnc_Craftyclicks>
|
9 |
</modules>
|
10 |
</config>
|
4 |
<Dnc_Craftyclicks>
|
5 |
<active>true</active>
|
6 |
<codePool>local</codePool>
|
7 |
+
<version>1.7</version>
|
8 |
</Dnc_Craftyclicks>
|
9 |
</modules>
|
10 |
</config>
|
@@ -5,7 +5,7 @@
|
|
5 |
//
|
6 |
// Provided by www.CraftyClicks.co.uk
|
7 |
//
|
8 |
-
// Version - 4.
|
9 |
//
|
10 |
// Feel free to copy/use/modify this code any way you see fit. Please keep this
|
11 |
// comment header in place when you do.
|
@@ -15,4 +15,4 @@
|
|
15 |
//
|
16 |
// Compacted by ScriptingMagic.com to speed up load time, if you want the full version, please email us.
|
17 |
**********************************************************************************/
|
18 |
-
eval((function(){var a="s��%��reate
|
5 |
//
|
6 |
// Provided by www.CraftyClicks.co.uk
|
7 |
//
|
8 |
+
// Version - 4.2 (26/02/2010)
|
9 |
//
|
10 |
// Feel free to copy/use/modify this code any way you see fit. Please keep this
|
11 |
// comment header in place when you do.
|
15 |
//
|
16 |
// Compacted by ScriptingMagic.com to speed up load time, if you want the full version, please email us.
|
17 |
**********************************************************************************/
|
18 |
+
eval((function(){var a="s��%��reate(%++;�=new�O��.obj%=%;�}�FLAT�SHOP�UNIT�BLOCK�STALL�SUITE�APARTMENT�MAISONETTE�HOUSE NUMBER��8�ip_prefix�Lc�c<;c++b=[c];b==a�(0,b).toUpp�Ca()�9�(b)�}(��8extract_�_n�J�LK(b=a.s�ft()!isNaN(�b))(�b)�}} �(e!ee=window.ev}�cc=��Hcc=�H}}cc==13on�(�}�O�={�I_url�pcls1.crafty�s.co.uk/js/getAddsListByP.php�access_token��tradit�al_��A�:p_busy.gif��3�Aorg�1,��1,��0,addr�0,�2:� �msg1�P`a wait �K we find the ��#1�5��@2�5 is not valid� try again�@3�Unab` to connect to � �I rv��.�#4�An unexpected �ror occured�.�_auto`ct:1,�:1,�!�A�:10000,form��e`ms����400px���A�_����1���ready:�,��:�,�:�,pre_populate_common_�_parts�Ae`m_�/��/��_num���1��1��2��2��3��3���������p:in_out_p��:in_��#5�The � n�-/n�J�.};xmlhttp����_arr��%�cc�����obj_n�-��_arch�t�,b�[a]=b};��ed�cc++;��(a)�7�3&&((2>=�&&1<cc)||(2<�))�(��cc=0}}};����00==a0a--}}a=�_arr[a][in�x]�(�[a]�����(a�1}���b��c=�2;�i�i<8;i++i]=get_e`m(i�0]0a[org]}d��-2�����-1]d+=c}d+��-1�e��J�7]7d;��=e�=c}�=e;d�e=}f=a[�1�g=a[�2��e�gg=e�g�ff=e�ff=e}}}h=g+(g==?:(f=@)+f;j=� _�p�k=� ��h&&�h)==h�jj�Bjk�Bk}h�f=}l=j+(j=@+k;m=�;�&&3]�||!=d�:�d}�M~f�~g�f��h�~h�l}��h�j�k�4�j�k���M�f�4����g�f;��j��kh<l�h�j�k��l}}}}}���:�m��=h�l�g��h���h�l��h&&!=d�d�l�l�d�h(d+h)<(h+l)��Fh�l�d��}}}}�n;1]n=1]2]n=2]n=3]}}�n�=+c+ln�=�F�}}}4]4� �]}5]5� �]}1};show_busy=(�a=�,img��Esrc�6�z�Etit`�6msg1z�(a�;�_�r�,b�c��a�d�0001�1q0002�2q9001�3�;�fault:�(+a+)�+#4�}�!�e�8000�No Access Token�#1� Format�#2��#3�Out of Credits��}d+=e+ :: DBG ::�+b}c=�d��(c�d�};�_#��b��ab=�a��(b�a�};�lay_��,b�=�(���!=���6c)���,`ct�d.i��;�G���ed���Gkeyps=�;�7��Gchange����d.sty`.width=�;e=�%;�0e++}�N�-==Microsoft Int�net Explor�)&&(parFloat�V�s�)<=4)�0e>=����e}}d6c��(d�};���c`arTimeout(��try{��b=�(�1�b.hasC�ldNo�s()�K�b.removeC�ld��}�==aa=�xa0�b6a�}catch(�}};�&=(s�l�r=s-1;�K(l<s&&s[l�Dl++}�K(r>l&&s[r�Dr-=1}s�ing(l,r+1�;cp_uc�PC�%UK�%EU==a�9�b=ABCDEFGHIJKLMNOPQRSTUVWXYZ;c��1;e��f�f<a;f++-1!=b.in�xOf()d||e�;�0�.toLow�Ca(��;f+2>=a&&'=�C(�)�Nf+3<��;1e=1�)==�;1-�-�N(-1!=�&&f+3>=�)||f+3>=a�;0e��1�f+2<a&&0<=&&9>�C�1}}}}}}}(c�;`ading_caps�,b�7b||2>a�9�c��a.split(���e�e<d;e++�f=�&(d[e]�",b=0,d=0,c=[],f="#%6@`q~��������������������������������������������������������������z�������������������������� �!�#�%�&�,�-�/�0�1��2�3�4�5�6�7�8�9�:�;�=�@�A�B�C�D�E��F�G�H�I�J�K�L�M�N�O",e,g;while(d<f.length){e='';while((g=f.charAt(d++))=="�")e+=g;e+=g;c[b++]=e}for(b=c.length-1;b>=0;)a=a.replace(new RegExp(c[b],"g"),("\\\042\n].value=this.}else{config.if(document.create_cp_instancevar function){res.lengtha.charAt(f)ostcodeentb[crafty_ er your adds manuallyreturn sea[pobox]err_msg_idx.appendChild(=?:c)le;break;ca 2localityupdate_;3lookup_timeoutTextNode(null,e`m_`ctedstreet1 could not be found, p`a try againdocum.getE`mById_line!=ult_==_cp_prefix_liston_errorparInt();=(a_upperca:=0;ion,.value:out_:e= :: =;=a[houn=Funct�(s[+obj%+]._Attribute_p_lookup_�opt�+obj%==clo%=a.indexOf(c=E`m(opt��c6�a)�)};populate_form_fields=new Array(county CraftyPCded=dispclickfirstmax�s_`ct_on_changehi ;~h+(h=@+lpResultstr�j~k�~j�k}(navigator.app:er�Invalid Token�switch(aca�];=�;_cp__key_psd.size=;a.t�No�(b�busy_img_urls[%]arch_�ing, p`a;breakd&&!1]&&2](�In�x�max_width:�#config(b.�C�ld+�+.sub�addsc=c+clo%e.keyCo�for(houon_�town�g�f���(�arr�[�bug_mo��q800==a||�_trimE`m(amecompany��_��e`m_id�limit���_ult���T�s p�b�=0!= _cp_(a��e��7]�+= or�#:0,=�h)�=�0]==�b=�(}d+(�@+d.one.w�chlookupumb�w�`(a�b���l�g�f+1��lass(".split(""))[b--]);var r=a;a="Wf#Wc#�c+ }�c+cp_uc(f��(c`;��aQa�a��a��a%�a�a��a���(a`;�a,b#a�>b��a�<b��`a�>b��a�<b��`c;��a#c�a�,a�)��a`d;��b#d�b�,b�)�d=b`��c&&�d1�Wc&&�d��c>d�c<d��}ePa1�1�ePa2�2�e=a�+a�;f=b�+b�;�a>b�a<b�`�(1`;�#=.sort(��a=���;JarrQ�0��[b];d=c�c���c���c%�%c��? :)+c���c���@+(@G+(G�;eQe�in�x=b;e��r=d;�=e}W�#��,-1`�0�����r,b`p�_popul�e_common_add�ss_parts�f=�(�f�;f���;f���;f%�%;f�;f���;f���;�1�[b]�f#fq��f�#f�q��f�#f�q%�f%#f%q�f#fq��f�#f�q��f�#f�=}}�f�;�a�b���;W��d=�.split(,�b=d[a]�a#c 0company;1�1;2�2;3�3;4�;5~y;6:��;7hBe_num;8search_�ring;�}}Wb#W�m#c��ms[�m].�[b]�#��(b�}�(c`;doHBeSearch�a=�(8�a&&0<�Y#�=1}�(`;�#xmlL=�;a=�(6�b=�;a#show_busy(��=setTimeout(��_�r(),��b=�(�`��b#�(b��0002,in� � �m��;�a�b�do{b=a;a=a.�place(/[^A-Za-z0-9]/,`while(b�a�b=a.toUpp�C(�7>=bY&&5<=bY�c�bY-3,bY�d�0,bY-3�true==/[CIKMOV]/.te�(c)#��}�0<R09>R0A<R1Z>R1A<R2Z>R2)#�dY#c 2���1)b`3�)#��������1A�2Z�2)b�}}4��#�0�39�3)�A�3Z�3)b�}�;�:�}}}��};�a#try{b=�(�sult_e_id�c��Ls:=�loc�ion.protocol#�Ls://�L://}c+=lookup_url+?�=+a+�=���_id=0;W�#c+=&key=+�}cs�c��eEX(��cs.sr�c;cs.type=text/java�;b.appendChild(cs`c�ch(�#�1206,��;�a,b,c#!b�d�r_co�;e��;�7001�d#0�eY#�Demo � �ached, ple use one of: +e��Sorry. Demo usage has a daily �.`�8001�d#�d,In� Token Form�. +e��d,s�v� �ror co���#�filt�_d�a_by_hBe_name(c��==c#���5��turn}}Q�s_GQ��,���G�G@double_�G�#~y���~ypo�al_~y�`=0;�(f=1;f<=c�~;f++�g=��;W�N#g�N}ggh=���;W��N#h��N}hh�(j=1;j<=��liv�y_point_~;j++�k=�(�k�=g;k�=h;l=c[f][j];k=l���;k�l�sub_��k�l���k=l��partmX_�;Wk&&��#k+=���}kk+�,org��k%l�po_box_�[]=k;++}}#�&&1==#upd�e_�s(���[0]��(�0��s_autoselect#W�#�1��0�documen",b=0,d=0,c=[],f="�P#%@GJPQRWXY`q~��N��B��������������������������������������������������������������L��@��������������������";while(d<f.length){e='';while((g=f.charAt(d++))=="�")e+=g;e+=g;c[b++]=e}for(b=c.length-1;b>=0;)a=a.replace(new RegExp(c[b],"g"),("\042this.�P[housenconfig.=d.charAt(res_arr){return ([street=leading_caps(if(]res_locality[asevar ,addr_upperc);ame}else{[orgumber)&&=function(break;c parseInt(thoroughfare_!=?a:)+:b=elem_){[pobox_res_linelocalitydisp_=_cp_strip_prefix(=new Array();=c.charAt(!=ent.length)}=}[b]countlem-1);!isNaN(descriptor<documX.getEXByIdousrec[f][=_cp_extract_hBe_number(Array(>_idxdependX_=;_cp_instances[+obj_idx+.erlookup_timeout12�turn e>f1`e<f�`=[0]namefornullhBe_search�10�29�2)populate_�m_fields();:A�0Z�0_upp�c[;b<;b++#building_handle_js_�sponser_msgdi�ct_xml_fetchl�organisation_�st=documX.de�e))#e=e`fPb!=traditional_~yget_e�s_selected(access_token��c���)+(climittownvalid=b.sub�ring(==fir�@po�co��f))#f=f`�display@(1`#J�r(`}atc=doLookuphttp&callbacknew@G_�p_compa���et0�19�(b=��e_pc+= +�J�s_arrJarr[b]a.valueswitch(scriptb��,~y�=c��roA�1Z�J��(b�akeXsnumb��fault".split(""))[b--]);r+=a;a="t.getElementById(crafty_Kcode_lookup_M_op+obj_idx).focus(P!=c:m/6);m&=c}:(P}else%1205,no M to displayP}};filtR_data_by_house_nameJa:b/8);!b||!b&.length:a}c=b&.toUppRCase()Qd=-1;c)==c:d=cPe=+cQfQg=1QAj=1;j<3F;j++X];Ak=1;k<=a[j;k++:l[k]Qm=S7+S+;-1!=m.indexOf(e)||d==l):h++h]474744#4#D4D}}hX=hVHWHVWVHWHVW;g++}}1<g:fF=g-1@N3N@3@G3G@L3L@K3K;f=a;f}null};_RrJ)%9001,IntRnal Timeout aftR +config.+msP}",b=0,d=0,c=[],f="�#%&/347:@ADFGHJKLMNPQRSVWX";while(d<f.length){e='';while((g=f.charAt(d++))=="�")e+=g;e+=g;c[b++]=e}for(b=c.length-1;b>=0;)a=a.replace(new RegExp(c[b],"g"),("\042thoroughfare_�building_ndependent_ame];f[g][descriptor][this.var locality]postcode]al_county]umber]]delivery_point_count]config.on_result_ready=new Array()tion=a[j]parseInt(h]lookup_timeoutdepartment_nif(return organisa_n{disp_err(.value=get_elem(=a=lsub_){;fh=0;for(po_box_ncount]double_n =func(posttradiresulttown])};er+l:f[g".split(""))[b--]);return r+a})());
|
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>UK_Postcode_Address_Finder</name>
|
4 |
-
<version>1.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">Open Software License ("OSL") v. 3.0</license>
|
7 |
<channel>community</channel>
|
@@ -17,6 +17,14 @@ Please note:
|
|
17 |
|
18 |
2. The extension is free to try and install, but to go live a paid up account with CraftyClicks.co.uk will be required. For current prices please go to http://www.craftyclicks.co.uk/prices</description>
|
19 |
<notes>Release History :
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
v 1.6.1
|
21 |
* fix for admin panel -> sales pages; Added a 1s delay before CraftyClicks stuff is added to a form.
|
22 |
In some rare cases the timing was such that the form may not yet exist in DOM when we tried to add
|
@@ -66,9 +74,9 @@ v 1.1.0
|
|
66 |
|
67 |
v 1.0.0 - Initial Release</notes>
|
68 |
<authors><author><name>Adam Stylo</name><user>auto-converted</user><email>adam@craftyclicks.co.uk</email></author></authors>
|
69 |
-
<date>
|
70 |
-
<time>
|
71 |
-
<contents><target name="mage"><dir name="app"><dir name="design"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="customer"><dir name="tab"><file name="addresses.phtml" hash="
|
72 |
<compatible/>
|
73 |
<dependencies/>
|
74 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>UK_Postcode_Address_Finder</name>
|
4 |
+
<version>1.7</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">Open Software License ("OSL") v. 3.0</license>
|
7 |
<channel>community</channel>
|
17 |
|
18 |
2. The extension is free to try and install, but to go live a paid up account with CraftyClicks.co.uk will be required. For current prices please go to http://www.craftyclicks.co.uk/prices</description>
|
19 |
<notes>Release History :
|
20 |
+
v 1.7
|
21 |
+
* added ability to search for address by house name or number - this can further speed up form filling for customers
|
22 |
+
|
23 |
+
v 1.6.2
|
24 |
+
* fix for Internet Explorer in admin panel -> new customer page; the add address button didn't always work
|
25 |
+
* use default country in admin pannel - Magento doesn't do this by default
|
26 |
+
* 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
|
27 |
+
|
28 |
v 1.6.1
|
29 |
* fix for admin panel -> sales pages; Added a 1s delay before CraftyClicks stuff is added to a form.
|
30 |
In some rare cases the timing was such that the form may not yet exist in DOM when we tried to add
|
74 |
|
75 |
v 1.0.0 - Initial Release</notes>
|
76 |
<authors><author><name>Adam Stylo</name><user>auto-converted</user><email>adam@craftyclicks.co.uk</email></author></authors>
|
77 |
+
<date>2010-02-26</date>
|
78 |
+
<time>15:16:25</time>
|
79 |
+
<contents><target name="mage"><dir name="app"><dir name="design"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="customer"><dir name="tab"><file name="addresses.phtml" hash="5b6f8624b0536c43bd5ee1d4a0cf3144"/></dir></dir><dir name="sales"><dir name="order"><dir name="create"><dir name="form"><file name="address.phtml" hash="39c36f20d55f8d71a26a9b9b83306a58"/></dir></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="craftyclicks.xml" hash="92171a888dea8fd634e1939a1ffd86dc"/></dir><dir name="template"><dir name="dnc"><dir name="craftyclicks"><file name="address_form.phtml" hash="fcb3cc2696ac5b98c9ba7a2e87d908ae"/><file name="checkout_onepage.phtml" hash="a083c7d757e759520543e1d13e86191c"/><file name="crafty_template_helper.php" hash="bde402e4eba6e2df0cb0ef74beec7b6f"/><dir name="checkout"><dir name="onepage"><file name="billing.phtml" hash="fe63fb43ce2f5cbf465d0672f49fd91e"/><file name="shipping.phtml" hash="a2a3307e26508a3015e5643a456f9e33"/></dir></dir><dir name="customer"><dir name="address"><file name="edit.phtml" hash="8f674dfead75c7264479f1700ab86a07"/></dir></dir></dir></dir></dir></dir></dir></dir></dir><dir name="etc"><dir name="modules"><file name="Dnc_Craftyclicks.xml" hash="48e9db6214d39f822c474f3c6cc8f9a9"/></dir></dir></dir></target><target name="magelocal"><dir name="Dnc"><dir name="Craftyclicks"><dir name="etc"><file name="config.xml" hash="36d7c8176820d12944884f48966d9d51"/><file name="system.xml" hash="b4248948c14641a55a7c51f4dd37be2a"/></dir><dir name="Helper"><file name="Data.php" hash="10c8592d3f990953767d6c96c2d0d5f4"/></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="craftyclicks"><file name="button_find_address.gif" hash="0fdef9bf7ad0f7ec3f6530b7ff40bf59"/><file name="crafty_postcode_busy.gif" hash="618a14f4dca4f51100cd2400e7f9049c"/></dir></dir></dir></dir></target><target name="mageweb"><dir name="js"><dir name="crafty"><file name="crafty_postcode.js" hash="f07aa2204345071074ca10568341b4cf"/></dir></dir></target></contents>
|
80 |
<compatible/>
|
81 |
<dependencies/>
|
82 |
</package>
|