Version Notes
Release History :
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 | Magento Core Team |
Extension | UK_Postcode_Address_Finder |
Version | 2.0 |
Comparing to | |
See all releases |
Code changes from version 1.7 to 2.0
- app/code/local/CraftyClicks/Helper/Data.php +15 -0
- app/code/local/{Dnc/Craftyclicks → CraftyClicks}/etc/config.xml +13 -13
- app/code/local/{Dnc/Craftyclicks → CraftyClicks}/etc/system.xml +5 -5
- app/code/local/Dnc/Craftyclicks/Helper/Data.php +0 -15
- app/design/adminhtml/default/default/template/customer/tab/addresses.phtml +21 -9
- app/design/adminhtml/default/default/template/sales/order/create/form/address.phtml +30 -4
- app/design/frontend/base/default/layout/craftyclicks.xml +35 -0
- app/design/frontend/{default/default/template/dnc → base/default/template}/craftyclicks/address_form.phtml +0 -0
- app/design/frontend/base/default/template/craftyclicks/checkout/onepage/billing.phtml +255 -0
- app/design/frontend/base/default/template/craftyclicks/checkout/onepage/shipping.phtml +206 -0
- app/design/frontend/{default/default/template/dnc → base/default/template}/craftyclicks/checkout_onepage.phtml +0 -0
- app/design/frontend/{default/default/template/dnc → base/default/template}/craftyclicks/crafty_template_helper.php +23 -9
- app/design/frontend/base/default/template/craftyclicks/customer/address/edit.phtml +205 -0
- app/design/frontend/default/default/layout/craftyclicks.xml +0 -42
- app/design/frontend/default/default/template/dnc/craftyclicks/checkout/onepage/billing.phtml +0 -175
- app/design/frontend/default/default/template/dnc/craftyclicks/checkout/onepage/shipping.phtml +0 -141
- app/design/frontend/default/default/template/dnc/craftyclicks/customer/address/edit.phtml +0 -174
- app/etc/modules/{Dnc_Craftyclicks.xml → CraftyClicks.xml} +3 -3
- js/crafty/crafty_postcode.js +0 -18
- js/craftyclicks/crafty_postcode.class.js +18 -0
- package.xml +8 -6
- skin/frontend/{default/default → base/default/images}/craftyclicks/button_find_address.gif +0 -0
- skin/frontend/{default/default → base/default/images}/craftyclicks/crafty_postcode_busy.gif +0 -0
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Crafty Clicks - Address Finder
|
4 |
+
*
|
5 |
+
* @category CraftyClicks
|
6 |
+
* @package CraftyClicks
|
7 |
+
* @copyright CraftyClicks.co.uk
|
8 |
+
*/
|
9 |
+
|
10 |
+
include_once 'Mage/Core/Helper/Abstract.php';
|
11 |
+
|
12 |
+
class CraftyClicks_Helper_Data extends Mage_Core_Helper_Abstract
|
13 |
+
{
|
14 |
+
|
15 |
+
}
|
@@ -1,27 +1,27 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<!--
|
3 |
/**
|
4 |
-
* Crafty Clicks
|
5 |
*
|
6 |
-
* @category
|
7 |
-
* @package
|
8 |
-
* @copyright
|
9 |
*/
|
10 |
-->
|
11 |
|
12 |
<config>
|
13 |
<modules>
|
14 |
-
<
|
15 |
-
<version>
|
16 |
-
</
|
17 |
</modules>
|
18 |
|
19 |
<frontend>
|
20 |
<layout>
|
21 |
<updates>
|
22 |
-
<
|
23 |
<file>craftyclicks.xml</file>
|
24 |
-
</
|
25 |
</updates>
|
26 |
</layout>
|
27 |
</frontend>
|
@@ -29,17 +29,17 @@
|
|
29 |
<global>
|
30 |
<helpers>
|
31 |
<craftyclicks>
|
32 |
-
<class>
|
33 |
</craftyclicks>
|
34 |
</helpers>
|
35 |
</global>
|
36 |
|
37 |
<default>
|
38 |
<general>
|
39 |
-
<
|
40 |
<active>0</active>
|
41 |
<active_admin>0</active_admin>
|
42 |
-
<model>
|
43 |
<access_token>xxxxx-xxxxx-xxxxx-xxxxx</access_token>
|
44 |
<button_image></button_image>
|
45 |
<button_class>form-button-alt</button_class>
|
@@ -53,7 +53,7 @@
|
|
53 |
<error_msg_2>This postcode is not valid, please try again or enter your address manually</error_msg_2>
|
54 |
<error_msg_3>Unable to connect to address lookup server, please enter your address manually</error_msg_3>
|
55 |
<error_msg_4>An unexpected error occured, please enter your address manually</error_msg_4>
|
56 |
-
</
|
57 |
</general>
|
58 |
</default>
|
59 |
</config>
|
1 |
<?xml version="1.0"?>
|
2 |
<!--
|
3 |
/**
|
4 |
+
* Crafty Clicks - Address Finder
|
5 |
*
|
6 |
+
* @category CraftyClicks
|
7 |
+
* @package CraftyClicks
|
8 |
+
* @copyright CraftyClicks.co.uk
|
9 |
*/
|
10 |
-->
|
11 |
|
12 |
<config>
|
13 |
<modules>
|
14 |
+
<CraftyClicks>
|
15 |
+
<version>2.0</version>
|
16 |
+
</CraftyClicks>
|
17 |
</modules>
|
18 |
|
19 |
<frontend>
|
20 |
<layout>
|
21 |
<updates>
|
22 |
+
<craftyclicks>
|
23 |
<file>craftyclicks.xml</file>
|
24 |
+
</craftyclicks>
|
25 |
</updates>
|
26 |
</layout>
|
27 |
</frontend>
|
29 |
<global>
|
30 |
<helpers>
|
31 |
<craftyclicks>
|
32 |
+
<class>CraftyClicks_Helper</class>
|
33 |
</craftyclicks>
|
34 |
</helpers>
|
35 |
</global>
|
36 |
|
37 |
<default>
|
38 |
<general>
|
39 |
+
<craftyclicks_addressfinder>
|
40 |
<active>0</active>
|
41 |
<active_admin>0</active_admin>
|
42 |
+
<model>craftyclicks</model>
|
43 |
<access_token>xxxxx-xxxxx-xxxxx-xxxxx</access_token>
|
44 |
<button_image></button_image>
|
45 |
<button_class>form-button-alt</button_class>
|
53 |
<error_msg_2>This postcode is not valid, please try again or enter your address manually</error_msg_2>
|
54 |
<error_msg_3>Unable to connect to address lookup server, please enter your address manually</error_msg_3>
|
55 |
<error_msg_4>An unexpected error occured, please enter your address manually</error_msg_4>
|
56 |
+
</craftyclicks_addressfinder>
|
57 |
</general>
|
58 |
</default>
|
59 |
</config>
|
@@ -3,9 +3,9 @@
|
|
3 |
/**
|
4 |
* Crafty Clicks
|
5 |
*
|
6 |
-
* @category
|
7 |
-
* @package
|
8 |
-
* @copyright
|
9 |
*/
|
10 |
-->
|
11 |
|
@@ -14,7 +14,7 @@
|
|
14 |
<general>
|
15 |
<groups>
|
16 |
<craftyclicks translate="label" module="craftyclicks">
|
17 |
-
<label>Crafty Clicks</label>
|
18 |
<sort_order>124</sort_order>
|
19 |
<show_in_default>1</show_in_default>
|
20 |
<show_in_website>1</show_in_website>
|
@@ -56,7 +56,7 @@
|
|
56 |
<show_in_default>1</show_in_default>
|
57 |
<show_in_website>1</show_in_website>
|
58 |
<show_in_store>0</show_in_store>
|
59 |
-
<comment>Here you can enter an image file name to use as the 'Find Address' button. Leave blank for a default Magento button. Images should be placed under /craftclicks in you skin folder.</comment>
|
60 |
</button_image>
|
61 |
|
62 |
<button_class translate="label">
|
3 |
/**
|
4 |
* Crafty Clicks
|
5 |
*
|
6 |
+
* @category CraftyClicks
|
7 |
+
* @package CraftyClicks_AddressFinder
|
8 |
+
* @copyright CraftyClicks.co.uk
|
9 |
*/
|
10 |
-->
|
11 |
|
14 |
<general>
|
15 |
<groups>
|
16 |
<craftyclicks translate="label" module="craftyclicks">
|
17 |
+
<label>Crafty Clicks - Address Finder</label>
|
18 |
<sort_order>124</sort_order>
|
19 |
<show_in_default>1</show_in_default>
|
20 |
<show_in_website>1</show_in_website>
|
56 |
<show_in_default>1</show_in_default>
|
57 |
<show_in_website>1</show_in_website>
|
58 |
<show_in_store>0</show_in_store>
|
59 |
+
<comment>Here you can enter an image file name to use as the 'Find Address' button. Leave blank for a default Magento button. Images should be placed under images/craftclicks in you skin folder.</comment>
|
60 |
</button_image>
|
61 |
|
62 |
<button_class translate="label">
|
@@ -1,15 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Crafty Clicks
|
4 |
-
*
|
5 |
-
* @category DNC
|
6 |
-
* @package Dnc_Craftyclicks
|
7 |
-
* @copyright Tomasz Kapusta
|
8 |
-
*/
|
9 |
-
|
10 |
-
include_once 'Mage/Core/Helper/Abstract.php';
|
11 |
-
|
12 |
-
class Dnc_Craftyclicks_Helper_Data extends Mage_Core_Helper_Abstract
|
13 |
-
{
|
14 |
-
|
15 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -18,10 +18,10 @@
|
|
18 |
* versions in the future. If you wish to customize Magento for your
|
19 |
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
*
|
21 |
-
* @category
|
22 |
-
* @package
|
23 |
-
* @copyright
|
24 |
-
* @license
|
25 |
*/
|
26 |
?>
|
27 |
<!-- Addresses list -->
|
@@ -123,7 +123,7 @@
|
|
123 |
<?php // CraftyClicks - Start
|
124 |
$conf = Mage::getStoreConfig('general');
|
125 |
if ($conf['craftyclicks']['active_admin']) : ?>
|
126 |
-
<script type="text/javascript" charset="ISO-8859-1" src="<?php echo $this->getJsUrl('
|
127 |
<script type="text/javascript">
|
128 |
//<![CDATA[
|
129 |
var cp_obj = new Array();
|
@@ -194,6 +194,10 @@ addressesModel.prototype = {
|
|
194 |
Element.hide($('form_'+item.id));
|
195 |
$('form_'+item.id).statusBar = item;
|
196 |
$('form_'+item.id).addressItem = item;
|
|
|
|
|
|
|
|
|
197 |
}
|
198 |
},
|
199 |
|
@@ -290,7 +294,7 @@ addressesModel.prototype = {
|
|
290 |
}
|
291 |
},
|
292 |
|
293 |
-
|
294 |
for(var i=0; i<this.itemList.length;i++){
|
295 |
if(this.itemList[i].id){
|
296 |
var inputs = $(this.itemList[i].id).getElementsBySelector('input');
|
@@ -422,7 +426,7 @@ if ($conf['craftyclicks']['active_admin']) : ?>
|
|
422 |
$(item_html_id+'findAddrBtn').style.display = 'none';
|
423 |
else
|
424 |
$(item_html_id+'findAddrBtn').style.display = 'inline';
|
425 |
-
|
426 |
<?php endif // CraftyClicks - End ?>
|
427 |
|
428 |
getFormContainerFields : function(container){
|
@@ -485,7 +489,7 @@ if ($conf['craftyclicks']['active_admin']) : ?>
|
|
485 |
|
486 |
deleteAddress : function(item){
|
487 |
if(confirm('<?php echo Mage::helper('customer')->__('Are you sure you want to delete this address?') ?>')){
|
488 |
-
if( item.isNewAddress){
|
489 |
if ( this.activeItem == item ) this.formContainer.removeChild(item.formBlock);
|
490 |
} else {
|
491 |
if($('deleted_'+item.id)){
|
@@ -524,7 +528,13 @@ if ($conf['craftyclicks']['active_admin']) : ?>
|
|
524 |
|
525 |
bindCountryRegionRelation : function(parentId){
|
526 |
//alert('OK');
|
527 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
528 |
for(var i=0;i<=countryElements.length;i++){
|
529 |
if(countryElements[i]){
|
530 |
if(!countryElements[i].bindRegions || !countryElements[i].parentBindId || countryElements[i].parentBindId!=parentId){
|
@@ -547,6 +557,8 @@ if ($conf['craftyclicks']['active_admin']) : ?>
|
|
547 |
var url = this.regionsUrl+'parent/'+countryElement.value;
|
548 |
this.loader.load(url, {}, this.refreshRegionField.bind(this));
|
549 |
}
|
|
|
|
|
550 |
}
|
551 |
},
|
552 |
|
18 |
* versions in the future. If you wish to customize Magento for your
|
19 |
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
*
|
21 |
+
* @category design
|
22 |
+
* @package default_default
|
23 |
+
* @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
*/
|
26 |
?>
|
27 |
<!-- Addresses list -->
|
123 |
<?php // CraftyClicks - Start
|
124 |
$conf = Mage::getStoreConfig('general');
|
125 |
if ($conf['craftyclicks']['active_admin']) : ?>
|
126 |
+
<script type="text/javascript" charset="ISO-8859-1" src="<?php echo $this->getJsUrl('craftyclicks/crafty_postcode.class.js'); ?>"></script>
|
127 |
<script type="text/javascript">
|
128 |
//<![CDATA[
|
129 |
var cp_obj = new Array();
|
194 |
Element.hide($('form_'+item.id));
|
195 |
$('form_'+item.id).statusBar = item;
|
196 |
$('form_'+item.id).addressItem = item;
|
197 |
+
|
198 |
+
// set Zip optional/required
|
199 |
+
var countryElement = $('id' + item.id.replace(/address_item_/, '') + 'country_id');
|
200 |
+
varienGlobalEvents.fireEvent("address_country_changed", countryElement);
|
201 |
}
|
202 |
},
|
203 |
|
294 |
}
|
295 |
},
|
296 |
|
297 |
+
setAddressAsDefault : function(){
|
298 |
for(var i=0; i<this.itemList.length;i++){
|
299 |
if(this.itemList[i].id){
|
300 |
var inputs = $(this.itemList[i].id).getElementsBySelector('input');
|
426 |
$(item_html_id+'findAddrBtn').style.display = 'none';
|
427 |
else
|
428 |
$(item_html_id+'findAddrBtn').style.display = 'inline';
|
429 |
+
},
|
430 |
<?php endif // CraftyClicks - End ?>
|
431 |
|
432 |
getFormContainerFields : function(container){
|
489 |
|
490 |
deleteAddress : function(item){
|
491 |
if(confirm('<?php echo Mage::helper('customer')->__('Are you sure you want to delete this address?') ?>')){
|
492 |
+
if( item.isNewAddress || 1 == this.itemList.length){
|
493 |
if ( this.activeItem == item ) this.formContainer.removeChild(item.formBlock);
|
494 |
} else {
|
495 |
if($('deleted_'+item.id)){
|
528 |
|
529 |
bindCountryRegionRelation : function(parentId){
|
530 |
//alert('OK');
|
531 |
+
if(parentId){
|
532 |
+
var countryElements = $(parentId).getElementsByClassName('countries');
|
533 |
+
}
|
534 |
+
else{
|
535 |
+
var countryElements = $$('.countries');
|
536 |
+
}
|
537 |
+
|
538 |
for(var i=0;i<=countryElements.length;i++){
|
539 |
if(countryElements[i]){
|
540 |
if(!countryElements[i].bindRegions || !countryElements[i].parentBindId || countryElements[i].parentBindId!=parentId){
|
557 |
var url = this.regionsUrl+'parent/'+countryElement.value;
|
558 |
this.loader.load(url, {}, this.refreshRegionField.bind(this));
|
559 |
}
|
560 |
+
// set Zip optional/required
|
561 |
+
varienGlobalEvents.fireEvent("address_country_changed", countryElement);
|
562 |
}
|
563 |
},
|
564 |
|
@@ -1,4 +1,29 @@
|
|
1 |
-
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
$_fieldsContainerId = 'order-shipping_address_fields';
|
3 |
?>
|
4 |
<script type="text/javascript">
|
@@ -15,13 +40,14 @@ else:
|
|
15 |
<?php
|
16 |
endif; ?>
|
17 |
<div class="entry-edit">
|
|
|
18 |
<div class="entry-edit-head">
|
19 |
<h4 class="icon-head fieldset-legend <?php echo $this->getHeaderCssClass() ?>"><?php echo $this->getHeaderText() ?></h4>
|
20 |
</div>
|
21 |
|
22 |
<fieldset class="np">
|
23 |
<div class="order-choose-address">
|
24 |
-
<?php echo Mage::helper('sales')->__('Select from existing customer addresses:') ?><br
|
25 |
<?php $_id = $this->getForm()->getHtmlIdPrefix() . 'customer_address_id' ?>
|
26 |
<select id="<?php echo $_id ?>" name="<?php echo $this->getForm()->getHtmlNamePrefix()?>[customer_address_id]" style="width:97.5%;" onchange="order.selectAddress(this, '<?php echo $_fieldsContainerId ?>')">
|
27 |
<option value=""><?php echo Mage::helper('sales')->__('Add New Address') ?></option>
|
@@ -34,7 +60,7 @@ endif; ?>
|
|
34 |
<?php endforeach; ?>
|
35 |
|
36 |
</select>
|
37 |
-
<br
|
38 |
<?php if($this->getIsShipping()): ?>
|
39 |
<input type="checkbox" id="order-shipping_same_as_billing" name="shipping_same_as_billing" onchange="order.setShippingAsBilling(this.checked)" <?php if($this->getIsAsBilling()): ?>checked<?php endif; ?>/>
|
40 |
<label for="order-shipping_same_as_billing" class="no-float"><?php echo Mage::helper('sales')->__('Same As Billing Address') ?></label>
|
@@ -85,7 +111,7 @@ $conf = Mage::getStoreConfig('general');
|
|
85 |
if ($conf['craftyclicks']['active_admin'] && $this->getIsShipping()) :
|
86 |
$cp_access_token = $conf['craftyclicks']['access_token'];
|
87 |
?>
|
88 |
-
<script type="text/javascript" charset="ISO-8859-1" src="<?php echo $this->getJsUrl('
|
89 |
<script type="text/javascript">
|
90 |
//<![CDATA[
|
91 |
var cp_obj = new Array();
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package default_default
|
23 |
+
* @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
if($this->getIsShipping()):
|
27 |
$_fieldsContainerId = 'order-shipping_address_fields';
|
28 |
?>
|
29 |
<script type="text/javascript">
|
40 |
<?php
|
41 |
endif; ?>
|
42 |
<div class="entry-edit">
|
43 |
+
|
44 |
<div class="entry-edit-head">
|
45 |
<h4 class="icon-head fieldset-legend <?php echo $this->getHeaderCssClass() ?>"><?php echo $this->getHeaderText() ?></h4>
|
46 |
</div>
|
47 |
|
48 |
<fieldset class="np">
|
49 |
<div class="order-choose-address">
|
50 |
+
<?php echo Mage::helper('sales')->__('Select from existing customer addresses:') ?><br/>
|
51 |
<?php $_id = $this->getForm()->getHtmlIdPrefix() . 'customer_address_id' ?>
|
52 |
<select id="<?php echo $_id ?>" name="<?php echo $this->getForm()->getHtmlNamePrefix()?>[customer_address_id]" style="width:97.5%;" onchange="order.selectAddress(this, '<?php echo $_fieldsContainerId ?>')">
|
53 |
<option value=""><?php echo Mage::helper('sales')->__('Add New Address') ?></option>
|
60 |
<?php endforeach; ?>
|
61 |
|
62 |
</select>
|
63 |
+
<br/>
|
64 |
<?php if($this->getIsShipping()): ?>
|
65 |
<input type="checkbox" id="order-shipping_same_as_billing" name="shipping_same_as_billing" onchange="order.setShippingAsBilling(this.checked)" <?php if($this->getIsAsBilling()): ?>checked<?php endif; ?>/>
|
66 |
<label for="order-shipping_same_as_billing" class="no-float"><?php echo Mage::helper('sales')->__('Same As Billing Address') ?></label>
|
111 |
if ($conf['craftyclicks']['active_admin'] && $this->getIsShipping()) :
|
112 |
$cp_access_token = $conf['craftyclicks']['access_token'];
|
113 |
?>
|
114 |
+
<script type="text/javascript" charset="ISO-8859-1" src="<?php echo $this->getJsUrl('craftyclicks/crafty_postcode.class.js'); ?>"></script>
|
115 |
<script type="text/javascript">
|
116 |
//<![CDATA[
|
117 |
var cp_obj = new Array();
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
|
3 |
+
<layout>
|
4 |
+
|
5 |
+
<checkout_onepage_index>
|
6 |
+
<reference name="checkout.onepage.billing">
|
7 |
+
<action method="setTemplate"><template>craftyclicks/checkout/onepage/billing.phtml</template></action>
|
8 |
+
</reference>
|
9 |
+
<reference name="checkout.onepage.shipping">
|
10 |
+
<action method="setTemplate"><template>craftyclicks/checkout/onepage/shipping.phtml</template></action>
|
11 |
+
</reference>
|
12 |
+
<reference name="before_body_end">
|
13 |
+
<block type="checkout/onepage_billing" name="checkout.onepage.billing" as="billing" template="craftyclicks/checkout_onepage.phtml"/>
|
14 |
+
</reference>
|
15 |
+
</checkout_onepage_index>
|
16 |
+
|
17 |
+
<checkout_multishipping_customer_address>
|
18 |
+
<reference name="customer_address_edit">
|
19 |
+
<action method="setTemplate"><template>craftyclicks/customer/address/edit.phtml</template></action>
|
20 |
+
</reference>
|
21 |
+
<reference name="before_body_end">
|
22 |
+
<block type="customer/address_edit" name="customer.address.edit" as="shipping" template="craftyclicks/address_form.phtml"/>
|
23 |
+
</reference>
|
24 |
+
</checkout_multishipping_customer_address>
|
25 |
+
|
26 |
+
<customer_address_form>
|
27 |
+
<reference name="customer_address_edit">
|
28 |
+
<action method="setTemplate"><template>craftyclicks/customer/address/edit.phtml</template></action>
|
29 |
+
</reference>
|
30 |
+
<reference name="before_body_end">
|
31 |
+
<block type="customer/address_edit" name="customer.address.edit" template="craftyclicks/address_form.phtml"/>
|
32 |
+
</reference>
|
33 |
+
</customer_address_form>
|
34 |
+
|
35 |
+
</layout>
|
File without changes
|
@@ -0,0 +1,255 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*
|
26 |
+
*
|
27 |
+
* NOTE - this file is modified to include the CraftyClicks Address Finder Extension
|
28 |
+
*/
|
29 |
+
?>
|
30 |
+
<form id="co-billing-form" action="">
|
31 |
+
<fieldset>
|
32 |
+
<ul class="form-list">
|
33 |
+
<?php if ($this->customerHasAddresses()): ?>
|
34 |
+
<li class="wide">
|
35 |
+
<label for="billing-address-select"><?php echo $this->__('Select a billing address from your address book or enter a new address.') ?></label>
|
36 |
+
<div class="input-box">
|
37 |
+
<?php echo $this->getAddressesHtmlSelect('billing') ?>
|
38 |
+
</div>
|
39 |
+
</li>
|
40 |
+
<?php endif; ?>
|
41 |
+
<li id="billing-new-address-form"<?php if ($this->customerHasAddresses()): ?> style="display:none;"<?php endif; ?>>
|
42 |
+
<fieldset>
|
43 |
+
<input type="hidden" name="billing[address_id]" value="<?php echo $this->getAddress()->getId() ?>" id="billing:address_id" />
|
44 |
+
<ul>
|
45 |
+
<li class="fields"><?php echo $this->getLayout()->createBlock('customer/widget_name')->setObject($this->getAddress())->setFieldIdFormat('billing:%s')->setFieldNameFormat('billing[%s]')->toHtml() ?></li>
|
46 |
+
<li class="fields">
|
47 |
+
<?php if (1 != Mage::getStoreConfig('general/craftyclicks/active')) : ?>
|
48 |
+
<div class="field">
|
49 |
+
<label for="billing:company"><?php echo $this->__('Company') ?></label>
|
50 |
+
<div class="input-box">
|
51 |
+
<input type="text" id="billing:company" name="billing[company]" value="<?php echo $this->htmlEscape($this->getAddress()->getCompany()) ?>" title="<?php echo $this->__('Company') ?>" class="input-text" />
|
52 |
+
</div>
|
53 |
+
</div>
|
54 |
+
<?php endif ?>
|
55 |
+
<?php if(!$this->isCustomerLoggedIn()): ?>
|
56 |
+
<div class="field">
|
57 |
+
<label for="billing:email" class="required"><em>*</em><?php echo $this->__('Email Address') ?></label>
|
58 |
+
<div class="input-box">
|
59 |
+
<input type="text" name="billing[email]" id="billing:email" value="<?php echo $this->htmlEscape($this->getAddress()->getEmail()) ?>" title="<?php echo $this->__('Email Address') ?>" class="input-text validate-email required-entry" />
|
60 |
+
</div>
|
61 |
+
</div>
|
62 |
+
<?php endif ?>
|
63 |
+
</li>
|
64 |
+
<?php if (1 == Mage::getStoreConfig('general/craftyclicks/active')) : // for CraftyClicks we put country & postcode above other address fields ?>
|
65 |
+
<li class="fields">
|
66 |
+
<div class="field">
|
67 |
+
<label for="billing:country_id" class="required"><em>*</em><?php echo $this->__('Country') ?></label>
|
68 |
+
<div class="input-box">
|
69 |
+
<?php echo $this->getCountryHtmlSelect('billing') ?>
|
70 |
+
</div>
|
71 |
+
</div>
|
72 |
+
<?php if (1 == Mage::getStoreConfig('general/craftyclicks/house_search')) : ?>
|
73 |
+
</li>
|
74 |
+
<li class="fields">
|
75 |
+
<div class="field" id="houseSearchDiv">
|
76 |
+
<label for="crafty_in_search_string"><?php echo $this->__('House Name or Number') ?></label>
|
77 |
+
<div class="input-box">
|
78 |
+
<input type="text" title="<?php echo $this->__('House Name or Number') ?>" name="crafty_in_search_string" id="crafty_in_search_string" class="input-text" />
|
79 |
+
</div>
|
80 |
+
</div>
|
81 |
+
<?php endif ?>
|
82 |
+
<div class="field" id="zipDiv">
|
83 |
+
<label for="billing:postcode" class="required"><em>*</em><?php echo $this->__('Zip/Postal Code') ?></label>
|
84 |
+
<div class="input-box">
|
85 |
+
<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="input-text validate-zip-international required-entry"/>
|
86 |
+
</div>
|
87 |
+
</div>
|
88 |
+
<div class="field" id="findAddrBtnDiv" style="display:none;"><br />
|
89 |
+
|
90 |
+
<?php if ('' != Mage::getStoreConfig('general/craftyclicks/button_image')) : ?>
|
91 |
+
<img style="cursor: pointer;" src="<?php echo $this->getSkinUrl('images/craftyclicks/'.Mage::getStoreConfig('general/craftyclicks/button_image')); ?>" onclick="_cp_do_lookup()" title="Find Address" class="<?php echo Mage::getStoreConfig('general/craftyclicks/button_class');?>"/>
|
92 |
+
<?php else : ?>
|
93 |
+
<button type="button" onclick="_cp_do_lookup()" class="<?php echo Mage::getStoreConfig('general/craftyclicks/button_class');?>">Find Address</button>
|
94 |
+
<?php endif ?>
|
95 |
+
</div>
|
96 |
+
</li>
|
97 |
+
<li class="fields">
|
98 |
+
<span style="display:none;" id="crafty_postcode_result_display"> </span>
|
99 |
+
</li>
|
100 |
+
<li class="fields" id="hideOnNewAddress_billing:company">
|
101 |
+
<div class="field">
|
102 |
+
<label for="billing:company"><?php echo $this->__('Company') ?></label>
|
103 |
+
<div class="input-box">
|
104 |
+
<input type="text" id="billing:company" name="billing[company]" value="<?php echo $this->htmlEscape($this->getAddress()->getCompany()) ?>" title="<?php echo $this->__('Company') ?>" class="input-text" />
|
105 |
+
</div>
|
106 |
+
</div>
|
107 |
+
</li>
|
108 |
+
<?php endif ?>
|
109 |
+
<li class="wide" id="hideOnNewAddress_billing:street1">
|
110 |
+
<label for="billing:street1" class="required"><em>*</em><?php echo $this->__('Address') ?></label>
|
111 |
+
<div class="input-box">
|
112 |
+
<input type="text" title="<?php echo $this->__('Street Address') ?>" name="billing[street][]" id="billing:street1" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet(1)) ?>" class="input-text required-entry" />
|
113 |
+
</div>
|
114 |
+
</li>
|
115 |
+
<?php for ($_i=2, $_n=$this->helper('customer/address')->getStreetLines(); $_i<=$_n; $_i++): ?>
|
116 |
+
<li class="wide" id="hideOnNewAddress_billing:street<?php echo $_i?>">
|
117 |
+
<div class="input-box">
|
118 |
+
<input type="text" title="<?php echo $this->__('Street Address '.$_i) ?>" name="billing[street][]" id="billing:street<?php echo $_i?>" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet($_i)) ?>" class="input-text" />
|
119 |
+
</div>
|
120 |
+
</li>
|
121 |
+
<?php endfor ?>
|
122 |
+
<li class="fields" id="hideOnNewAddress_billing:city">
|
123 |
+
<div class="field">
|
124 |
+
<label for="billing:city" class="required"><em>*</em><?php echo $this->__('City') ?></label>
|
125 |
+
<div class="input-box">
|
126 |
+
<input type="text" title="<?php echo $this->__('City') ?>" name="billing[city]" value="<?php echo $this->htmlEscape($this->getAddress()->getCity()) ?>" class="input-text required-entry" id="billing:city" />
|
127 |
+
</div>
|
128 |
+
</div>
|
129 |
+
<div class="field" id="countyDiv">
|
130 |
+
<label for="billing:region_id" class="required"><em>*</em><?php echo $this->__('State/Province') ?></label>
|
131 |
+
<div class="input-box">
|
132 |
+
<select id="billing:region_id" name="billing[region_id]" title="<?php echo $this->__('State/Province') ?>" class="validate-select" style="display:none;">
|
133 |
+
<option value=""><?php echo $this->__('Please select region, state or province') ?></option>
|
134 |
+
</select>
|
135 |
+
<script type="text/javascript">
|
136 |
+
//<![CDATA[
|
137 |
+
$('billing:region_id').setAttribute('defaultValue', "<?php echo $this->getAddress()->getRegionId() ?>");
|
138 |
+
//]]>
|
139 |
+
</script>
|
140 |
+
<input type="text" id="billing:region" name="billing[region]" value="<?php echo $this->htmlEscape($this->getAddress()->getRegion()) ?>" title="<?php echo $this->__('State/Province') ?>" class="input-text" style="display:none;" />
|
141 |
+
</div>
|
142 |
+
</div>
|
143 |
+
</li>
|
144 |
+
<?php if (1 != Mage::getStoreConfig('general/craftyclicks/active')) : // for CraftyClicks we put country & postcode above other address fields ?>
|
145 |
+
<li class="fields">
|
146 |
+
<div class="field">
|
147 |
+
<label for="billing:postcode" class="required"><em>*</em><?php echo $this->__('Zip/Postal Code') ?></label>
|
148 |
+
<div class="input-box">
|
149 |
+
<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="input-text validate-zip-international required-entry" />
|
150 |
+
</div>
|
151 |
+
</div>
|
152 |
+
<div class="field">
|
153 |
+
<label for="billing:country_id" class="required"><em>*</em><?php echo $this->__('Country') ?></label>
|
154 |
+
<div class="input-box">
|
155 |
+
<?php echo $this->getCountryHtmlSelect('billing') ?>
|
156 |
+
</div>
|
157 |
+
</div>
|
158 |
+
</li>
|
159 |
+
<?php endif ?>
|
160 |
+
<li lang="fields">
|
161 |
+
<div class="field">
|
162 |
+
<label for="billing:telephone" class="required"><em>*</em><?php echo $this->__('Telephone') ?></label>
|
163 |
+
<div class="input-box">
|
164 |
+
<input type="text" name="billing[telephone]" value="<?php echo $this->htmlEscape($this->getAddress()->getTelephone()) ?>" title="<?php echo $this->__('Telephone') ?>" class="input-text required-entry" id="billing:telephone" />
|
165 |
+
</div>
|
166 |
+
</div>
|
167 |
+
<div class="field">
|
168 |
+
<label for="billing:fax"><?php echo $this->__('Fax') ?></label>
|
169 |
+
<div class="input-box">
|
170 |
+
<input type="text" name="billing[fax]" value="<?php echo $this->htmlEscape($this->getAddress()->getFax()) ?>" title="<?php echo $this->__('Fax') ?>" class="input-text" id="billing:fax" />
|
171 |
+
</div>
|
172 |
+
</div>
|
173 |
+
</li>
|
174 |
+
<?php if(!$this->isCustomerLoggedIn()): ?>
|
175 |
+
|
176 |
+
<?php $_dob = $this->getLayout()->createBlock('customer/widget_dob') ?>
|
177 |
+
<?php $_gender = $this->getLayout()->createBlock('customer/widget_gender') ?>
|
178 |
+
<?php if ($_dob->isEnabled() || $_gender->isEnabled()): ?>
|
179 |
+
<li class="fields">
|
180 |
+
<?php if ($_dob->isEnabled()): ?>
|
181 |
+
<div class="field">
|
182 |
+
<?php echo $_dob->setDate($this->getQuote()->getCustomerDob())->setFieldIdFormat('billing:%s')->setFieldNameFormat('billing[%s]')->toHtml() ?>
|
183 |
+
</div>
|
184 |
+
<?php endif; ?>
|
185 |
+
<?php if ($_gender->isEnabled()): ?>
|
186 |
+
<div class="field">
|
187 |
+
<?php echo $_gender->setGender($this->getQuote()->getCustomerGender())->setFieldIdFormat('billing:%s')->setFieldNameFormat('billing[%s]')->toHtml() ?>
|
188 |
+
</div>
|
189 |
+
<?php endif ?>
|
190 |
+
</li>
|
191 |
+
<?php endif ?>
|
192 |
+
|
193 |
+
<?php $_taxvat = $this->getLayout()->createBlock('customer/widget_taxvat') ?>
|
194 |
+
<?php if ($_taxvat->isEnabled()): ?>
|
195 |
+
<li>
|
196 |
+
<?php echo $_taxvat->setTaxvat($this->getQuote()->getCustomerTaxvat())->setFieldIdFormat('billing:%s')->setFieldNameFormat('billing[%s]')->toHtml() ?>
|
197 |
+
</li>
|
198 |
+
<?php endif ?>
|
199 |
+
|
200 |
+
<li class="fields" id="register-customer-password">
|
201 |
+
<div class="field">
|
202 |
+
<label for="billing:customer_password" class="required"><em>*</em><?php echo $this->__('Password') ?></label>
|
203 |
+
<div class="input-box">
|
204 |
+
<input type="password" name="billing[customer_password]" id="billing:customer_password" title="<?php echo $this->__('Password') ?>" class="input-text required-entry validate-password" />
|
205 |
+
</div>
|
206 |
+
</div>
|
207 |
+
<div class="field">
|
208 |
+
<label for="billing:confirm_password" class="required"><em>*</em><?php echo $this->__('Confirm Password') ?></label>
|
209 |
+
<div class="input-box">
|
210 |
+
<input type="password" name="billing[confirm_password]" title="<?php echo $this->__('Confirm Password') ?>" id="billing:confirm_password" class="input-text required-entry validate-cpassword" />
|
211 |
+
</div>
|
212 |
+
</div>
|
213 |
+
</li>
|
214 |
+
<?php endif; ?>
|
215 |
+
<?php if ($this->isCustomerLoggedIn() && $this->customerHasAddresses()):?>
|
216 |
+
<li class="control">
|
217 |
+
<input type="checkbox" name="billing[save_in_address_book]" value="1" title="<?php echo $this->__('Save in address book') ?>" id="billing:save_in_address_book" onchange="shipping.setSameAsBilling(false);"<?php if ($this->getAddress()->getSaveInAddressBook()):?> checked="checked"<?php endif;?> class="checkbox" /><label for="billing:save_in_address_book"><?php echo $this->__('Save in address book') ?></label>
|
218 |
+
</li>
|
219 |
+
<?php else:?>
|
220 |
+
<li class="no-display"><input type="hidden" name="billing[save_in_address_book]" value="1" /></li>
|
221 |
+
<?php endif; ?>
|
222 |
+
</ul>
|
223 |
+
</fieldset>
|
224 |
+
</li>
|
225 |
+
<?php if ($this->canShip()): ?>
|
226 |
+
<li class="control">
|
227 |
+
<input type="radio" name="billing[use_for_shipping]" id="billing:use_for_shipping_yes" value="1"<?php if ($this->isUseBillingAddressForShipping()) {?> checked="checked"<?php }?> title="<?php echo $this->__('Ship to this address') ?>" onclick="$('shipping:same_as_billing').checked = true;" class="radio" /><label for="billing:use_for_shipping_yes"><?php echo $this->__('Ship to this address') ?></label></li>
|
228 |
+
<li class="control">
|
229 |
+
<input type="radio" name="billing[use_for_shipping]" id="billing:use_for_shipping_no" value="0"<?php if (!$this->isUseBillingAddressForShipping()) {?> checked="checked"<?php }?> title="<?php echo $this->__('Ship to different address') ?>" onclick="$('shipping:same_as_billing').checked = false;" class="radio" /><label for="billing:use_for_shipping_no"><?php echo $this->__('Ship to different address') ?></label>
|
230 |
+
</li>
|
231 |
+
<?php endif; ?>
|
232 |
+
</ul>
|
233 |
+
<?php if (!$this->canShip()): ?>
|
234 |
+
<input type="hidden" name="billing[use_for_shipping]" value="1" />
|
235 |
+
<?php endif; ?>
|
236 |
+
<div class="buttons-set" id="billing-buttons-container">
|
237 |
+
<p class="required"><?php echo $this->__('* Required Fields') ?></p>
|
238 |
+
<button type="button" title="<?php echo $this->__('Continue') ?>" class="button" onclick="billing.save()"><span><span><?php echo $this->__('Continue') ?></span></span></button>
|
239 |
+
<span class="please-wait" id="billing-please-wait" style="display:none;">
|
240 |
+
<img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" alt="<?php echo $this->__('Loading next step...') ?>" title="<?php echo $this->__('Loading next step...') ?>" class="v-middle" /> <?php echo $this->__('Loading next step...') ?>
|
241 |
+
</span>
|
242 |
+
</div>
|
243 |
+
</fieldset>
|
244 |
+
</form>
|
245 |
+
<script type="text/javascript">
|
246 |
+
//<![CDATA[
|
247 |
+
var billing = new Billing('co-billing-form', '<?php echo $this->getUrl('checkout/onepage/getAddress') ?>address/', '<?php echo $this->getUrl('checkout/onepage/saveBilling') ?>');
|
248 |
+
var billingForm = new VarienForm('co-billing-form');
|
249 |
+
|
250 |
+
//billingForm.setElementsRelation('billing:country_id', 'billing:region', '<?php echo $this->getUrl('directory/json/childRegion') ?>', '<?php echo $this->__('Select State/Province...') ?>');
|
251 |
+
$('billing-address-select') && billing.newAddress(!$('billing-address-select').value);
|
252 |
+
|
253 |
+
var billingRegionUpdater = new RegionUpdater('billing:country_id', 'billing:region', 'billing:region_id', countryRegions, undefined, 'billing:postcode');
|
254 |
+
//]]>
|
255 |
+
</script>
|
@@ -0,0 +1,206 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*
|
26 |
+
*
|
27 |
+
* NOTE - this file is modified to include the CraftyClicks Address Finder Extension
|
28 |
+
*/
|
29 |
+
?>
|
30 |
+
<form action="" id="co-shipping-form">
|
31 |
+
<ul class="form-list">
|
32 |
+
<?php if ($this->customerHasAddresses()): ?>
|
33 |
+
<li class="wide">
|
34 |
+
<label for="shipping-address-select"><?php echo $this->__('Select a shipping address from your address book or enter a new address.') ?></label>
|
35 |
+
<div class="input-box">
|
36 |
+
<?php echo $this->getAddressesHtmlSelect('shipping') ?>
|
37 |
+
</div>
|
38 |
+
</li>
|
39 |
+
<?php endif ?>
|
40 |
+
<li id="shipping-new-address-form"<?php if ($this->customerHasAddresses()): ?> style="display:none;"<?php endif ?>>
|
41 |
+
<fieldset>
|
42 |
+
<input type="hidden" name="shipping[address_id]" value="<?php echo $this->getAddress()->getId() ?>" id="shipping:address_id" />
|
43 |
+
<ul>
|
44 |
+
<li class="fields"><?php echo $this->getLayout()->createBlock('customer/widget_name')->setObject($this->getAddress())->setFieldIdFormat('shipping:%s')->setFieldNameFormat('shipping[%s]')->setFieldParams('onchange="shipping.setSameAsBilling(false)"')->toHtml() ?></li>
|
45 |
+
<li class="fields">
|
46 |
+
<?php if (1 != Mage::getStoreConfig('general/craftyclicks/active')) : ?>
|
47 |
+
<div class="fields">
|
48 |
+
<label for="shipping:company"><?php echo $this->__('Company') ?></label>
|
49 |
+
<div class="input-box">
|
50 |
+
<input type="text" id="shipping:company" name="shipping[company]" value="<?php echo $this->htmlEscape($this->getAddress()->getCompany()) ?>" title="<?php echo $this->__('Company') ?>" class="input-text" onchange="shipping.setSameAsBilling(false);" />
|
51 |
+
</div>
|
52 |
+
</div>
|
53 |
+
<?php endif ?>
|
54 |
+
<?php if(false): ?>
|
55 |
+
<div class="fields">
|
56 |
+
<label for="shipping:email" class="required"><em>*</em><?php echo $this->__('Email Address') ?></label>
|
57 |
+
<div class="input-box">
|
58 |
+
<input type="text" name="shipping[email]" id="shipping:email" value="<?php echo $this->htmlEscape($this->getAddress()->getEmail()) ?>" title="<?php echo $this->__('Email Address') ?>" class="input-text validate-email required-entry" />
|
59 |
+
</div>
|
60 |
+
</div>
|
61 |
+
<?php endif ?>
|
62 |
+
<?php if (1 == Mage::getStoreConfig('general/craftyclicks/active')) : // for CraftyClicks we put country & postcode above other address fields ?>
|
63 |
+
<li class="fields">
|
64 |
+
<div class="field">
|
65 |
+
<label for="shipping:country_id" class="required"><em>*</em><?php echo $this->__('Country') ?></label>
|
66 |
+
<div class="input-box">
|
67 |
+
<?php echo $this->getCountryHtmlSelect('shipping') ?>
|
68 |
+
</div>
|
69 |
+
</div>
|
70 |
+
<?php if (1 == Mage::getStoreConfig('general/craftyclicks/house_search')) : ?>
|
71 |
+
</li>
|
72 |
+
<li class="fields">
|
73 |
+
<div class="field" id="houseSearchDiv2">
|
74 |
+
<label for="crafty_in_search_string2"><?php echo $this->__('House Name or Number') ?></label>
|
75 |
+
<div class="input-box">
|
76 |
+
<input type="text" title="<?php echo $this->__('House Name or Number') ?>" name="crafty_in_search_string2" id="crafty_in_search_string2" class="input-text" />
|
77 |
+
</div>
|
78 |
+
</div>
|
79 |
+
<?php endif ?>
|
80 |
+
<div class="field" id="zipDiv2">
|
81 |
+
<label for="shipping:postcode" class="required"><em>*</em><?php echo $this->__('Zip/Postal Code') ?></label>
|
82 |
+
<div class="input-box">
|
83 |
+
<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="input-text validate-zip-international required-entry" onchange="shipping.setSameAsBilling(false);" />
|
84 |
+
</div>
|
85 |
+
</div>
|
86 |
+
<div class="field" id="findAddrBtnDiv2" style="display:none;"><br />
|
87 |
+
|
88 |
+
<?php if ('' != Mage::getStoreConfig('general/craftyclicks/button_image')) : ?>
|
89 |
+
<img style="cursor: pointer;" src="<?php echo $this->getSkinUrl('images/craftyclicks/'.Mage::getStoreConfig('general/craftyclicks/button_image')); ?>" onclick="_cp_do_lookup2()" title="Find Address" class="<?php echo Mage::getStoreConfig('general/craftyclicks/button_class');?>"/>
|
90 |
+
<?php else : ?>
|
91 |
+
<button type="button" onclick="_cp_do_lookup2()" class="<?php echo Mage::getStoreConfig('general/craftyclicks/button_class');?>">Find Address</button>
|
92 |
+
<?php endif ?>
|
93 |
+
</div>
|
94 |
+
</li>
|
95 |
+
<li class="fields">
|
96 |
+
<span style="display:none;" id="crafty_postcode_result_display2"> </span>
|
97 |
+
</li>
|
98 |
+
<li class="fields" id="hideOnNewAddress_shipping:company">
|
99 |
+
<div class="fields">
|
100 |
+
<label for="shipping:company"><?php echo $this->__('Company') ?></label>
|
101 |
+
<div class="input-box">
|
102 |
+
<input type="text" id="shipping:company" name="shipping[company]" value="<?php echo $this->htmlEscape($this->getAddress()->getCompany()) ?>" title="<?php echo $this->__('Company') ?>" class="input-text" onchange="shipping.setSameAsBilling(false);" />
|
103 |
+
</div>
|
104 |
+
</div>
|
105 |
+
</li>
|
106 |
+
<?php endif ?>
|
107 |
+
</li>
|
108 |
+
<li class="wide" id="hideOnNewAddress_shipping:street1">
|
109 |
+
<label for="shipping:street1" class="required"><em>*</em><?php echo $this->__('Address') ?></label>
|
110 |
+
<div class="input-box">
|
111 |
+
<input type="text" title="<?php echo $this->__('Street Address') ?>" name="shipping[street][]" id="shipping:street1" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet(1)) ?>" class="input-text required-entry" onchange="shipping.setSameAsBilling(false);" />
|
112 |
+
</div>
|
113 |
+
</li>
|
114 |
+
<?php for ($_i=2, $_n=$this->helper('customer/address')->getStreetLines(); $_i<=$_n; $_i++): ?>
|
115 |
+
<li class="wide" id="hideOnNewAddress_shipping:street<?php echo $_i?>">
|
116 |
+
<div class="input-box">
|
117 |
+
<input type="text" title="<?php echo $this->__('Street Address '.$_i) ?>" name="shipping[street][]" id="shipping:street<?php echo $_i?>" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet($_i)) ?>" class="input-text" onchange="shipping.setSameAsBilling(false);" />
|
118 |
+
</div>
|
119 |
+
</li>
|
120 |
+
<?php endfor ?>
|
121 |
+
<li class="fields" id="hideOnNewAddress_shipping:city">
|
122 |
+
<div class="field">
|
123 |
+
<label for="shipping:city" class="required"><em>*</em><?php echo $this->__('City') ?></label>
|
124 |
+
<div class="input-box">
|
125 |
+
<input type="text" title="<?php echo $this->__('City') ?>" name="shipping[city]" value="<?php echo $this->htmlEscape($this->getAddress()->getCity()) ?>" class="input-text required-entry" id="shipping:city" onchange="shipping.setSameAsBilling(false);" />
|
126 |
+
</div>
|
127 |
+
</div>
|
128 |
+
<div class="field" id="countyDiv2">
|
129 |
+
<label for="shipping:region" class="required"><em>*</em><?php echo $this->__('State/Province') ?></label>
|
130 |
+
<div class="input-box">
|
131 |
+
<select id="shipping:region_id" name="shipping[region_id]" title="<?php echo $this->__('State/Province') ?>" class="validate-select" style="display:none;">
|
132 |
+
<option value=""><?php echo $this->__('Please select region, state or province') ?></option>
|
133 |
+
</select>
|
134 |
+
<script type="text/javascript">
|
135 |
+
//<![CDATA[
|
136 |
+
$('shipping:region_id').setAttribute('defaultValue', "<?php echo $this->getAddress()->getRegionId() ?>");
|
137 |
+
//]]>
|
138 |
+
</script>
|
139 |
+
<input type="text" id="shipping:region" name="shipping[region]" value="<?php echo $this->htmlEscape($this->getAddress()->getRegion()) ?>" title="<?php echo $this->__('State/Province') ?>" class="input-text" style="display:none;" />
|
140 |
+
</div>
|
141 |
+
</div>
|
142 |
+
</li>
|
143 |
+
<?php if (1 != Mage::getStoreConfig('general/craftyclicks/active')) : // for CraftyClicks we put country & postcode above other address fields ?>
|
144 |
+
<li class="fields">
|
145 |
+
<div class="field">
|
146 |
+
<label for="shipping:postcode" class="required"><em>*</em><?php echo $this->__('Zip/Postal Code') ?></label>
|
147 |
+
<div class="input-box">
|
148 |
+
<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="input-text validate-zip-international required-entry" onchange="shipping.setSameAsBilling(false);" />
|
149 |
+
</div>
|
150 |
+
</div>
|
151 |
+
<div class="field">
|
152 |
+
<label for="shipping:country_id" class="required"><em>*</em><?php echo $this->__('Country') ?></label>
|
153 |
+
<div class="input-box">
|
154 |
+
<?php echo $this->getCountryHtmlSelect('shipping') ?>
|
155 |
+
</div>
|
156 |
+
</div>
|
157 |
+
</li>
|
158 |
+
<?php endif ?>
|
159 |
+
<li class="fields">
|
160 |
+
<div class="field">
|
161 |
+
<label for="shipping:telephone" class="required"><em>*</em><?php echo $this->__('Telephone') ?></label>
|
162 |
+
<div class="input-box">
|
163 |
+
<input type="text" name="shipping[telephone]" value="<?php echo $this->htmlEscape($this->getAddress()->getTelephone()) ?>" title="<?php echo $this->__('Telephone') ?>" class="input-text required-entry" id="shipping:telephone" onchange="shipping.setSameAsBilling(false);" />
|
164 |
+
</div>
|
165 |
+
</div>
|
166 |
+
<div class="field">
|
167 |
+
<label for="shipping:fax"><?php echo $this->__('Fax') ?></label>
|
168 |
+
<div class="input-box">
|
169 |
+
<input type="text" name="shipping[fax]" value="<?php echo $this->htmlEscape($this->getAddress()->getFax()) ?>" title="<?php echo $this->__('Fax') ?>" class="input-text" id="shipping:fax" onchange="shipping.setSameAsBilling(false);" />
|
170 |
+
</div>
|
171 |
+
</div>
|
172 |
+
</li>
|
173 |
+
<?php if ($this->isCustomerLoggedIn() && $this->customerHasAddresses()):?>
|
174 |
+
<li class="control">
|
175 |
+
<input type="checkbox" name="shipping[save_in_address_book]" value="1" title="<?php echo $this->__('Save in address book') ?>" id="shipping:save_in_address_book" onchange="shipping.setSameAsBilling(false);"<?php if ($this->getAddress()->getSaveInAddressBook()):?> checked="checked"<?php endif;?> class="checkbox" /><label for="shipping:save_in_address_book"><?php echo $this->__('Save in address book') ?></label></li>
|
176 |
+
<?php else:?>
|
177 |
+
<li class="no-display"><input type="hidden" name="shipping[save_in_address_book]" value="1" /></li>
|
178 |
+
<?php endif;?>
|
179 |
+
</ul>
|
180 |
+
</fieldset>
|
181 |
+
</li>
|
182 |
+
<li class="control">
|
183 |
+
<input type="checkbox" name="shipping[same_as_billing]" id="shipping:same_as_billing" value="1"<?php if($this->getAddress()->getSameAsBilling()): ?> checked="checked"<?php endif; ?> title="<?php echo $this->__('Use Billing Address') ?>" onclick="shipping.setSameAsBilling(this.checked)" class="checkbox" /><label for="shipping:same_as_billing"><?php echo $this->__('Use Billing Address') ?></label>
|
184 |
+
</li>
|
185 |
+
</ul>
|
186 |
+
<div class="buttons-set" id="shipping-buttons-container">
|
187 |
+
<p class="required"><?php echo $this->__('* Required Fields') ?></p>
|
188 |
+
<p class="back-link"><a href="#" onclick="checkout.back(); return false;"><small>« </small><?php echo $this->__('Back') ?></a></p>
|
189 |
+
<button type="button" class="button" title="<?php echo $this->__('Continue') ?>" onclick="shipping.save()"><span><span><?php echo $this->__('Continue') ?></span></span></button>
|
190 |
+
<span id="shipping-please-wait" class="please-wait" style="display:none;">
|
191 |
+
<img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" alt="<?php echo $this->__('Loading next step...') ?>" title="<?php echo $this->__('Loading next step...') ?>" class="v-middle" /> <?php echo $this->__('Loading next step...') ?>
|
192 |
+
</span>
|
193 |
+
</div>
|
194 |
+
</form>
|
195 |
+
<script type="text/javascript">
|
196 |
+
//<![CDATA[
|
197 |
+
var shipping = new Shipping('co-shipping-form', '<?php echo $this->getUrl('checkout/onepage/getAddress') ?>address/', '<?php echo $this->getUrl('checkout/onepage/saveShipping') ?>',
|
198 |
+
'<?php echo $this->getUrl('checkout/onepage/shippingMethod') ?>');
|
199 |
+
var shippingForm = new VarienForm('co-shipping-form');
|
200 |
+
shippingForm.extraChildParams = ' onchange="shipping.setSameAsBilling(false);"';
|
201 |
+
//shippingForm.setElementsRelation('shipping:country_id', 'shipping:region', '<?php echo $this->getUrl('directory/json/childRegion') ?>', '<?php echo $this->__('Select State/Province...') ?>');
|
202 |
+
$('shipping-address-select') && shipping.newAddress(!$('shipping-address-select').value);
|
203 |
+
|
204 |
+
var shippingRegionUpdater = new RegionUpdater('shipping:country_id', 'shipping:region', 'shipping:region_id', countryRegions, undefined, 'shipping:postcode');
|
205 |
+
//]]>
|
206 |
+
</script>
|
File without changes
|
@@ -7,7 +7,7 @@ function crafty_add_address_finder($obj, $suffix = '', $company_id = 'company',
|
|
7 |
if (1 == $conf['craftyclicks']['active']) {
|
8 |
|
9 |
if (false == $crafty_script_added) {
|
10 |
-
echo "<script type=\"text/javascript\" charset=\"ISO-8859-1\" src=\"".$obj->getJsUrl('
|
11 |
$crafty_script_added = true;
|
12 |
}
|
13 |
|
@@ -63,15 +63,16 @@ function crafty_add_address_finder($obj, $suffix = '', $company_id = 'company',
|
|
63 |
// hide address fields if they are blank, only show them once an address is selected
|
64 |
echo "
|
65 |
function _cp_set_addr_fields_display".$suffix."(new_display) {
|
66 |
-
document.getElementById('".$town_id."').
|
67 |
-
if (document.getElementById('".$company_id."')) {
|
68 |
-
document.getElementById('".$company_id."').
|
69 |
}";
|
70 |
// do all street lines
|
71 |
for ($street_num = 1; $street_num<=$obj->helper('customer/address')->getStreetLines(); $street_num++) {
|
72 |
echo "
|
73 |
-
document.getElementById('".$street_id.$street_num."').
|
74 |
}
|
|
|
75 |
echo "
|
76 |
}
|
77 |
// hide all address lines
|
@@ -106,7 +107,7 @@ function crafty_add_address_finder($obj, $suffix = '', $company_id = 'company',
|
|
106 |
if (1 == $conf['craftyclicks']['hide_county']) {
|
107 |
echo "
|
108 |
function _cp_county_display".$suffix."(new_display) {
|
109 |
-
var county_filed = document.getElementById('".$
|
110 |
if (county_filed) {
|
111 |
county_filed.style.display = new_display;
|
112 |
}
|
@@ -139,13 +140,13 @@ function crafty_add_address_finder($obj, $suffix = '', $company_id = 'company',
|
|
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);
|
151 |
_cp_county_display".$suffix."('inline');
|
@@ -158,7 +159,7 @@ function crafty_add_address_finder($obj, $suffix = '', $company_id = 'company',
|
|
158 |
echo "
|
159 |
document.getElementById('houseSearchDiv".$suffix."').style.display = 'inline';";
|
160 |
}
|
161 |
-
echo "
|
162 |
_cp_county_display".$suffix."('none');
|
163 |
}
|
164 |
}
|
@@ -186,6 +187,19 @@ function crafty_add_address_finder($obj, $suffix = '', $company_id = 'company',
|
|
186 |
|
187 |
_cp_country_handler".$suffix."();
|
188 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
189 |
</script>";
|
190 |
}
|
191 |
}
|
7 |
if (1 == $conf['craftyclicks']['active']) {
|
8 |
|
9 |
if (false == $crafty_script_added) {
|
10 |
+
echo "<script type=\"text/javascript\" charset=\"ISO-8859-1\" src=\"".$obj->getJsUrl('craftyclicks/crafty_postcode.class.js')."\"></script>\n";
|
11 |
$crafty_script_added = true;
|
12 |
}
|
13 |
|
63 |
// hide address fields if they are blank, only show them once an address is selected
|
64 |
echo "
|
65 |
function _cp_set_addr_fields_display".$suffix."(new_display) {
|
66 |
+
document.getElementById('hideOnNewAddress_".$town_id."').style.display = new_display;
|
67 |
+
if (document.getElementById('hideOnNewAddress_".$company_id."')) {
|
68 |
+
document.getElementById('hideOnNewAddress_".$company_id."').style.display = new_display;
|
69 |
}";
|
70 |
// do all street lines
|
71 |
for ($street_num = 1; $street_num<=$obj->helper('customer/address')->getStreetLines(); $street_num++) {
|
72 |
echo "
|
73 |
+
document.getElementById('hideOnNewAddress_".$street_id.$street_num."').style.display = new_display;";
|
74 |
}
|
75 |
+
|
76 |
echo "
|
77 |
}
|
78 |
// hide all address lines
|
107 |
if (1 == $conf['craftyclicks']['hide_county']) {
|
108 |
echo "
|
109 |
function _cp_county_display".$suffix."(new_display) {
|
110 |
+
var county_filed = document.getElementById('countyDiv".$suffix."');
|
111 |
if (county_filed) {
|
112 |
county_filed.style.display = new_display;
|
113 |
}
|
140 |
if ('GB' != document.getElementById('".$country_id."').value) {
|
141 |
document.getElementById('".$postcode_id."').style.width = _cp_oldZipWidth".$suffix.";
|
142 |
document.getElementById('zipDiv').style.width = _cp_oldZipDivWidth".$suffix.";
|
143 |
+
document.getElementById('findAddrBtnDiv".$suffix."').style.display = 'none';
|
144 |
+
document.getElementById('crafty_postcode_result_display".$suffix."').style.display = 'none';";
|
145 |
if (1 == $conf['craftyclicks']['house_search']) {
|
146 |
echo "
|
147 |
document.getElementById('houseSearchDiv".$suffix."').style.display = 'none';";
|
148 |
}
|
149 |
echo "
|
|
|
150 |
_cp_addr_fields_show".$suffix."();
|
151 |
cp_obj".$suffix.".update_res(null);
|
152 |
_cp_county_display".$suffix."('inline');
|
159 |
echo "
|
160 |
document.getElementById('houseSearchDiv".$suffix."').style.display = 'inline';";
|
161 |
}
|
162 |
+
echo "
|
163 |
_cp_county_display".$suffix."('none');
|
164 |
}
|
165 |
}
|
187 |
|
188 |
_cp_country_handler".$suffix."();
|
189 |
|
190 |
+
// make the search button default on Enter key - optional!
|
191 |
+
function _cp_key_pressed_on_postcode".$suffix."(e) {
|
192 |
+
var cc = 0;
|
193 |
+
if (!e) e = window.event;
|
194 |
+
if(e.keyCode) {cc = e.keyCode;}
|
195 |
+
else if(e.which) {cc = e.which;}
|
196 |
+
if(cc == 13){
|
197 |
+
_cp_do_lookup".$suffix."()
|
198 |
+
return false;
|
199 |
+
}
|
200 |
+
}
|
201 |
+
var _cp_postcodeElem".$suffix." = document.getElementById('".$postcode_id."');
|
202 |
+
Event.observe(_cp_postcodeElem".$suffix.", 'keypress', _cp_key_pressed_on_postcode".$suffix.");
|
203 |
</script>";
|
204 |
}
|
205 |
}
|
@@ -0,0 +1,205 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*
|
26 |
+
*
|
27 |
+
* NOTE - this file is modified to include the CraftyClicks Address Finder Extension
|
28 |
+
*/
|
29 |
+
?>
|
30 |
+
<?php
|
31 |
+
/**
|
32 |
+
* Edit customer address template
|
33 |
+
*
|
34 |
+
* @see Mage_Customer_Block_Address_Edit
|
35 |
+
*/
|
36 |
+
?>
|
37 |
+
<?php if($this->getTitle()): ?>
|
38 |
+
<div class="page-title">
|
39 |
+
<h1><?php echo $this->getTitle() ?></h1>
|
40 |
+
</div>
|
41 |
+
<?php endif; ?>
|
42 |
+
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
43 |
+
<form action="<?php echo $this->getSaveUrl() ?>" method="post" id="form-validate">
|
44 |
+
<div class="fieldset">
|
45 |
+
<?php echo $this->getBlockHtml('formkey')?>
|
46 |
+
<input type="hidden" name="success_url" value="<?php echo $this->getSuccessUrl() ?>" />
|
47 |
+
<input type="hidden" name="error_url" value="<?php echo $this->getErrorUrl() ?>" />
|
48 |
+
<h2 class="legend"><?php echo $this->__('Contact Information') ?></h2>
|
49 |
+
<ul class="form-list">
|
50 |
+
<li class="fields">
|
51 |
+
<?php echo $this->getLayout()->createBlock('customer/widget_name')->setObject($this->getAddress()->getFirstname() ? $this->getAddress() : $this->getCustomer())->toHtml() ?>
|
52 |
+
</li>
|
53 |
+
<?php if (1 != Mage::getStoreConfig('general/craftyclicks/active')) : ?>
|
54 |
+
<li class="wide">
|
55 |
+
<label for="company"><?php echo $this->__('Company') ?></label>
|
56 |
+
<div class="input-box">
|
57 |
+
<input type="text" name="company" id="company" title="<?php echo $this->__('Company') ?>" value="<?php echo $this->htmlEscape($this->getAddress()->getCompany()) ?>" class="input-text" />
|
58 |
+
</div>
|
59 |
+
</li>
|
60 |
+
<?php endif ?>
|
61 |
+
<li class="fields">
|
62 |
+
<div class="field">
|
63 |
+
<label for="telephone" class="required"><em>*</em><?php echo $this->__('Telephone') ?></label>
|
64 |
+
<div class="input-box">
|
65 |
+
<input type="text" name="telephone" value="<?php echo $this->htmlEscape($this->getAddress()->getTelephone()) ?>" title="<?php echo $this->__('Telephone') ?>" class="input-text required-entry" id="telephone" />
|
66 |
+
</div>
|
67 |
+
</div>
|
68 |
+
<div class="field">
|
69 |
+
<label for="fax"><?php echo $this->__('Fax') ?></label>
|
70 |
+
<div class="input-box">
|
71 |
+
<input type="text" name="fax" id="fax" title="<?php echo $this->__('Fax') ?>" value="<?php echo $this->htmlEscape($this->getAddress()->getFax()) ?>" class="input-text" />
|
72 |
+
</div>
|
73 |
+
</div>
|
74 |
+
</li>
|
75 |
+
</ul>
|
76 |
+
</div>
|
77 |
+
<div class="fieldset">
|
78 |
+
<h2 class="legend"><?php echo $this->__('Address') ?></h2>
|
79 |
+
<ul class="form-list">
|
80 |
+
<?php if (1 == Mage::getStoreConfig('general/craftyclicks/active')) : // for CraftyClicks we put country & postcode above other address fields ?>
|
81 |
+
<li class="fields">
|
82 |
+
<div class="field">
|
83 |
+
<label for="country" class="required"><em>*</em><?php echo $this->__('Country') ?></label>
|
84 |
+
<div class="input-box">
|
85 |
+
<?php echo $this->getCountryHtmlSelect() ?>
|
86 |
+
</div>
|
87 |
+
</div>
|
88 |
+
<?php if (1 == Mage::getStoreConfig('general/craftyclicks/house_search')) : ?>
|
89 |
+
</li>
|
90 |
+
<li class="fields">
|
91 |
+
<div class="field" id="houseSearchDiv">
|
92 |
+
<label for="crafty_in_search_string"><?php echo $this->__('House Name or Number') ?></label>
|
93 |
+
<div class="input-box">
|
94 |
+
<input type="text" title="<?php echo $this->__('House Name or Number') ?>" name="crafty_in_search_string" id="crafty_in_search_string" class="input-text" />
|
95 |
+
</div>
|
96 |
+
</div>
|
97 |
+
<?php endif ?>
|
98 |
+
<div class="field" id="zipDiv">
|
99 |
+
<label for="zip" class="required"><em>*</em><?php echo $this->__('Zip/Postal Code') ?></label>
|
100 |
+
<div class="input-box">
|
101 |
+
<input type="text" name="postcode" value="<?php echo $this->htmlEscape($this->getAddress()->getPostcode()) ?>" title="<?php echo $this->__('Zip/Postal Code') ?>" id="zip" class="input-text validate-zip-international required-entry" />
|
102 |
+
</div>
|
103 |
+
</div>
|
104 |
+
<div class="field" id="findAddrBtnDiv" style="display:none;"><br />
|
105 |
+
|
106 |
+
<?php if ('' != Mage::getStoreConfig('general/craftyclicks/button_image')) : ?>
|
107 |
+
<img style="cursor: pointer;" src="<?php echo $this->getSkinUrl('images/craftyclicks/'.Mage::getStoreConfig('general/craftyclicks/button_image')); ?>" onclick="_cp_do_lookup()" title="Find Address" class="<?php echo Mage::getStoreConfig('general/craftyclicks/button_class');?>"/>
|
108 |
+
<?php else : ?>
|
109 |
+
<button type="button" onclick="_cp_do_lookup()" class="<?php echo Mage::getStoreConfig('general/craftyclicks/button_class');?>">Find Address</button>
|
110 |
+
<?php endif ?>
|
111 |
+
</div>
|
112 |
+
</li>
|
113 |
+
<li class="wide">
|
114 |
+
<span style="display:none;" id="crafty_postcode_result_display"> </span>
|
115 |
+
</li>
|
116 |
+
<li class="wide" id="hideOnNewAddress_company">
|
117 |
+
<label for="company"><?php echo $this->__('Company') ?></label>
|
118 |
+
<div class="input-box">
|
119 |
+
<input type="text" name="company" id="company" title="<?php echo $this->__('Company') ?>" value="<?php echo $this->htmlEscape($this->getAddress()->getCompany()) ?>" class="input-text" />
|
120 |
+
</div>
|
121 |
+
</li>
|
122 |
+
<?php endif ?>
|
123 |
+
<li class="wide" id="hideOnNewAddress_street_1">
|
124 |
+
<label for="street_1" class="required"><em>*</em><?php echo $this->__('Street Address') ?></label>
|
125 |
+
<div class="input-box">
|
126 |
+
<input type="text" name="street[]" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet(1)) ?>" title="<?php echo $this->__('Street Address') ?>" id="street_1" class="input-text required-entry" />
|
127 |
+
</div>
|
128 |
+
</li>
|
129 |
+
<?php for ($_i=2, $_n=$this->helper('customer/address')->getStreetLines(); $_i<=$_n; $_i++): ?>
|
130 |
+
<li class="wide" id="hideOnNewAddress_street_<?php echo $_i?>">
|
131 |
+
<div class="input-box">
|
132 |
+
<input type="text" name="street[]" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet($_i)) ?>" title="<?php echo $this->__('Street Address '.$_i) ?>" id="street_<?php echo $_i?>" class="input-text" />
|
133 |
+
</div>
|
134 |
+
</li>
|
135 |
+
<?php endfor ?>
|
136 |
+
<li class="fields" id="hideOnNewAddress_city">
|
137 |
+
<div class="field">
|
138 |
+
<label for="city" class="required"><em>*</em><?php echo $this->__('City') ?></label>
|
139 |
+
<div class="input-box">
|
140 |
+
<input type="text" name="city" value="<?php echo $this->htmlEscape($this->getAddress()->getCity()) ?>" title="<?php echo $this->__('City') ?>" class="input-text required-entry" id="city" />
|
141 |
+
</div>
|
142 |
+
</div>
|
143 |
+
<div class="field" id="countyDiv">
|
144 |
+
<label for="region_id" class="required"><em>*</em><?php echo $this->__('State/Province') ?></label>
|
145 |
+
<div class="input-box">
|
146 |
+
<select id="region_id" name="region_id" title="<?php echo $this->__('State/Province') ?>" class="validate-select" style="display:none;">
|
147 |
+
<option value=""><?php echo $this->__('Please select region, state or province') ?></option>
|
148 |
+
</select>
|
149 |
+
<script type="text/javascript">
|
150 |
+
//<![CDATA[
|
151 |
+
$('region_id').setAttribute('defaultValue', "<?php echo $this->getAddress()->getRegionId() ?>");
|
152 |
+
//]]>
|
153 |
+
</script>
|
154 |
+
<input type="text" id="region" name="region" value="<?php echo $this->htmlEscape($this->getAddress()->getRegion()) ?>" title="<?php echo $this->__('State/Province') ?>" class="input-text" style="display:none;" />
|
155 |
+
</div>
|
156 |
+
</div>
|
157 |
+
</li>
|
158 |
+
<?php if (1 != Mage::getStoreConfig('general/craftyclicks/active')) : // for CraftyClicks we put country & postcode above other address fields ?>
|
159 |
+
<li class="fields">
|
160 |
+
<div class="field">
|
161 |
+
<label for="zip" class="required"><em>*</em><?php echo $this->__('Zip/Postal Code') ?></label>
|
162 |
+
<div class="input-box">
|
163 |
+
<input type="text" name="postcode" value="<?php echo $this->htmlEscape($this->getAddress()->getPostcode()) ?>" title="<?php echo $this->__('Zip/Postal Code') ?>" id="zip" class="input-text validate-zip-international required-entry" />
|
164 |
+
</div>
|
165 |
+
</div>
|
166 |
+
<div class="field">
|
167 |
+
<label for="country" class="required"><em>*</em><?php echo $this->__('Country') ?></label>
|
168 |
+
<div class="input-box">
|
169 |
+
<?php echo $this->getCountryHtmlSelect() ?>
|
170 |
+
</div>
|
171 |
+
</div>
|
172 |
+
</li>
|
173 |
+
<?php endif ?>
|
174 |
+
<li<?php if($this->canSetAsDefaultBilling()) echo ' class="control"' ?>>
|
175 |
+
<?php if($this->isDefaultBilling()): ?>
|
176 |
+
<strong><?php echo $this->__('Default Billing Address') ?></strong>
|
177 |
+
<?php elseif($this->canSetAsDefaultBilling()): ?>
|
178 |
+
<input type="checkbox" id="primary_billing" name="default_billing" value="1" title="<?php echo $this->__('Use as my default billing address') ?>" class="checkbox" /><label for="primary_billing"><?php echo $this->__('Use as my default billing address') ?></label>
|
179 |
+
<?php else: ?>
|
180 |
+
<input type="hidden" name="default_billing" value="1" />
|
181 |
+
<?php endif; ?>
|
182 |
+
</li>
|
183 |
+
<li<?php if($this->canSetAsDefaultShipping()) echo ' class="control"' ?>>
|
184 |
+
<?php if($this->isDefaultShipping()): ?>
|
185 |
+
<strong><?php echo $this->__('Default Shipping Address') ?></strong>
|
186 |
+
<?php elseif($this->canSetAsDefaultShipping()): ?>
|
187 |
+
<input type="checkbox" id="primary_shipping" name="default_shipping" value="1" title="<?php echo $this->__('Use as my default shipping address') ?>" class="checkbox" /><label for="primary_shipping"><?php echo $this->__('Use as my default shipping address') ?></label>
|
188 |
+
<?php else: ?>
|
189 |
+
<input type="hidden" name="default_shipping" value="1" />
|
190 |
+
<?php endif; ?>
|
191 |
+
</li>
|
192 |
+
</ul>
|
193 |
+
</div>
|
194 |
+
<div class="buttons-set">
|
195 |
+
<p class="required"><?php echo $this->__('* Required Fields') ?></p>
|
196 |
+
<p class="back-link"><a href="<?php echo $this->getBackUrl() ?>"><small>« </small><?php echo $this->__('Back') ?></a></p>
|
197 |
+
<button type="submit" title="<?php echo $this->__('Save Address') ?>" class="button"><span><span><?php echo $this->__('Save Address') ?></span></span></button>
|
198 |
+
</div>
|
199 |
+
</form>
|
200 |
+
<script type="text/javascript">
|
201 |
+
//<![CDATA[
|
202 |
+
var dataForm = new VarienForm('form-validate', true);
|
203 |
+
new RegionUpdater('country', 'region', 'region_id', <?php echo $this->helper('directory')->getRegionJson() ?>, undefined, 'zip');
|
204 |
+
//]]>
|
205 |
+
</script>
|
@@ -1,42 +0,0 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
-
|
3 |
-
<layout>
|
4 |
-
|
5 |
-
<checkout_onepage_index>
|
6 |
-
<reference name="checkout.onepage.billing">
|
7 |
-
<action method="setTemplate"><template>dnc/craftyclicks/checkout/onepage/billing.phtml</template></action>
|
8 |
-
</reference>
|
9 |
-
<reference name="checkout.onepage.shipping">
|
10 |
-
<action method="setTemplate"><template>dnc/craftyclicks/checkout/onepage/shipping.phtml</template></action>
|
11 |
-
</reference>
|
12 |
-
<reference name="content">
|
13 |
-
<block type="checkout/onepage_billing" name="checkout.onepage.billing" as="billing" template="dnc/craftyclicks/checkout_onepage.phtml"/>
|
14 |
-
</reference>
|
15 |
-
</checkout_onepage_index>
|
16 |
-
|
17 |
-
<checkout_multishipping_customer_address>
|
18 |
-
<reference name="customer_address_edit">
|
19 |
-
<action method="setTemplate"><template>dnc/craftyclicks/customer/address/edit.phtml</template></action>
|
20 |
-
</reference>
|
21 |
-
<reference name="content">
|
22 |
-
<block type="customer/address_edit" name="customer.address.edit" as="shipping" template="dnc/craftyclicks/address_form.phtml"/>
|
23 |
-
</reference>
|
24 |
-
</checkout_multishipping_customer_address>
|
25 |
-
|
26 |
-
<customer_address_form>
|
27 |
-
<reference name="customer_address_edit">
|
28 |
-
<action method="setTemplate"><template>dnc/craftyclicks/customer/address/edit.phtml</template></action>
|
29 |
-
</reference>
|
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -1,175 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Magento
|
4 |
-
*
|
5 |
-
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
-
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
-
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
-
* It is also available through the world-wide-web at this URL:
|
10 |
-
* http://opensource.org/licenses/afl-3.0.php
|
11 |
-
* If you did not receive a copy of the license and are unable to
|
12 |
-
* obtain it through the world-wide-web, please send an email
|
13 |
-
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
-
*
|
15 |
-
* DISCLAIMER
|
16 |
-
*
|
17 |
-
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
-
* versions in the future. If you wish to customize Magento for your
|
19 |
-
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
-
*
|
21 |
-
* @category design_default
|
22 |
-
* @package Mage
|
23 |
-
* @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
|
24 |
-
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
-
*/
|
26 |
-
?>
|
27 |
-
<form id="co-billing-form" action="">
|
28 |
-
<?php if ($this->customerHasAddresses()): ?>
|
29 |
-
<p><?php echo $this->__('Select a billing address from your address book or enter a new address.') ?></p>
|
30 |
-
<ul><li><p><?php echo $this->getAddressesHtmlSelect('billing') ?></p></li></ul>
|
31 |
-
|
32 |
-
<?php endif ?>
|
33 |
-
<fieldset class="group-select" id="billing-new-address-form" <?php if ($this->customerHasAddresses()): ?>style="display:none"<?php endif ?>>
|
34 |
-
<input type="hidden" name="billing[address_id]" value="<?php echo $this->getAddress()->getId() ?>" id="billing:address_id" />
|
35 |
-
<ul>
|
36 |
-
<li><?php echo $this->getLayout()->createBlock('customer/widget_name')->setObject($this->getAddress())
|
37 |
-
->setFieldIdFormat('billing:%s')->setFieldNameFormat('billing[%s]')->toHtml() ?></li>
|
38 |
-
<li>
|
39 |
-
<?php if (1 != Mage::getStoreConfig('general/craftyclicks/active')) : ?>
|
40 |
-
<div class="input-box">
|
41 |
-
<label for="billing:company"><?php echo $this->__('Company') ?></label><br />
|
42 |
-
<input type="text" id="billing:company" name="billing[company]" value="<?php echo $this->htmlEscape($this->getAddress()->getCompany()) ?>" title="<?php echo $this->__('Company') ?>" class="input-text" /></div>
|
43 |
-
<?php endif ?>
|
44 |
-
<?php if(!$this->isCustomerLoggedIn()): ?>
|
45 |
-
<div class="input-box">
|
46 |
-
<label for="billing:email"><?php echo $this->__('Email Address') ?> <span class="required">*</span></label><br />
|
47 |
-
<input type="text" name="billing[email]" id="billing:email" value="<?php echo $this->htmlEscape($this->getAddress()->getEmail()) ?>" title="<?php echo $this->__('Email Address') ?>" class="validate-email required-entry input-text" /></div>
|
48 |
-
<?php endif ?>
|
49 |
-
</li>
|
50 |
-
<?php if (1 == Mage::getStoreConfig('general/craftyclicks/active')) : ?>
|
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>
|
63 |
-
<div class="input-box" id="findAddrBtnDiv" style="display:none;"><br />
|
64 |
-
|
65 |
-
<?php if ('' != Mage::getStoreConfig('general/craftyclicks/button_image')) : ?>
|
66 |
-
<img style="cursor: pointer;" src="<?php echo $this->getSkinUrl('craftyclicks/'.Mage::getStoreConfig('general/craftyclicks/button_image')); ?>" onclick="_cp_do_lookup()" title="Find Address" class="<?php echo Mage::getStoreConfig('general/craftyclicks/button_class');?>"/>
|
67 |
-
<?php else : ?>
|
68 |
-
<button type="button" onclick="_cp_do_lookup()" class="<?php echo Mage::getStoreConfig('general/craftyclicks/button_class');?>">Find Address</button>
|
69 |
-
<?php endif ?>
|
70 |
-
</div>
|
71 |
-
</li>
|
72 |
-
<li><span style="display:none;" id="crafty_postcode_result_display">
|
73 |
-
</span></li>
|
74 |
-
<li>
|
75 |
-
<div class="input-box">
|
76 |
-
<label for="billing:company"><?php echo $this->__('Company') ?></label><br />
|
77 |
-
<input type="text" id="billing:company" name="billing[company]" value="<?php echo $this->htmlEscape($this->getAddress()->getCompany()) ?>" title="<?php echo $this->__('Company') ?>" class="input-text" /></div>
|
78 |
-
</li>
|
79 |
-
<?php endif ?>
|
80 |
-
<li><label for="billing:street1"><?php echo $this->__('Address') ?> <span class="required">*</span></label><br />
|
81 |
-
<input type="text" title="<?php echo $this->__('Street Address') ?>" name="billing[street][]" id="billing:street1" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet(1)) ?>" class="required-entry input-text" /></li>
|
82 |
-
<?php for ($_i=2, $_n=$this->helper('customer/address')->getStreetLines(); $_i<=$_n; $_i++): ?>
|
83 |
-
<li><input type="text" title="<?php echo $this->__('Street Address '.$_i) ?>" name="billing[street][]" id="billing:street<?php echo $_i?>" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet($_i)) ?>" class="input-text" /></li>
|
84 |
-
<?php endfor ?>
|
85 |
-
<li><div class="input-box">
|
86 |
-
<label for="billing:city"><?php echo $this->__('City') ?> <span class="required">*</span></label><br />
|
87 |
-
<input type="text" title="<?php echo $this->__('City') ?>" name="billing[city]" value="<?php echo $this->htmlEscape($this->getAddress()->getCity()) ?>" class="required-entry input-text" id="billing:city" /></div>
|
88 |
-
<div class="input-box">
|
89 |
-
<label for="billing:region"><?php echo $this->__('State/Province') ?> <span class="required">*</span></label><br/>
|
90 |
-
<select id="billing:region_id" name="billing[region_id]" title="<?php echo $this->__('State/Province') ?>" class="validate-select" style="display:none">
|
91 |
-
<option value=""><?php echo $this->__('Please select region, state or province') ?></option>
|
92 |
-
</select>
|
93 |
-
<script type="text/javascript">
|
94 |
-
$('billing:region_id').setAttribute('defaultValue', "<?php echo $this->getAddress()->getRegionId() ?>");
|
95 |
-
</script>
|
96 |
-
<input type="text" id="billing:region" name="billing[region]" value="<?php echo $this->htmlEscape($this->getAddress()->getRegion()) ?>" title="<?php echo $this->__('State/Province') ?>" class="input-text" style="display:none" />
|
97 |
-
</div></li>
|
98 |
-
<?php if (1 != Mage::getStoreConfig('general/craftyclicks/active')) : ?>
|
99 |
-
<li><div class="input-box">
|
100 |
-
<label for="billing:postcode"><?php echo $this->__('Zip/Postal Code') ?> <span class="required">*</span></label><br />
|
101 |
-
<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>
|
102 |
-
<div class="input-box">
|
103 |
-
<label for="billing:country_id"><?php echo $this->__('Country') ?> <span class="required">*</span></label><br />
|
104 |
-
<?php echo $this->getCountryHtmlSelect('billing') ?></div></li>
|
105 |
-
<?php endif ?>
|
106 |
-
<li><div class="input-box">
|
107 |
-
<label for="billing:telephone"><?php echo $this->__('Telephone') ?> <span class="required">*</span></label><br/>
|
108 |
-
<input type="text" name="billing[telephone]" value="<?php echo $this->htmlEscape($this->getAddress()->getTelephone()) ?>" title="<?php echo $this->__('Telephone') ?>" class="required-entry input-text" id="billing:telephone" /></div>
|
109 |
-
<div class="input-box">
|
110 |
-
<label for="billing:fax"><?php echo $this->__('Fax') ?></label><br/>
|
111 |
-
<input type="text" name="billing[fax]" value="<?php echo $this->htmlEscape($this->getAddress()->getFax()) ?>" title="<?php echo $this->__('Fax') ?>" class="input-text" id="billing:fax" /></div></li>
|
112 |
-
<?php if(!$this->isCustomerLoggedIn()): ?>
|
113 |
-
|
114 |
-
<?php $_dob = $this->getLayout()->createBlock('customer/widget_dob') ?>
|
115 |
-
<?php if ($_dob->isEnabled()): ?>
|
116 |
-
<li>
|
117 |
-
<?php echo $_dob->setDate($this->getQuote()->getCustomerDob())
|
118 |
-
->setFieldIdFormat('billing:%s')->setFieldNameFormat('billing[%s]')->toHtml() ?>
|
119 |
-
</li>
|
120 |
-
<?php endif ?>
|
121 |
-
|
122 |
-
<?php $_taxvat = $this->getLayout()->createBlock('customer/widget_taxvat') ?>
|
123 |
-
<?php if ($_taxvat->isEnabled()): ?>
|
124 |
-
<li>
|
125 |
-
<?php echo $_taxvat->setTaxvat($this->getQuote()->getCustomerTaxvat())
|
126 |
-
->setFieldIdFormat('billing:%s')->setFieldNameFormat('billing[%s]')->toHtml() ?>
|
127 |
-
</li>
|
128 |
-
<?php endif ?>
|
129 |
-
|
130 |
-
<li id="register-customer-password">
|
131 |
-
<div class="input-box">
|
132 |
-
<label for="billing:customer_password"><?php echo $this->__('Password') ?> <span class="required">*</span></label><br/>
|
133 |
-
<input type="password" name="billing[customer_password]" id="billing:customer_password" title="<?php echo $this->__('Password') ?>" class="required-entry validate-password input-text" /></div>
|
134 |
-
<div class="input-box">
|
135 |
-
<label for="billing:confirm_password"><?php echo $this->__('Confirm Password') ?> <span class="required">*</span></label><br/>
|
136 |
-
<input type="password" name="billing[confirm_password]" title="<?php echo $this->__('Confirm Password') ?>" id="billing:confirm_password" class="required-entry validate-password input-text" /></div></li>
|
137 |
-
<?php endif ?>
|
138 |
-
<?php if ($this->isCustomerLoggedIn() && $this->customerHasAddresses()):?>
|
139 |
-
<li><input type="checkbox" name="billing[save_in_address_book]" value="1" title="<?php echo $this->__('Save in address book') ?>" id="billing:save_in_address_book" onchange="shipping.setSameAsBilling(false);"<?php if ($this->getAddress()->getSaveInAddressBook()):?> checked="checked"<?php endif;?> /> <label for="billing:save_in_address_book"><?php echo $this->__('Save in address book') ?></label></li>
|
140 |
-
<?php else:?>
|
141 |
-
<li class="no-display"><input type="hidden" name="billing[save_in_address_book]" value="1" /></li>
|
142 |
-
<?php endif;?>
|
143 |
-
</ul>
|
144 |
-
</fieldset>
|
145 |
-
<fieldset>
|
146 |
-
<?php if ($this->canShip()): ?>
|
147 |
-
<p>
|
148 |
-
<input type="radio" name="billing[use_for_shipping]" id="billing:use_for_shipping_yes" value="1" <?php if ($this->isUseBillingAddressForShipping()) {?>checked="checked" <?php }?>onclick="$('shipping:same_as_billing').checked = true;" /> <label for="billing:use_for_shipping_yes"><?php echo $this->__('Ship to this address') ?></label> <input type="radio" name="billing[use_for_shipping]" id="billing:use_for_shipping_no" value="0" <?php if (!$this->isUseBillingAddressForShipping()) {?>checked="checked" <?php }?>onclick="$('shipping:same_as_billing').checked = false;" /> <label for="billing:use_for_shipping_no"><?php echo $this->__('Ship to different address') ?></label>
|
149 |
-
</p>
|
150 |
-
<?php else: ?>
|
151 |
-
<p class="no-display"><input type="hidden" name="billing[use_for_shipping]" value="1" /></p>
|
152 |
-
<?php endif; ?>
|
153 |
-
</fieldset>
|
154 |
-
</form>
|
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>
|
162 |
-
</div>
|
163 |
-
</div>
|
164 |
-
|
165 |
-
<script type="text/javascript">
|
166 |
-
//<![CDATA[
|
167 |
-
var billing = new Billing('co-billing-form', '<?php echo $this->getUrl('checkout/onepage/getAddress') ?>address/', '<?php echo $this->getUrl('checkout/onepage/saveBilling') ?>');
|
168 |
-
var billingForm = new VarienForm('co-billing-form');
|
169 |
-
|
170 |
-
//billingForm.setElementsRelation('billing:country_id', 'billing:region', '<?php echo $this->getUrl('directory/json/childRegion') ?>', '<?php echo $this->__('Select State/Province...') ?>');
|
171 |
-
$('billing-address-select') && billing.newAddress(!$('billing-address-select').value);
|
172 |
-
|
173 |
-
var billingRegionUpdater = new RegionUpdater('billing:country_id', 'billing:region', 'billing:region_id', countryRegions);
|
174 |
-
//]]>
|
175 |
-
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -1,141 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Magento
|
4 |
-
*
|
5 |
-
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
-
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
-
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
-
* It is also available through the world-wide-web at this URL:
|
10 |
-
* http://opensource.org/licenses/afl-3.0.php
|
11 |
-
* If you did not receive a copy of the license and are unable to
|
12 |
-
* obtain it through the world-wide-web, please send an email
|
13 |
-
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
-
*
|
15 |
-
* DISCLAIMER
|
16 |
-
*
|
17 |
-
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
-
* versions in the future. If you wish to customize Magento for your
|
19 |
-
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
-
*
|
21 |
-
* @category design_default
|
22 |
-
* @package Mage
|
23 |
-
* @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
|
24 |
-
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
-
*/
|
26 |
-
?>
|
27 |
-
<form id="co-shipping-form" action="">
|
28 |
-
<?php if ($this->customerHasAddresses()): ?>
|
29 |
-
<p><?php echo $this->__('Select a shipping address from your address book or enter a new address.') ?></p>
|
30 |
-
<p><?php echo $this->getAddressesHtmlSelect('shipping') ?></p>
|
31 |
-
<?php endif ?>
|
32 |
-
|
33 |
-
<fieldset class="group-select" id="shipping-new-address-form" <?php if ($this->customerHasAddresses()): ?>style="display:none"<?php endif ?>>
|
34 |
-
<input type="hidden" name="shipping[address_id]" value="<?php echo $this->getAddress()->getId() ?>" id="shipping:address_id" />
|
35 |
-
<ul>
|
36 |
-
<li><?php echo $this->getLayout()->createBlock('customer/widget_name')->setObject($this->getAddress())
|
37 |
-
->setFieldIdFormat('shipping:%s')->setFieldNameFormat('shipping[%s]')->setFieldParams('onchange="shipping.setSameAsBilling(false)"')->toHtml() ?></li>
|
38 |
-
<?php if (1 != Mage::getStoreConfig('general/craftyclicks/active')) : ?>
|
39 |
-
<li><div class="input-box">
|
40 |
-
<label for="shipping:company"><?php echo $this->__('Company') ?></label><br/>
|
41 |
-
<input type="text" id="shipping:company" name="shipping[company]" value="<?php echo $this->htmlEscape($this->getAddress()->getCompany()) ?>" title="<?php echo $this->__('Company') ?>" class="input-text" onchange="shipping.setSameAsBilling(false);" /></div>
|
42 |
-
<?php if(false): ?>
|
43 |
-
<div class="input-box">
|
44 |
-
<label for="shipping:email"><?php echo $this->__('Email Address') ?> <span class="required">*</span></label><br />
|
45 |
-
<input type="text" name="shipping[email]" id="shipping:email" value="<?php echo $this->htmlEscape($this->getAddress()->getEmail()) ?>" title="<?php echo $this->__('Email Address') ?>" class="validate-email required-entry input-text" /></div>
|
46 |
-
<?php endif ?>
|
47 |
-
</li>
|
48 |
-
<?php endif ?>
|
49 |
-
<?php if (1 == Mage::getStoreConfig('general/craftyclicks/active')) : ?>
|
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>
|
62 |
-
<div class="input-box" id="findAddrBtnDiv2" style="display:none;"><br />
|
63 |
-
|
64 |
-
<?php if ('' != Mage::getStoreConfig('general/craftyclicks/button_image')) : ?>
|
65 |
-
<img style="cursor: pointer;" src="<?php echo $this->getSkinUrl('craftyclicks/'.Mage::getStoreConfig('general/craftyclicks/button_image')); ?>" onclick="_cp_do_lookup2()" title="Find Address" class="<?php echo Mage::getStoreConfig('general/craftyclicks/button_class');?>"/>
|
66 |
-
<?php else : ?>
|
67 |
-
<button type="button" onclick="_cp_do_lookup2()" class="<?php echo Mage::getStoreConfig('general/craftyclicks/button_class');?>">Find Address</button>
|
68 |
-
<?php endif ?>
|
69 |
-
</div>
|
70 |
-
</li>
|
71 |
-
<li><span style="display:none;" id="crafty_postcode_result_display2">
|
72 |
-
</span></li>
|
73 |
-
<li><div class="input-box">
|
74 |
-
<label for="shipping:company"><?php echo $this->__('Company') ?></label><br/>
|
75 |
-
<input type="text" id="shipping:company" name="shipping[company]" value="<?php echo $this->htmlEscape($this->getAddress()->getCompany()) ?>" title="<?php echo $this->__('Company') ?>" class="input-text" onchange="shipping.setSameAsBilling(false);" /></div>
|
76 |
-
</li>
|
77 |
-
<?php endif ?>
|
78 |
-
<li><label for="shipping:street1"><?php echo $this->__('Address') ?> <span class="required">*</span></label><br />
|
79 |
-
<input type="text" title="<?php echo $this->__('Street Address') ?>" name="shipping[street][]" id="shipping:street1" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet(1)) ?>" class="required-entry input-text" onchange="shipping.setSameAsBilling(false);" /></li>
|
80 |
-
<?php for ($_i=2, $_n=$this->helper('customer/address')->getStreetLines(); $_i<=$_n; $_i++): ?>
|
81 |
-
<li><input type="text" title="<?php echo $this->__('Street Address '.$_i) ?>" name="shipping[street][]" id="shipping:street<?php echo $_i?>" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet($_i)) ?>" class="input-text" onchange="shipping.setSameAsBilling(false);"/></li>
|
82 |
-
<?php endfor ?>
|
83 |
-
<li><div class="input-box">
|
84 |
-
<label for="shipping:city"><?php echo $this->__('City') ?> <span class="required">*</span></label><br />
|
85 |
-
<input type="text" title="<?php echo $this->__('City') ?>" name="shipping[city]" value="<?php echo $this->htmlEscape($this->getAddress()->getCity()) ?>" class="required-entry input-text" id="shipping:city" onchange="shipping.setSameAsBilling(false);" /></div>
|
86 |
-
<div class="input-box">
|
87 |
-
<label for="shipping:region_id"><?php echo $this->__('State/Province') ?> <span class="required">*</span></label><br />
|
88 |
-
<select id="shipping:region_id" name="shipping[region_id]" title="<?php echo $this->__('State/Province') ?>" class="validate-select" style="display:none">
|
89 |
-
<option value=""><?php echo $this->__('Please select region, state or province') ?></option>
|
90 |
-
</select>
|
91 |
-
<script type="text/javascript">
|
92 |
-
$('shipping:region_id').setAttribute('defaultValue', "<?php echo $this->getAddress()->getRegionId() ?>");
|
93 |
-
</script>
|
94 |
-
<input type="text" id="shipping:region" name="shipping[region]" value="<?php echo $this->htmlEscape($this->getAddress()->getRegion()) ?>" title="<?php echo $this->__('State/Province') ?>" class="input-text" style="display:none" /></div></li>
|
95 |
-
<?php if (1 != Mage::getStoreConfig('general/craftyclicks/active')) : ?>
|
96 |
-
<li><div class="input-box">
|
97 |
-
<label for="shipping:postcode"><?php echo $this->__('Zip/Postal Code') ?> <span class="required">*</span></label><br />
|
98 |
-
<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>
|
99 |
-
<div class="input-box">
|
100 |
-
<label for="shipping:country_id"><?php echo $this->__('Country') ?> <span class="required">*</span></label><br />
|
101 |
-
<?php echo $this->getCountryHtmlSelect('shipping') ?>
|
102 |
-
</div></li>
|
103 |
-
<?php endif ?>
|
104 |
-
<li><div class="input-box">
|
105 |
-
<label for="shipping:telephone"><?php echo $this->__('Telephone') ?> <span class="required">*</span></label><br />
|
106 |
-
<input type="text" name="shipping[telephone]" value="<?php echo $this->htmlEscape($this->getAddress()->getTelephone()) ?>" title="<?php echo $this->__('Telephone') ?>" class="required-entry input-text" id="shipping:telephone" onchange="shipping.setSameAsBilling(false);" /></div>
|
107 |
-
<div class="input-box">
|
108 |
-
<label for="shipping:fax"><?php echo $this->__('Fax') ?></label><br />
|
109 |
-
<input type="text" name="shipping[fax]" value="<?php echo $this->htmlEscape($this->getAddress()->getFax()) ?>" title="<?php echo $this->__('Fax') ?>" class="input-text" id="shipping:fax" onchange="shipping.setSameAsBilling(false);" /></div></li>
|
110 |
-
<?php if ($this->isCustomerLoggedIn() && $this->customerHasAddresses()):?>
|
111 |
-
<li><input type="checkbox" name="shipping[save_in_address_book]" value="1" title="<?php echo $this->__('Save in address book') ?>" id="shipping:save_in_address_book" onchange="shipping.setSameAsBilling(false);"<?php if ($this->getAddress()->getSaveInAddressBook()):?> checked="checked"<?php endif;?> /> <label for="shipping:save_in_address_book"><?php echo $this->__('Save in address book') ?></label></li>
|
112 |
-
<?php else:?>
|
113 |
-
<li><input type="hidden" name="shipping[save_in_address_book]" value="1" /></li>
|
114 |
-
<?php endif;?>
|
115 |
-
</ul>
|
116 |
-
</fieldset>
|
117 |
-
<p><input type="checkbox" name="shipping[same_as_billing]" id="shipping:same_as_billing" value="1" <?php if($this->getAddress()->getSameAsBilling()): ?>checked="checked"<?php endif ?> onclick="shipping.setSameAsBilling(this.checked)" /> <label for="shipping:same_as_billing"><?php echo $this->__('Use Billing Address') ?></label></p>
|
118 |
-
</form>
|
119 |
-
<div class="button-set">
|
120 |
-
<p class="required"><?php echo $this->__('* Required Fields') ?></p>
|
121 |
-
<div id="shipping-buttons-container">
|
122 |
-
<a href="#" class="back left" onclick="checkout.back(); return false;"><?php echo $this->__('Back') ?></a>
|
123 |
-
<button type="button" class="form-button right" onclick="shipping.save()"><span><?php echo $this->__('Continue') ?></span></button>
|
124 |
-
<span id="shipping-please-wait" style="display:none;" class="opc-please-wait">
|
125 |
-
<img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" class="v-middle" alt="" /> <?php echo $this->__('Loading next step...') ?>
|
126 |
-
</span>
|
127 |
-
</div>
|
128 |
-
</div>
|
129 |
-
|
130 |
-
<script type="text/javascript">
|
131 |
-
//<![CDATA[
|
132 |
-
var shipping = new Shipping('co-shipping-form', '<?php echo $this->getUrl('checkout/onepage/getAddress') ?>address/', '<?php echo $this->getUrl('checkout/onepage/saveShipping') ?>',
|
133 |
-
'<?php echo $this->getUrl('checkout/onepage/shippingMethod') ?>');
|
134 |
-
var shippingForm = new VarienForm('co-shipping-form');
|
135 |
-
shippingForm.extraChildParams = ' onchange="shipping.setSameAsBilling(false);"';
|
136 |
-
//shippingForm.setElementsRelation('shipping:country_id', 'shipping:region', '<?php echo $this->getUrl('directory/json/childRegion') ?>', '<?php echo $this->__('Select State/Province...') ?>');
|
137 |
-
$('shipping-address-select') && shipping.newAddress(!$('shipping-address-select').value);
|
138 |
-
|
139 |
-
var shippingRegionUpdater = new RegionUpdater('shipping:country_id', 'shipping:region', 'shipping:region_id', countryRegions);
|
140 |
-
//]]>
|
141 |
-
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -1,174 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Magento
|
4 |
-
*
|
5 |
-
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
-
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
-
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
-
* It is also available through the world-wide-web at this URL:
|
10 |
-
* http://opensource.org/licenses/afl-3.0.php
|
11 |
-
* If you did not receive a copy of the license and are unable to
|
12 |
-
* obtain it through the world-wide-web, please send an email
|
13 |
-
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
-
*
|
15 |
-
* DISCLAIMER
|
16 |
-
*
|
17 |
-
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
-
* versions in the future. If you wish to customize Magento for your
|
19 |
-
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
-
*
|
21 |
-
* @category design_default
|
22 |
-
* @package Mage
|
23 |
-
* @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
|
24 |
-
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
-
*/
|
26 |
-
?>
|
27 |
-
<?php
|
28 |
-
/**
|
29 |
-
* Edit customer address template
|
30 |
-
*
|
31 |
-
* @see Mage_Customer_Block_Address_Edit
|
32 |
-
*/
|
33 |
-
?>
|
34 |
-
<?php if($this->getTitle()): ?>
|
35 |
-
<div class="page-head">
|
36 |
-
<h3><?php echo $this->getTitle() ?></h3>
|
37 |
-
</div>
|
38 |
-
<?php endif; ?>
|
39 |
-
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
40 |
-
<form action="<?php echo $this->getSaveUrl() ?>" method="post" id="form-validate">
|
41 |
-
<fieldset class="group-select">
|
42 |
-
<?php echo $this->getBlockHtml('formkey')?>
|
43 |
-
<input type="hidden" name="success_url" value="<?php echo $this->getSuccessUrl() ?>" />
|
44 |
-
<input type="hidden" name="error_url" value="<?php echo $this->getErrorUrl() ?>" />
|
45 |
-
<h4 class="legend"><?php echo $this->__('Contact Information') ?></h4>
|
46 |
-
<ul>
|
47 |
-
<li>
|
48 |
-
<?php echo $this->getLayout()->createBlock('customer/widget_name')->setObject($this->getAddress()->getFirstname() ? $this->getAddress() : $this->getCustomer())->toHtml() ?>
|
49 |
-
</li>
|
50 |
-
<?php if (1 != Mage::getStoreConfig('general/craftyclicks/active')) : ?>
|
51 |
-
<li>
|
52 |
-
<label for="company"><?php echo $this->__('Company') ?></label><br />
|
53 |
-
<input type="text" name="company" id="company" title="<?php echo $this->__('Company') ?>" value="<?php echo $this->htmlEscape($this->getAddress()->getCompany()) ?>" class="input-text" />
|
54 |
-
</li>
|
55 |
-
<?php endif ?>
|
56 |
-
<li>
|
57 |
-
<div class="input-box">
|
58 |
-
<label for="telephone"><?php echo $this->__('Telephone') ?> <span class="required">*</span></label><br />
|
59 |
-
<input type="text" name="telephone" value="<?php echo $this->htmlEscape($this->getAddress()->getTelephone()) ?>" title="<?php echo $this->__('Telephone') ?>" class="required-entry input-text" id="telephone" />
|
60 |
-
</div>
|
61 |
-
<div class="input-box">
|
62 |
-
<label for="fax"><?php echo $this->__('Fax') ?></label><br />
|
63 |
-
<input type="text" name="fax" id="fax" title="<?php echo $this->__('Fax') ?>" value="<?php echo $this->htmlEscape($this->getAddress()->getFax()) ?>" class="input-text" />
|
64 |
-
</div>
|
65 |
-
</li>
|
66 |
-
</ul>
|
67 |
-
</fieldset>
|
68 |
-
<fieldset class="group-select">
|
69 |
-
<h4 class="legend"><?php echo $this->__('Address') ?></h4>
|
70 |
-
<ul>
|
71 |
-
<?php if (1 == Mage::getStoreConfig('general/craftyclicks/active')) : ?>
|
72 |
-
<li>
|
73 |
-
<div class="input-box">
|
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" />
|
87 |
-
</div>
|
88 |
-
<div class="input-box" id="findAddrBtnDiv" style="display:none;">
|
89 |
-
<br />
|
90 |
-
|
91 |
-
<?php if ('' != Mage::getStoreConfig('general/craftyclicks/button_image')) : ?>
|
92 |
-
<img style="cursor: pointer;" src="<?php echo $this->getSkinUrl('craftyclicks/'.Mage::getStoreConfig('general/craftyclicks/button_image')); ?>" onclick="_cp_do_lookup()" title="Find Address" class="<?php echo Mage::getStoreConfig('general/craftyclicks/button_class');?>"/>
|
93 |
-
<?php else : ?>
|
94 |
-
<button type="button" onclick="_cp_do_lookup()" class="<?php echo Mage::getStoreConfig('general/craftyclicks/button_class');?>">Find Address</button>
|
95 |
-
<?php endif ?>
|
96 |
-
</div>
|
97 |
-
</li>
|
98 |
-
<li><span style="display:none;" id="crafty_postcode_result_display">
|
99 |
-
|
100 |
-
</span></li>
|
101 |
-
<li>
|
102 |
-
<label for="company"><?php echo $this->__('Company') ?></label><br />
|
103 |
-
<input type="text" name="company" id="company" title="<?php echo $this->__('Company') ?>" value="<?php echo $this->htmlEscape($this->getAddress()->getCompany()) ?>" class="input-text" />
|
104 |
-
</li>
|
105 |
-
<?php endif ?>
|
106 |
-
<li>
|
107 |
-
<label for="street_1"><?php echo $this->__('Street Address') ?> <span class="required">*</span></label><br />
|
108 |
-
<input type="text" name="street[]" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet(1)) ?>" title="<?php echo $this->__('Street Address') ?>" id="street_1" class="required-entry input-text" />
|
109 |
-
</li>
|
110 |
-
<?php for ($_i=2, $_n=$this->helper('customer/address')->getStreetLines(); $_i<=$_n; $_i++): ?>
|
111 |
-
<li>
|
112 |
-
<input type="text" name="street[]" value="<?php echo $this->htmlEscape($this->getAddress()->getStreet($_i)) ?>" title="<?php echo $this->__('Street Address '.$_i) ?>" id="street_<?php echo $_i?>" class="input-text" />
|
113 |
-
</li>
|
114 |
-
<?php endfor ?>
|
115 |
-
<li>
|
116 |
-
<div class="input-box">
|
117 |
-
<label for="city"><?php echo $this->__('City') ?> <span class="required">*</span></label><br />
|
118 |
-
<input type="text" name="city" value="<?php echo $this->htmlEscape($this->getAddress()->getCity()) ?>" title="<?php echo $this->__('City') ?>" class="required-entry input-text" id="city" />
|
119 |
-
</div>
|
120 |
-
<div class="input-box">
|
121 |
-
<label for="region_id"><?php echo $this->__('State/Province') ?> <span class="required">*</span></label><br />
|
122 |
-
<select id="region_id" name="region_id" title="<?php echo $this->__('State/Province') ?>" class="validate-select" style="display:none">
|
123 |
-
<option value=""><?php echo $this->__('Please select region, state or province') ?></option>
|
124 |
-
</select>
|
125 |
-
<script type="text/javascript">
|
126 |
-
$('region_id').setAttribute('defaultValue', "<?php echo $this->getAddress()->getRegionId() ?>");
|
127 |
-
</script>
|
128 |
-
<input type="text" id="region" name="region" value="<?php echo $this->htmlEscape($this->getAddress()->getRegion()) ?>" title="<?php echo $this->__('State/Province') ?>" class="input-text" style="display:none" />
|
129 |
-
</div>
|
130 |
-
</li>
|
131 |
-
<?php if (1 != Mage::getStoreConfig('general/craftyclicks/active')) : ?>
|
132 |
-
<li>
|
133 |
-
<div class="input-box">
|
134 |
-
<label for="zip"><?php echo $this->__('Zip/Postal Code') ?> <span class="required">*</span></label><br />
|
135 |
-
<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" />
|
136 |
-
</div>
|
137 |
-
<div class="input-box">
|
138 |
-
<label for="country"><?php echo $this->__('Country') ?> <span class="required">*</span></label><br />
|
139 |
-
<?php echo $this->getCountryHtmlSelect() ?>
|
140 |
-
</div>
|
141 |
-
</li>
|
142 |
-
<?php endif ?>
|
143 |
-
<li>
|
144 |
-
<?php if($this->isDefaultBilling()): ?>
|
145 |
-
<strong><?php echo $this->__('Default Billing Address') ?></strong>
|
146 |
-
<?php elseif($this->canSetAsDefaultBilling()): ?>
|
147 |
-
<input type="checkbox" id="primary_billing" name="default_billing" value="1" />
|
148 |
-
<label for="primary_billing"><?php echo $this->__('Use as my default billing address') ?></label>
|
149 |
-
<?php else: ?>
|
150 |
-
<input type="hidden" name="default_billing" value="1" />
|
151 |
-
<?php endif; ?>
|
152 |
-
</li>
|
153 |
-
<li>
|
154 |
-
<?php if($this->isDefaultShipping()): ?>
|
155 |
-
<strong><?php echo $this->__('Default Shipping Address') ?></strong>
|
156 |
-
<?php elseif($this->canSetAsDefaultShipping()): ?>
|
157 |
-
<input type="checkbox" id="primary_shipping" name="default_shipping" value="1" />
|
158 |
-
<label for="primary_shipping"><?php echo $this->__('Use as my default shipping address') ?></label>
|
159 |
-
<?php else: ?>
|
160 |
-
<input type="hidden" name="default_shipping" value="1" />
|
161 |
-
<?php endif; ?>
|
162 |
-
</li>
|
163 |
-
</ul>
|
164 |
-
</fieldset>
|
165 |
-
<div class="button-set">
|
166 |
-
<p class="required"><?php echo $this->__('* Required Fields') ?></p>
|
167 |
-
<a href="<?php echo $this->getBackUrl() ?>" class="left">« <?php echo $this->__('Back') ?></a>
|
168 |
-
<button class="form-button" type="submit"><span><?php echo $this->__('Save Address') ?></span></button>
|
169 |
-
</div>
|
170 |
-
</form>
|
171 |
-
<script type="text/javascript">
|
172 |
-
var dataForm = new VarienForm('form-validate', true);
|
173 |
-
new RegionUpdater('country', 'region', 'region_id', <?php echo $this->helper('directory')->getRegionJson() ?>);
|
174 |
-
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -1,10 +1,10 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<config>
|
3 |
<modules>
|
4 |
-
<
|
5 |
<active>true</active>
|
6 |
<codePool>local</codePool>
|
7 |
-
<version>
|
8 |
-
</
|
9 |
</modules>
|
10 |
</config>
|
1 |
<?xml version="1.0"?>
|
2 |
<config>
|
3 |
<modules>
|
4 |
+
<CraftyClicks>
|
5 |
<active>true</active>
|
6 |
<codePool>local</codePool>
|
7 |
+
<version>2.0</version>
|
8 |
+
</CraftyClicks>
|
9 |
</modules>
|
10 |
</config>
|
@@ -1,18 +0,0 @@
|
|
1 |
-
// Compression by ScriptingMagic.com
|
2 |
-
/********************************************************************************
|
3 |
-
// This is a collection of JavaScript code to allow easy integration of
|
4 |
-
// postcode lookup functionality into any website
|
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.
|
12 |
-
//
|
13 |
-
// To integrate UK postcode lookup on your website, please visit www.craftyclicks.co.uk for
|
14 |
-
// details of how to sign up for an account.
|
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})());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// Compression by ScriptingMagic.com
|
2 |
+
/********************************************************************************
|
3 |
+
// This is a collection of JavaScript code to allow easy integration of
|
4 |
+
// postcode lookup functionality into any website
|
5 |
+
//
|
6 |
+
// Provided by www.CraftyClicks.co.uk
|
7 |
+
//
|
8 |
+
// Version - 4.2.1 (28/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.
|
12 |
+
//
|
13 |
+
// To integrate UK postcode lookup on your website, please visit www.craftyclicks.co.uk for
|
14 |
+
// details of how to sign up for an account.
|
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��6��reate(6++;�=new�O��.obj6=6;�}��FLAT�SHOP�UNIT�BLOCK�STALL�SUITE�APARTMENT�MAISONETTE�HOUSE NUMBER��8�ip_prefix�Mc�c<�;c++b=�[c];b=��(0,b).toUpp�Ca()�9�(b)�}(��8extract_�_n�K�ML(b�.s�ft()!isNaN(�b))(�b)�}} �(e!ee=window.ev}�cc=��Hcc=�H}}cc==13on�(�}�O�={�J_url�pcls1.crafty�s.co.uk/js/getAddsListByP.php�access_token��tradit�al_��B�:p_busy.gif��3�Borg�1,��1,��0,addr�0,�2:� �msg1�Pqa wait �L we find the ��%1�5��A2�5 is not valid� try again�A3�Unabq to connect to � �J rv��.�%4�An unexpected �ror occured�.�_autoqct:1,�:1,�#�B�:10000,form��eqms����400px���B�_����1���ready:�,��:�,�:�,pre_populate_common_�_parts�Beqm_�0��0��_num���1��1��2��2��3��3���������p:in_out_p��:in_��%5�The � n�//n�K�.};xmlhttp�� ��_arr�� 6�cc������obj_n�/��_arch�t�,b�[a]=b};��ed�cc++;��(a)�7�3&&((2>=�&&1<cc)||(2<�))�(��cc=0}}};����-0=�0a--}}a=�_arr[a][in�x]�(� [a]�����(a�1}��zb��c=�2;�i�i<8;i++i]=get_eqm(i�0]0a[org]}d��/2����/1]d+=c}d+��/1�e��K�7]7d;�=e�=c}�=e;d�e=}f�[�1�g�[�2�egg=e�gff=e�ff=e}}}h=g+(g==?:(f=`)+f;j=�!�_�p�k=�!��h&&�h)==hjj�Cjk�Ck}h�f=}l=j+(j=`+k;m=�;�&&3]#||!=d�:�d}�@f�g�f�h�h�l}�hj�k�4�j�k���@�f�4���g�f;�j��kh<l�h�j�k��l}}}}}���:�m�=hlg��h���h�l�h&&!=d�d�ll�d�h(d+h)<(h+l)��Gh�l�d��}}}}�n;1]n=1]2]n=2]n=3]}}#n�=#+c+ln�=�G�}}}4]4�!�]}5]5�!�]}1};show_busy=(za�img��Fsrc�6���Ftitq�6msg1��(a�;�_�r�,bzc�azd�0001�1~0002�2~9001�3�;�fault:�(+a+)�+%4�}�#ze�8000�No Access Token�%1� Format�%2��%3�Out of Credits��}d+=e+ :: DBG ::�+b}c=�d��(c�d�};�_%�zb�ab=�a��(b�a�};�lay_��,bzc=�(���!=c�c@d)�e�qct�e.i��;�I���ed���Ikeyps=�;�7��Ichange����e.styq.width=�;f=� 6;�-f++}�N�/==Microsoft Int�net Explor�)&&(parFloat�V�s�)<=4)�0f>=����f}}e@d��(e�};���cqarTimeout(��try{�zb=�(�1�b.hasC�ldNo�s()�L�b.removeC�ld��}�=�a=�xa0�b@a�}catch(�}};�,=(szl�r=s-1;�L(l<s&&s[l�El++}�L(r>l&&s[r�Er-=1}s�ing(l,r+1�;cp_uc�PC�&UK�&EU=��9�b=ABCDEFGHIJKLMNOPQRSTUVWXYZ;c��1;e��f�f<a;f++-1!=b.in�xOf()d||e�;�0�.toLow�Ca(��;f+2>�&&'=�D(�)�Nf+3<��;1e=1�)==�;1-�-�N(-1!=�&&f+3>=�)||f+3>��;0e��1�f+2<a&&0<=&&9>�D�1}}}}}}}(c�;qading_caps�,b�7b||2>a�9�c��a.split(���e�e<d;e++zf=�,(d[e]�fc��}�t�",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)entb[crafty_ er your adds manually!=return ostcode==sea[pobox]err_msg_idx.appendChild(=?:c)le;break;ca 2localityupdate_;3lookup_timeoutTextNode(null,eqm_qctedstreet1 could not be found, pqa try againdocum.getEqmById_lineult__cp_prefix_liston_errorparInt();=(a_upperca:=0;ion,.value:out_:e= :: =;=a[houn=Funct�(s[+obj6+]._Attribute_p_lookup_�opt�+obj6==clo6=a.indexOf(d=Eqm(opt��d@�a)�)};populate_form_fields=new Array(county CraftyPCdedispclickd=firsthimax�s_qct_on_change jk�j�k};h+(h=`+lstr(navigator.app:er�Invalid Token�switch(aca�];=�;_cp__key_psc=c+e.size=;a.t�No�(b�busy_img_urls[6]arch_�ing, pqa;breakd&&!1]&&2](�In�x�max_width:�%config(b.�C�ld+�+.sub�=Eqm(addsclo6e.keyCo�for(houon_�town�g�f���(�arr��[�bug_mo��~800==a||�_trim�_�amecompany�eqm_id}�limit���_ult���T�s p�b�=0!= _cp_(a#�#e��7]�+=lg or�%:0,=�h)�=�0]==�b=�(=ad+(�`+e.w�che.onlookupumb�w�q(azb���f+1��lass(".split(""))[b--]);var r=a;a="s.cp_uc(f��(cY;L�aRa�a��a��a@�a�a��a���(aY;�a,b%a�>b��a�<b�Ya�>b��a�<b�Yc;��a%c�a�,a�)�c=aYd;��b%d�b�,b�)�d=bY��c&&�d1�qc&&�d�c>d�c<d�}eBa1�1�eBa2�2�e=a�+a�;f=b�+b�;�a>b�a<bY�(1Y;�%=.sort(��a=���;ParrR�0�c=[b];d=c�c���c���c@�@c��? :)+c���c���G+(GJ+(J�;eRe�in�x=b;e�str=d;�=e}q�%��,-1Y�0����str,bYp�_popul�e_common_add�ss_parts�f=L(�f�;f���;f���;f@�@;f�;f���;f���;�1�[b]�f%f`��f�%f�`��f�%f�`@�f@%f@`�f%f`��f�%f�`��f�%f�=}}�f�;�a�b�c=�;q��d=�.split(,�b=d[a]�a%c 0#company;1�1;2�2;3�3;4#�;5#~y;6:�#�;7#h�e_num;8#search_string;�}}qb%q�m%c��ms[�m].�[b]Q%c=Q(b�}�(cY;doH�eSearch�a=�(8�a&&0<�X%�=1}�(Y;�%xml�=�;a=�(6�b=�;a%show_busy(��=setTimeout(��_�r(),��b=�(�Y��b%�(b��0002,in� � �m��;�a�b�do{b=a;a=a.�place(/[^A-Za-z0-9]/,Ywhile(b�a�b=a.toUpp�C(�7>=bX&&5<=bX�c�bX-3,bX�d�0,bX-3�true==/[CIKMOV]/.test(c)%��}�0<W09>W0A<W1Z>W1A<W2Z>W2)%�dX%c 2���1)bY3�)%��������1A�2Z�2)b�}}4��%�0�39�3)�A�3Z�3)b�}�;�:�}}}��};�a%try{b=Q(�sult_�m_id�c���s:=�loc�ion.protocol%c=�s://c=�://}c+=lookup_url+?�=+a+�=���_id=0;q�%c+=&key=+�}cs�c��eElem(��cs.src=c;cs.type=text/java�;b.appendChild(csYc�ch(�%�1206,��;�a,b,c%!b�d�r_co�;e��;�7001�d%0�eX%�Demo � �ached, ple use one of: +e��Sorry. Demo usage has a daily �.Y�8001�d%�d,In� Token Form�. +e��d,s�v� �ror co���%c=filt�_d�a_by_h�e_name(c��==c%���5��turn}}R�s_JR��,���J�JGdouble_�J�%~y���~ypostal_~y�Y=0;�(f=1;f<=c�~;f++�g=��;q�N%g�N}ggh=���;q��N%h��N}hh�(j=1;j<=��liv�y_point_~;j++�k=L(�k�=g;k�=h;l=c[f][j];k=l���;k�l�sub_��k�l���k=l��partm_�;qk&&��%k+=���}kk+�,org��k@l�po_box_�[]=k;++}}%�&&1==%upd�e_�s(���[0]��(�0��s_autos�ct%q�%�1��0�Q(crafty_�_l",b=0,d=0,c=[],f="�P#%@GJPQBRWXY`q~�N�����������������������������������������������������������������LG��������������������";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:)+ent:b=elem_){[pobox_res_linelocalitydisp_docum.getElemById=_cp_strip_prefix(=new Array();=c.charAt(.length)}=}[b]!=count-1);!isNaN(descriptor<ousrec[f][=_cp_extract_h�e_number(Array(>_idxdepend_=;_cp_instances[+obj_idx+.erlookup_timeout12�turn e>f1Ye<fY=[0]namefornullpostcodeh�e_search�10�29�2)populate_�m_fields();:A�0Z�0_upp�cele[;b<;b++%building_handle_js_�sponser_msgdi�ct_xml_fetchl�organisation_�=docum.�e))%e=eYfBb!=traditional_~yget_�mfirstGaccess_token��c���)+(c=b.substring(limittownvalidde�s_s�cted(==#st�et�f))%f=fY�displayG(1Y%P�r(Y}athttpdoLookupnewGJ_�p&callback_compa�0�19�(b=��e_pc+= +�P�s_arrParr[b]a.valueswitch(scriptb��,~y�=c��roA�1Z�P��(b�aknumb��ms�fault".split(""))[b--]);r+=a;a="ookup_J_op+obj_idx).focus(L!=c:m/6);m&=c}:(L}else%1205,no J to displayL}};filtN_data_by_house_nameGa:b/8);!b||!b&.length:a}c=b&.toUppNCase()Md=-1;c)==c:d=cLe=+cMfMg=1MAj=1;j<3D;j++S];Ak=1;k<=a[j;k++:l[k]Mm=7++;-1!=m.indexOf(e)||d==l):h++h]474744#4#B4B}}hS=hQFRFQRQFRFQR;g++}}1<g:fD=g-1@K3K@3@E3E@H3H@P3P;f=a;f}null};_NrG)%9001,IntNnal Timeout aftN +config.+msL}",b=0,d=0,c=[],f="�#%&/347:@ABDEFGHJKLMNPQRS";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(tradiresulttown])};erpost+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>
|
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,8 +17,10 @@ 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
|
21 |
-
*
|
|
|
|
|
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
|
@@ -74,9 +76,9 @@ v 1.1.0
|
|
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-
|
78 |
-
<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="
|
80 |
<compatible/>
|
81 |
<dependencies/>
|
82 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>UK_Postcode_Address_Finder</name>
|
4 |
+
<version>2.0</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 2.0
|
21 |
+
* big re-design for compatibility with Magento 1.4
|
22 |
+
* added ability to search by house name/number + postcode (previous versions can search by postcode only)
|
23 |
+
* pressing enter key in the postcode input field does a search
|
24 |
|
25 |
v 1.6.2
|
26 |
* fix for Internet Explorer in admin panel -> new customer page; the add address button didn't always work
|
76 |
|
77 |
v 1.0.0 - Initial Release</notes>
|
78 |
<authors><author><name>Adam Stylo</name><user>auto-converted</user><email>adam@craftyclicks.co.uk</email></author></authors>
|
79 |
+
<date>2010-03-18</date>
|
80 |
+
<time>00:24:44</time>
|
81 |
+
<contents><target name="mage"><dir name="app"><dir name="code"><dir name="local"><dir name="CraftyClicks"><dir name="etc"><file name="config.xml" hash="16c65f2c5e6525f07052f1c7c79e2c60"/><file name="system.xml" hash="f5d435f1234d3c3c79691321516491e6"/></dir><dir name="Helper"><file name="Data.php" hash="e5f75947ad629aabb2e3cbcde412e2cc"/></dir></dir></dir></dir><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="20ca00a61ed999808e3535b53cdd2eba"/></dir></dir><dir name="sales"><dir name="order"><dir name="create"><dir name="form"><file name="address.phtml" hash="d55fddaedd5e9ce0d252356eb9bd648c"/></dir></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="craftyclicks.xml" hash="e316c4190d7de4ad9e18e08623eb0755"/></dir><dir name="template"><dir name="craftyclicks"><file name="address_form.phtml" hash="fcb3cc2696ac5b98c9ba7a2e87d908ae"/><file name="checkout_onepage.phtml" hash="a083c7d757e759520543e1d13e86191c"/><file name="crafty_template_helper.php" hash="aba83ac7ca740f54309c557a1c48f1fe"/><dir name="checkout"><dir name="onepage"><file name="billing.phtml" hash="f5764ce136d5c59c8dee4b772e343f7d"/><file name="shipping.phtml" hash="6d928d49d5608e68e36781ed8575170e"/></dir></dir><dir name="customer"><dir name="address"><file name="edit.phtml" hash="6ffbcc7ce669179ad403b8b55b3057d0"/></dir></dir></dir></dir></dir></dir></dir></dir><dir name="etc"><dir name="modules"><file name="CraftyClicks.xml" hash="4f441928b287078df88e7d7fcac6dc0b"/></dir></dir></dir><dir name="skin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="images"><dir name="craftyclicks"><file name="button_find_address.gif" hash="0fdef9bf7ad0f7ec3f6530b7ff40bf59"/><file name="crafty_postcode_busy.gif" hash="618a14f4dca4f51100cd2400e7f9049c"/></dir></dir></dir></dir></dir></dir></target><target name="mageweb"><dir name="js"><dir name="craftyclicks"><file name="crafty_postcode.class.js" hash="1776dd76248ac469632f0304e866aabe"/></dir></dir></target></contents>
|
82 |
<compatible/>
|
83 |
<dependencies/>
|
84 |
</package>
|
File without changes
|
File without changes
|