Version Notes
Fixes:
- Support more MageStore OneStepCheckout versions
- Support newest IWD One Step Checkout version
- Corrected some checkout extension detection
- Editing roles/rights in admin would fail
Added provisional support for the following checkout modules:
- MAGExtentended MasterCheckout
Features:
- If error message mentions 'use manual', manual checkbox is toggled automatically
- Tweaked compatibility with Magento 1.9
Download this release
Release Info
| Developer | Postcode.nl Technical Support |
| Extension | PostcodeNl_Api |
| Version | 1.1.1.0 |
| Comparing to | |
| See all releases | |
Code changes from version 1.1.0.0 to 1.1.1.0
- app/code/community/PostcodeNl/Api/Helper/Data.php +2 -0
- app/code/community/PostcodeNl/Api/etc/adminhtml.xml +1 -1
- app/code/community/PostcodeNl/Api/etc/config.xml +1 -1
- app/design/frontend/base/default/layout/postcodenl/api/lookup.xml +30 -0
- app/design/frontend/default/default/layout/postcodenl/api/lookup.xml +30 -0
- js/postcodenl/api/lookup.js +58 -12
- package.xml +11 -14
- skin/frontend/base/default/postcodenl/api/css/lookup.css +11 -0
- skin/frontend/default/default/postcodenl/api/css/lookup.css +6 -0
app/code/community/PostcodeNl/Api/Helper/Data.php
CHANGED
|
@@ -225,6 +225,7 @@ class PostcodeNl_Api_Helper_Data extends Mage_Core_Helper_Abstract
|
|
| 225 |
default:
|
| 226 |
$sendResponse['message'] = $this->__('Validation error, please use manual input.');
|
| 227 |
$sendResponse['messageTarget'] = 'housenumber';
|
|
|
|
| 228 |
break;
|
| 229 |
}
|
| 230 |
}
|
|
@@ -236,6 +237,7 @@ class PostcodeNl_Api_Helper_Data extends Mage_Core_Helper_Abstract
|
|
| 236 |
{
|
| 237 |
$sendResponse['message'] = $this->__('Validation unavailable, please use manual input.');
|
| 238 |
$sendResponse['messageTarget'] = 'housenumber';
|
|
|
|
| 239 |
}
|
| 240 |
return $sendResponse;
|
| 241 |
}
|
| 225 |
default:
|
| 226 |
$sendResponse['message'] = $this->__('Validation error, please use manual input.');
|
| 227 |
$sendResponse['messageTarget'] = 'housenumber';
|
| 228 |
+
$sendResponse['useManual'] = true;
|
| 229 |
break;
|
| 230 |
}
|
| 231 |
}
|
| 237 |
{
|
| 238 |
$sendResponse['message'] = $this->__('Validation unavailable, please use manual input.');
|
| 239 |
$sendResponse['messageTarget'] = 'housenumber';
|
| 240 |
+
$sendResponse['useManual'] = true;
|
| 241 |
}
|
| 242 |
return $sendResponse;
|
| 243 |
}
|
app/code/community/PostcodeNl/Api/etc/adminhtml.xml
CHANGED
|
@@ -11,7 +11,7 @@
|
|
| 11 |
<children>
|
| 12 |
<config>
|
| 13 |
<children>
|
| 14 |
-
<postcodenl_api module="
|
| 15 |
<title>Postcode.nl API</title>
|
| 16 |
</postcodenl_api>
|
| 17 |
</children>
|
| 11 |
<children>
|
| 12 |
<config>
|
| 13 |
<children>
|
| 14 |
+
<postcodenl_api module="postcodenl_api">
|
| 15 |
<title>Postcode.nl API</title>
|
| 16 |
</postcodenl_api>
|
| 17 |
</children>
|
app/code/community/PostcodeNl/Api/etc/config.xml
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
<config>
|
| 3 |
<modules>
|
| 4 |
<PostcodeNl_Api>
|
| 5 |
-
<version>1.1.
|
| 6 |
</PostcodeNl_Api>
|
| 7 |
</modules>
|
| 8 |
<frontend>
|
| 2 |
<config>
|
| 3 |
<modules>
|
| 4 |
<PostcodeNl_Api>
|
| 5 |
+
<version>1.1.1.0</version>
|
| 6 |
</PostcodeNl_Api>
|
| 7 |
</modules>
|
| 8 |
<frontend>
|
app/design/frontend/base/default/layout/postcodenl/api/lookup.xml
CHANGED
|
@@ -66,6 +66,16 @@
|
|
| 66 |
<block type="postcodenl_api/jsinit" name="postcodenl.jsinit" template="postcodenl/api/jsinit.phtml" />
|
| 67 |
</reference>
|
| 68 |
</onestepcheckout_index_index>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 69 |
<!-- For `GoMage LightCheckout` -->
|
| 70 |
<gomage_checkout_onepage_index>
|
| 71 |
<reference name="head">
|
|
@@ -116,6 +126,16 @@
|
|
| 116 |
<block type="postcodenl_api/jsinit" name="postcodenl.jsinit" template="postcodenl/api/jsinit.phtml" />
|
| 117 |
</reference>
|
| 118 |
</onepagecheckout_index_index>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 119 |
<!-- For `AheadWorks One Step Checkout` -->
|
| 120 |
<aw_onestepcheckout_index_index>
|
| 121 |
<reference name="head">
|
|
@@ -136,4 +156,14 @@
|
|
| 136 |
<block type="postcodenl_api/jsinit" name="postcodenl.jsinit" template="postcodenl/api/jsinit.phtml" />
|
| 137 |
</reference>
|
| 138 |
</aitcheckout_checkout_index>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 139 |
</layout>
|
| 66 |
<block type="postcodenl_api/jsinit" name="postcodenl.jsinit" template="postcodenl/api/jsinit.phtml" />
|
| 67 |
</reference>
|
| 68 |
</onestepcheckout_index_index>
|
| 69 |
+
<!-- Used for older versions of `MageStore One Step Checkout` -->
|
| 70 |
+
<onestepquickcheckout_index_index>
|
| 71 |
+
<reference name="head">
|
| 72 |
+
<action method="addCss" ifconfig="postcodenl_api/config/enabled"><script>postcodenl/api/css/lookup.css</script></action>
|
| 73 |
+
<action method="addJs" ifconfig="postcodenl_api/config/enabled"><script>postcodenl/api/lookup.js</script></action>
|
| 74 |
+
</reference>
|
| 75 |
+
<reference name="content">
|
| 76 |
+
<block type="postcodenl_api/jsinit" name="postcodenl.jsinit" template="postcodenl/api/jsinit.phtml" />
|
| 77 |
+
</reference>
|
| 78 |
+
</onestepquickcheckout_index_index>
|
| 79 |
<!-- For `GoMage LightCheckout` -->
|
| 80 |
<gomage_checkout_onepage_index>
|
| 81 |
<reference name="head">
|
| 126 |
<block type="postcodenl_api/jsinit" name="postcodenl.jsinit" template="postcodenl/api/jsinit.phtml" />
|
| 127 |
</reference>
|
| 128 |
</onepagecheckout_index_index>
|
| 129 |
+
<!-- For `IWD Free One Page / Step Checkout v3+` -->
|
| 130 |
+
<opc_index_index>
|
| 131 |
+
<reference name="head">
|
| 132 |
+
<action method="addCss" ifconfig="postcodenl_api/config/enabled"><script>postcodenl/api/css/lookup.css</script></action>
|
| 133 |
+
<action method="addJs" ifconfig="postcodenl_api/config/enabled"><script>postcodenl/api/lookup.js</script></action>
|
| 134 |
+
</reference>
|
| 135 |
+
<reference name="content">
|
| 136 |
+
<block type="postcodenl_api/jsinit" name="postcodenl.jsinit" template="postcodenl/api/jsinit.phtml" />
|
| 137 |
+
</reference>
|
| 138 |
+
</opc_index_index>
|
| 139 |
<!-- For `AheadWorks One Step Checkout` -->
|
| 140 |
<aw_onestepcheckout_index_index>
|
| 141 |
<reference name="head">
|
| 156 |
<block type="postcodenl_api/jsinit" name="postcodenl.jsinit" template="postcodenl/api/jsinit.phtml" />
|
| 157 |
</reference>
|
| 158 |
</aitcheckout_checkout_index>
|
| 159 |
+
<!-- For `MAGExtended Master Checkout` -->
|
| 160 |
+
<mastercheckout_index_index>
|
| 161 |
+
<reference name="head">
|
| 162 |
+
<action method="addCss" ifconfig="postcodenl_api/config/enabled"><script>postcodenl/api/css/lookup.css</script></action>
|
| 163 |
+
<action method="addJs" ifconfig="postcodenl_api/config/enabled"><script>postcodenl/api/lookup.js</script></action>
|
| 164 |
+
</reference>
|
| 165 |
+
<reference name="content">
|
| 166 |
+
<block type="postcodenl_api/jsinit" name="postcodenl.jsinit" template="postcodenl/api/jsinit.phtml" />
|
| 167 |
+
</reference>
|
| 168 |
+
</mastercheckout_index_index>
|
| 169 |
</layout>
|
app/design/frontend/default/default/layout/postcodenl/api/lookup.xml
CHANGED
|
@@ -66,6 +66,16 @@
|
|
| 66 |
<block type="postcodenl_api/jsinit" name="postcodenl.jsinit" template="postcodenl/api/jsinit.phtml" />
|
| 67 |
</reference>
|
| 68 |
</onestepcheckout_index_index>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 69 |
<!-- For `GoMage LightCheckout` -->
|
| 70 |
<gomage_checkout_onepage_index>
|
| 71 |
<reference name="head">
|
|
@@ -116,6 +126,16 @@
|
|
| 116 |
<block type="postcodenl_api/jsinit" name="postcodenl.jsinit" template="postcodenl/api/jsinit.phtml" />
|
| 117 |
</reference>
|
| 118 |
</onepagecheckout_index_index>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 119 |
<!-- For `AheadWorks One Step Checkout` -->
|
| 120 |
<aw_onestepcheckout_index_index>
|
| 121 |
<reference name="head">
|
|
@@ -136,4 +156,14 @@
|
|
| 136 |
<block type="postcodenl_api/jsinit" name="postcodenl.jsinit" template="postcodenl/api/jsinit.phtml" />
|
| 137 |
</reference>
|
| 138 |
</aitcheckout_checkout_index>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 139 |
</layout>
|
| 66 |
<block type="postcodenl_api/jsinit" name="postcodenl.jsinit" template="postcodenl/api/jsinit.phtml" />
|
| 67 |
</reference>
|
| 68 |
</onestepcheckout_index_index>
|
| 69 |
+
<!-- Used for older versions of `MageStore One Step Checkout` -->
|
| 70 |
+
<onestepquickcheckout_index_index>
|
| 71 |
+
<reference name="head">
|
| 72 |
+
<action method="addCss" ifconfig="postcodenl_api/config/enabled"><script>postcodenl/api/css/lookup.css</script></action>
|
| 73 |
+
<action method="addJs" ifconfig="postcodenl_api/config/enabled"><script>postcodenl/api/lookup.js</script></action>
|
| 74 |
+
</reference>
|
| 75 |
+
<reference name="content">
|
| 76 |
+
<block type="postcodenl_api/jsinit" name="postcodenl.jsinit" template="postcodenl/api/jsinit.phtml" />
|
| 77 |
+
</reference>
|
| 78 |
+
</onestepquickcheckout_index_index>
|
| 79 |
<!-- For `GoMage LightCheckout` -->
|
| 80 |
<gomage_checkout_onepage_index>
|
| 81 |
<reference name="head">
|
| 126 |
<block type="postcodenl_api/jsinit" name="postcodenl.jsinit" template="postcodenl/api/jsinit.phtml" />
|
| 127 |
</reference>
|
| 128 |
</onepagecheckout_index_index>
|
| 129 |
+
<!-- For `IWD Free One Page / Step Checkout v3+` -->
|
| 130 |
+
<opc_index_index>
|
| 131 |
+
<reference name="head">
|
| 132 |
+
<action method="addCss" ifconfig="postcodenl_api/config/enabled"><script>postcodenl/api/css/lookup.css</script></action>
|
| 133 |
+
<action method="addJs" ifconfig="postcodenl_api/config/enabled"><script>postcodenl/api/lookup.js</script></action>
|
| 134 |
+
</reference>
|
| 135 |
+
<reference name="content">
|
| 136 |
+
<block type="postcodenl_api/jsinit" name="postcodenl.jsinit" template="postcodenl/api/jsinit.phtml" />
|
| 137 |
+
</reference>
|
| 138 |
+
</opc_index_index>
|
| 139 |
<!-- For `AheadWorks One Step Checkout` -->
|
| 140 |
<aw_onestepcheckout_index_index>
|
| 141 |
<reference name="head">
|
| 156 |
<block type="postcodenl_api/jsinit" name="postcodenl.jsinit" template="postcodenl/api/jsinit.phtml" />
|
| 157 |
</reference>
|
| 158 |
</aitcheckout_checkout_index>
|
| 159 |
+
<!-- For `MAGExtended Master Checkout` -->
|
| 160 |
+
<mastercheckout_index_index>
|
| 161 |
+
<reference name="head">
|
| 162 |
+
<action method="addCss" ifconfig="postcodenl_api/config/enabled"><script>postcodenl/api/css/lookup.css</script></action>
|
| 163 |
+
<action method="addJs" ifconfig="postcodenl_api/config/enabled"><script>postcodenl/api/lookup.js</script></action>
|
| 164 |
+
</reference>
|
| 165 |
+
<reference name="content">
|
| 166 |
+
<block type="postcodenl_api/jsinit" name="postcodenl.jsinit" template="postcodenl/api/jsinit.phtml" />
|
| 167 |
+
</reference>
|
| 168 |
+
</mastercheckout_index_index>
|
| 169 |
</layout>
|
js/postcodenl/api/lookup.js
CHANGED
|
@@ -48,6 +48,11 @@ document.observe("dom:loaded", PCNL_START_FUNCTION = function()
|
|
| 48 |
*/
|
| 49 |
parentElementType: 'li',
|
| 50 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
/**
|
| 52 |
* Hide multiple field-rows in forms
|
| 53 |
*/
|
|
@@ -323,6 +328,9 @@ document.observe("dom:loaded", PCNL_START_FUNCTION = function()
|
|
| 323 |
|
| 324 |
if (data.debugInfo !== undefined)
|
| 325 |
{
|
|
|
|
|
|
|
|
|
|
| 326 |
// It could be that we have no debug info, even if it is switched on
|
| 327 |
var info = this.getFieldListHtml(data.debugInfo, 'pcnl-debug');
|
| 328 |
|
|
@@ -430,6 +438,9 @@ document.observe("dom:loaded", PCNL_START_FUNCTION = function()
|
|
| 430 |
else if (data.message !== undefined)
|
| 431 |
{
|
| 432 |
// Address check returned an error
|
|
|
|
|
|
|
|
|
|
| 433 |
|
| 434 |
newAdvice = Validation.createAdvice('invalid-postcode', $(prefix + (data.messageTarget == 'postcode' ? 'postcode_input' : 'postcode_housenumber')), false, data.message);
|
| 435 |
Validation.showAdvice($(prefix +'postcode_housenumber'), newAdvice, 'invalid-postcode');
|
|
@@ -483,6 +494,7 @@ document.observe("dom:loaded", PCNL_START_FUNCTION = function()
|
|
| 483 |
if ($$('table.form-list').length > 0 && $(prefix + postcodeFieldId).parentNode.tagName == 'TD')
|
| 484 |
{
|
| 485 |
// We're probably in the admin, slightly different logic than the frontend checkout forms
|
|
|
|
| 486 |
|
| 487 |
this.parentElementType = 'tr';
|
| 488 |
|
|
@@ -493,6 +505,7 @@ document.observe("dom:loaded", PCNL_START_FUNCTION = function()
|
|
| 493 |
else if ($(document.body).hasClassName('onestepcheckout-index-index') && $('onestepcheckout-form'))
|
| 494 |
{
|
| 495 |
// Support for OneStepCheckout.com extension
|
|
|
|
| 496 |
|
| 497 |
if (!$(prefix +'postcode_input:info'))
|
| 498 |
{
|
|
@@ -509,6 +522,7 @@ document.observe("dom:loaded", PCNL_START_FUNCTION = function()
|
|
| 509 |
else if ($(document.body).hasClassName('onestepcheckout-index-index') && $('co-form'))
|
| 510 |
{
|
| 511 |
// Support for Apptha One Step Checkout extension
|
|
|
|
| 512 |
|
| 513 |
if (!$(prefix +'postcode_input:info'))
|
| 514 |
{
|
|
@@ -558,17 +572,18 @@ document.observe("dom:loaded", PCNL_START_FUNCTION = function()
|
|
| 558 |
'</li>'
|
| 559 |
});
|
| 560 |
}
|
| 561 |
-
else if ($(document.body).hasClassName('onestepcheckout-index-index') && $('one-step-checkout-form'))
|
| 562 |
{
|
| 563 |
// Support for MageStore One Step Checkout extension
|
|
|
|
| 564 |
|
| 565 |
if (!$(prefix +'postcode_input:info'))
|
| 566 |
{
|
| 567 |
$(prefix + street1).up('li').insert({before: '<li id="' + prefix + 'postcode_input:info" class="wide"><label class="pcnl-info-label">'+ PCNLAPI_CONFIG.translations.infoLabel +'</label><div class="pcnl-info-text" id="' + prefix + 'postcode_input:info-text">'+ PCNLAPI_CONFIG.translations.infoText +'</div></li>'});
|
| 568 |
}
|
| 569 |
-
$(prefix + street1).up('li').insert({before: '<li id="' + prefix + 'postcode_input:wrapper"
|
| 570 |
'<input type="text" title="'+ PCNLAPI_CONFIG.translations.postcodeInputTitle +'" id="' + prefix + 'postcode_input" value="" class="input-text required-entry" /></div>'+
|
| 571 |
-
'<div class="
|
| 572 |
|
| 573 |
if (!$(prefix +'postcode_input:checkbox'))
|
| 574 |
{
|
|
@@ -580,6 +595,7 @@ document.observe("dom:loaded", PCNL_START_FUNCTION = function()
|
|
| 580 |
else if ($(document.body).hasClassName('gomage-checkout-onepage-index'))
|
| 581 |
{
|
| 582 |
// Support for GoMage LightCheckout extension
|
|
|
|
| 583 |
|
| 584 |
if (!$(prefix +'postcode_input:info'))
|
| 585 |
{
|
|
@@ -596,6 +612,7 @@ document.observe("dom:loaded", PCNL_START_FUNCTION = function()
|
|
| 596 |
else if ($(document.body).hasClassName('checkout-onepage-index') && $('mw-osc-column-container'))
|
| 597 |
{
|
| 598 |
// Support for MageWorld One Step Checkout Pro
|
|
|
|
| 599 |
|
| 600 |
if (!$(prefix +'postcode_input:info'))
|
| 601 |
{
|
|
@@ -648,6 +665,7 @@ document.observe("dom:loaded", PCNL_START_FUNCTION = function()
|
|
| 648 |
else if ($(document.body).hasClassName('aw-onestepcheckout-index-index'))
|
| 649 |
{
|
| 650 |
// Support for AheadWorks One Step Checkout
|
|
|
|
| 651 |
|
| 652 |
this.parentElementType = 'div.aw-onestepcheckout-general-form-field';
|
| 653 |
|
|
@@ -705,6 +723,7 @@ document.observe("dom:loaded", PCNL_START_FUNCTION = function()
|
|
| 705 |
else if ($(document.body).hasClassName('checkout-onepage-index') && $('j2t-onecheckout-main'))
|
| 706 |
{
|
| 707 |
// Support for J2T OneCheckout
|
|
|
|
| 708 |
|
| 709 |
if (!$(prefix +'postcode_input:info'))
|
| 710 |
{
|
|
@@ -722,6 +741,7 @@ document.observe("dom:loaded", PCNL_START_FUNCTION = function()
|
|
| 722 |
else if ($(document.body).hasClassName('aitcheckout-checkout-index'))
|
| 723 |
{
|
| 724 |
// Support for Aitoc One Step Checkout Manager
|
|
|
|
| 725 |
|
| 726 |
if (!$(prefix +'postcode_input:info'))
|
| 727 |
{
|
|
@@ -736,9 +756,10 @@ document.observe("dom:loaded", PCNL_START_FUNCTION = function()
|
|
| 736 |
}
|
| 737 |
$(prefix + street1).up('li').insert({before: '<li id="' + prefix + 'postcode_input:output" class="pcnl-hidden-field"><div><label>'+ PCNLAPI_CONFIG.translations.outputLabel +'</label><div id="' + prefix + 'postcode_output" class="pcnl-address-text"></div></div></li>'});
|
| 738 |
}
|
| 739 |
-
else if ($(document.body).hasClassName('checkout-onepage-index') && $('
|
| 740 |
{
|
| 741 |
// Support for Magento Templates - OnePage Magento Checkout
|
|
|
|
| 742 |
|
| 743 |
if (!$(prefix +'postcode_input:info'))
|
| 744 |
{
|
|
@@ -753,15 +774,16 @@ document.observe("dom:loaded", PCNL_START_FUNCTION = function()
|
|
| 753 |
}
|
| 754 |
$(prefix + 'country_id').up('li').insert({before: '<li id="' + prefix + 'postcode_input:output" class="pcnl-hidden-field"><div><label>'+ PCNLAPI_CONFIG.translations.outputLabel +'</label><div id="' + prefix + 'postcode_output" class="pcnl-address-text"></div></div></li>'});
|
| 755 |
}
|
| 756 |
-
else if ($(document.body).hasClassName('checkout-onepage-index'))
|
| 757 |
{
|
| 758 |
// Support for EcommerceTeam Easy Checkout 2
|
|
|
|
| 759 |
|
| 760 |
if (!$(prefix +'postcode_input:info'))
|
| 761 |
{
|
| 762 |
$(prefix + 'country_id').up('li').insert({before: '<li id="' + prefix + 'postcode_input:info" class="pcnl-info"><div><label class="pcnl-info-label">'+ PCNLAPI_CONFIG.translations.infoLabel +'</label><div class="pcnl-info-text" id="' + prefix + 'postcode_input:info-text">'+ PCNLAPI_CONFIG.translations.infoText +'</div></div></li>'});
|
| 763 |
}
|
| 764 |
-
$(prefix +
|
| 765 |
if (!$(prefix +'postcode_input:checkbox'))
|
| 766 |
{
|
| 767 |
$(prefix + 'country_id').up('li').insert({before: '<li id="' + prefix + 'postcode_input:checkbox" class="pcnl-manual-checkbox"><div class="field"><label for="' + prefix + 'postcode_input_checkbox">'+ PCNLAPI_CONFIG.translations.manualInputText +'</label><input type="checkbox" title="'+ PCNLAPI_CONFIG.translations.postcodeInputTitle +'" id="' + prefix + 'postcode_input_checkbox" value="" class="checkbox " /></div></li>'});
|
|
@@ -772,6 +794,7 @@ document.observe("dom:loaded", PCNL_START_FUNCTION = function()
|
|
| 772 |
else if ($(document.body).hasClassName('checkout-onestep-index') && $('easycheckout-login-form'))
|
| 773 |
{
|
| 774 |
// GrafischDirect One Step Checkout
|
|
|
|
| 775 |
|
| 776 |
this.parentElementType = 'div.line';
|
| 777 |
|
|
@@ -790,6 +813,7 @@ document.observe("dom:loaded", PCNL_START_FUNCTION = function()
|
|
| 790 |
else if ($(document.body).hasClassName('checkout-onestep-index'))
|
| 791 |
{
|
| 792 |
// FME One Step Checkout
|
|
|
|
| 793 |
|
| 794 |
if (!$(prefix +'postcode_input:info'))
|
| 795 |
{
|
|
@@ -805,7 +829,8 @@ document.observe("dom:loaded", PCNL_START_FUNCTION = function()
|
|
| 805 |
}
|
| 806 |
else if ($(document.body).hasClassName('onepagecheckout-index-index'))
|
| 807 |
{
|
| 808 |
-
// IWD Free One Page / Step Checkout
|
|
|
|
| 809 |
|
| 810 |
this.parentElementType = 'div.full, div.two_fields, ul.pcnl-manual-checkbox';
|
| 811 |
|
|
@@ -837,20 +862,41 @@ document.observe("dom:loaded", PCNL_START_FUNCTION = function()
|
|
| 837 |
// Support for regular Magento 'one page' checkout
|
| 838 |
// + Fire Checkout
|
| 839 |
// + Quick One Page Checkout (by KAM)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 840 |
|
| 841 |
if (!$(prefix +'postcode_input:info'))
|
| 842 |
{
|
| 843 |
-
$(prefix + street1).up('li').insert({before: '<li id="' + prefix + 'postcode_input:info" class="wide
|
| 844 |
}
|
| 845 |
-
$(prefix + street1).up('li').insert({before: '<li id="' + prefix + 'postcode_input:wrapper" class="fields"><div class="field"><label for="' + prefix + 'postcode_input" class="required"
|
| 846 |
if (!$(prefix +'postcode_input:checkbox'))
|
| 847 |
{
|
| 848 |
-
$(prefix + street1).up('li').insert({before: '<li id="' + prefix + 'postcode_input:checkbox" class="wide"><div class="
|
| 849 |
-
|
|
|
|
| 850 |
}
|
| 851 |
-
$(prefix + street1).up('li').insert({before: '<li id="' + prefix + 'postcode_input:output" class="wide pcnl-hidden-field"><div
|
| 852 |
}
|
| 853 |
|
|
|
|
|
|
|
|
|
|
| 854 |
$(prefix +'postcode_input').observe('change', function(e) { pcnlapi.lookupPostcode(prefix, postcodeFieldId, countryFieldId, street1, street2, street3, street4, e); });
|
| 855 |
$(prefix +'postcode_housenumber').observe('change', function(e) { pcnlapi.lookupPostcode(prefix, postcodeFieldId, countryFieldId, street1, street2, street3, street4, e); });
|
| 856 |
}
|
| 48 |
*/
|
| 49 |
parentElementType: 'li',
|
| 50 |
|
| 51 |
+
/*
|
| 52 |
+
* Keep track of what kind of checkout/address page we are enriching
|
| 53 |
+
*/
|
| 54 |
+
enrichType: 'Unknown',
|
| 55 |
+
|
| 56 |
/**
|
| 57 |
* Hide multiple field-rows in forms
|
| 58 |
*/
|
| 328 |
|
| 329 |
if (data.debugInfo !== undefined)
|
| 330 |
{
|
| 331 |
+
// Add enrich type
|
| 332 |
+
data.debugInfo.enrichType = this.enrichType;
|
| 333 |
+
|
| 334 |
// It could be that we have no debug info, even if it is switched on
|
| 335 |
var info = this.getFieldListHtml(data.debugInfo, 'pcnl-debug');
|
| 336 |
|
| 438 |
else if (data.message !== undefined)
|
| 439 |
{
|
| 440 |
// Address check returned an error
|
| 441 |
+
if (typeof data.useManual !== 'undefined' && data.useManual === true) {
|
| 442 |
+
$(prefix + 'postcode_input_checkbox').click();
|
| 443 |
+
}
|
| 444 |
|
| 445 |
newAdvice = Validation.createAdvice('invalid-postcode', $(prefix + (data.messageTarget == 'postcode' ? 'postcode_input' : 'postcode_housenumber')), false, data.message);
|
| 446 |
Validation.showAdvice($(prefix +'postcode_housenumber'), newAdvice, 'invalid-postcode');
|
| 494 |
if ($$('table.form-list').length > 0 && $(prefix + postcodeFieldId).parentNode.tagName == 'TD')
|
| 495 |
{
|
| 496 |
// We're probably in the admin, slightly different logic than the frontend checkout forms
|
| 497 |
+
this.enrichType = 'Admin';
|
| 498 |
|
| 499 |
this.parentElementType = 'tr';
|
| 500 |
|
| 505 |
else if ($(document.body).hasClassName('onestepcheckout-index-index') && $('onestepcheckout-form'))
|
| 506 |
{
|
| 507 |
// Support for OneStepCheckout.com extension
|
| 508 |
+
this.enrichType = 'OneStepCheckout.com';
|
| 509 |
|
| 510 |
if (!$(prefix +'postcode_input:info'))
|
| 511 |
{
|
| 522 |
else if ($(document.body).hasClassName('onestepcheckout-index-index') && $('co-form'))
|
| 523 |
{
|
| 524 |
// Support for Apptha One Step Checkout extension
|
| 525 |
+
this.enrichType = 'Apptha One Step Checkout';
|
| 526 |
|
| 527 |
if (!$(prefix +'postcode_input:info'))
|
| 528 |
{
|
| 572 |
'</li>'
|
| 573 |
});
|
| 574 |
}
|
| 575 |
+
else if ($(document.body).hasClassName('onestepquickcheckout_index_index') || ($(document.body).hasClassName('onestepcheckout-index-index') && $('one-step-checkout-form')))
|
| 576 |
{
|
| 577 |
// Support for MageStore One Step Checkout extension
|
| 578 |
+
this.enrichType = 'MageStore One Step Checkout';
|
| 579 |
|
| 580 |
if (!$(prefix +'postcode_input:info'))
|
| 581 |
{
|
| 582 |
$(prefix + street1).up('li').insert({before: '<li id="' + prefix + 'postcode_input:info" class="wide"><label class="pcnl-info-label">'+ PCNLAPI_CONFIG.translations.infoLabel +'</label><div class="pcnl-info-text" id="' + prefix + 'postcode_input:info-text">'+ PCNLAPI_CONFIG.translations.infoText +'</div></li>'});
|
| 583 |
}
|
| 584 |
+
$(prefix + street1).up('li').insert({before: '<li id="' + prefix + 'postcode_input:wrapper"><div class="two-fields input-postcode"><label for="' + prefix + 'postcode_input">'+ PCNLAPI_CONFIG.translations.postcodeInputLabel +' <span class="required">*</span></label><br>'+
|
| 585 |
'<input type="text" title="'+ PCNLAPI_CONFIG.translations.postcodeInputTitle +'" id="' + prefix + 'postcode_input" value="" class="input-text required-entry" /></div>'+
|
| 586 |
+
'<div class="two-fields input-postcode pcnl-input-housenumber"><label for="' + prefix + 'postcode_housenumber">'+ PCNLAPI_CONFIG.translations.houseNumberLabel +' <span class="required">*</span></label><br><input type="text" title="'+ PCNLAPI_CONFIG.translations.houseNumberTitle +'" name="billing[postcode_housenumber]" id="' + prefix + 'postcode_housenumber" value="" class="input-text pcnl-input-text-half required-entry" /></div></li>'});
|
| 587 |
|
| 588 |
if (!$(prefix +'postcode_input:checkbox'))
|
| 589 |
{
|
| 595 |
else if ($(document.body).hasClassName('gomage-checkout-onepage-index'))
|
| 596 |
{
|
| 597 |
// Support for GoMage LightCheckout extension
|
| 598 |
+
this.enrichType = 'GoMage LightCheckout';
|
| 599 |
|
| 600 |
if (!$(prefix +'postcode_input:info'))
|
| 601 |
{
|
| 612 |
else if ($(document.body).hasClassName('checkout-onepage-index') && $('mw-osc-column-container'))
|
| 613 |
{
|
| 614 |
// Support for MageWorld One Step Checkout Pro
|
| 615 |
+
this.enrichType = 'MageWorld One Step Checkout Pro';
|
| 616 |
|
| 617 |
if (!$(prefix +'postcode_input:info'))
|
| 618 |
{
|
| 665 |
else if ($(document.body).hasClassName('aw-onestepcheckout-index-index'))
|
| 666 |
{
|
| 667 |
// Support for AheadWorks One Step Checkout
|
| 668 |
+
this.enrichType = 'AheadWorks One Step Checkout';
|
| 669 |
|
| 670 |
this.parentElementType = 'div.aw-onestepcheckout-general-form-field';
|
| 671 |
|
| 723 |
else if ($(document.body).hasClassName('checkout-onepage-index') && $('j2t-onecheckout-main'))
|
| 724 |
{
|
| 725 |
// Support for J2T OneCheckout
|
| 726 |
+
this.enrichType = 'J2T OneCheckout';
|
| 727 |
|
| 728 |
if (!$(prefix +'postcode_input:info'))
|
| 729 |
{
|
| 741 |
else if ($(document.body).hasClassName('aitcheckout-checkout-index'))
|
| 742 |
{
|
| 743 |
// Support for Aitoc One Step Checkout Manager
|
| 744 |
+
this.enrichType = 'Aitoc One Step Checkout Manager';
|
| 745 |
|
| 746 |
if (!$(prefix +'postcode_input:info'))
|
| 747 |
{
|
| 756 |
}
|
| 757 |
$(prefix + street1).up('li').insert({before: '<li id="' + prefix + 'postcode_input:output" class="pcnl-hidden-field"><div><label>'+ PCNLAPI_CONFIG.translations.outputLabel +'</label><div id="' + prefix + 'postcode_output" class="pcnl-address-text"></div></div></li>'});
|
| 758 |
}
|
| 759 |
+
else if ($(document.body).hasClassName('checkout-onepage-index') && $(document.body).hasClassName('layout-3columns'))
|
| 760 |
{
|
| 761 |
// Support for Magento Templates - OnePage Magento Checkout
|
| 762 |
+
this.enrichType = 'Magento Templates - OnePage Magento Checkout';
|
| 763 |
|
| 764 |
if (!$(prefix +'postcode_input:info'))
|
| 765 |
{
|
| 774 |
}
|
| 775 |
$(prefix + 'country_id').up('li').insert({before: '<li id="' + prefix + 'postcode_input:output" class="pcnl-hidden-field"><div><label>'+ PCNLAPI_CONFIG.translations.outputLabel +'</label><div id="' + prefix + 'postcode_output" class="pcnl-address-text"></div></div></li>'});
|
| 776 |
}
|
| 777 |
+
else if ($(document.body).hasClassName('checkout-onepage-index') && $('easycheckout-form-wrap'))
|
| 778 |
{
|
| 779 |
// Support for EcommerceTeam Easy Checkout 2
|
| 780 |
+
this.enrichType = 'EcommerceTeam Easy Checkout 2';
|
| 781 |
|
| 782 |
if (!$(prefix +'postcode_input:info'))
|
| 783 |
{
|
| 784 |
$(prefix + 'country_id').up('li').insert({before: '<li id="' + prefix + 'postcode_input:info" class="pcnl-info"><div><label class="pcnl-info-label">'+ PCNLAPI_CONFIG.translations.infoLabel +'</label><div class="pcnl-info-text" id="' + prefix + 'postcode_input:info-text">'+ PCNLAPI_CONFIG.translations.infoText +'</div></div></li>'});
|
| 785 |
}
|
| 786 |
+
$(prefix + 'country_id').up('li').insert({before: '<li id="' + prefix + 'postcode_input:wrapper" class="fields"><div class="field input-postcode"><label for="' + prefix + 'postcode_input" class="required">'+ PCNLAPI_CONFIG.translations.postcodeInputLabel +'<em class="required">*</em></label><div class="input-box"><div class="field-wrapper"><input type="text" title="'+ PCNLAPI_CONFIG.translations.postcodeInputTitle +'" id="' + prefix + 'postcode_input" value="" class="input-text required-entry" /></div></div></div><div class="field input-postcode pcnl-input-housenumber"><label for="' + prefix + 'postcode_housenumber" class="required">'+ PCNLAPI_CONFIG.translations.houseNumberLabel +' <em class="required">*</em></label><div class="input-box"><div class="field-wrapper"><input type="text" title="'+ PCNLAPI_CONFIG.translations.houseNumberTitle +'" name="billing[postcode_housenumber]" id="' + prefix + 'postcode_housenumber" value="" class="input-text pcnl-input-text-half required-entry" /></div></div></div></li>'});
|
| 787 |
if (!$(prefix +'postcode_input:checkbox'))
|
| 788 |
{
|
| 789 |
$(prefix + 'country_id').up('li').insert({before: '<li id="' + prefix + 'postcode_input:checkbox" class="pcnl-manual-checkbox"><div class="field"><label for="' + prefix + 'postcode_input_checkbox">'+ PCNLAPI_CONFIG.translations.manualInputText +'</label><input type="checkbox" title="'+ PCNLAPI_CONFIG.translations.postcodeInputTitle +'" id="' + prefix + 'postcode_input_checkbox" value="" class="checkbox " /></div></li>'});
|
| 794 |
else if ($(document.body).hasClassName('checkout-onestep-index') && $('easycheckout-login-form'))
|
| 795 |
{
|
| 796 |
// GrafischDirect One Step Checkout
|
| 797 |
+
this.enrichType = 'GrafischDirect One Step Checkout';
|
| 798 |
|
| 799 |
this.parentElementType = 'div.line';
|
| 800 |
|
| 813 |
else if ($(document.body).hasClassName('checkout-onestep-index'))
|
| 814 |
{
|
| 815 |
// FME One Step Checkout
|
| 816 |
+
this.enrichType = 'FME One Step Checkout';
|
| 817 |
|
| 818 |
if (!$(prefix +'postcode_input:info'))
|
| 819 |
{
|
| 829 |
}
|
| 830 |
else if ($(document.body).hasClassName('onepagecheckout-index-index'))
|
| 831 |
{
|
| 832 |
+
// IWD Free One Page / Step Checkout v2
|
| 833 |
+
this.enrichType = 'IWD Free One Page / Step Checkout v2';
|
| 834 |
|
| 835 |
this.parentElementType = 'div.full, div.two_fields, ul.pcnl-manual-checkbox';
|
| 836 |
|
| 862 |
// Support for regular Magento 'one page' checkout
|
| 863 |
// + Fire Checkout
|
| 864 |
// + Quick One Page Checkout (by KAM)
|
| 865 |
+
// + MAGExtended MasterCheckout
|
| 866 |
+
// + IWD Free One Page / Step Checkout v3
|
| 867 |
+
|
| 868 |
+
if ($(document.body).hasClassName('firecheckout-index-index'))
|
| 869 |
+
this.enrichType = 'Fire Checkout';
|
| 870 |
+
else if ($(document.body).hasClassName('checkout-onepage-index') && $$('.qocadvanced-threecolumns').length > 0)
|
| 871 |
+
this.enrichType = 'Quick One Page Checkout (by KAM)';
|
| 872 |
+
else if ($(document.body).hasClassName('mastercheckout-index-index'))
|
| 873 |
+
this.enrichType = 'MAGExtended MasterCheckout';
|
| 874 |
+
else if ($(document.body).hasClassName('opc-index-index'))
|
| 875 |
+
this.enrichType = 'IWD Free One Page / Step Checkout v3';
|
| 876 |
+
else if ($(document.body).hasClassName('checkout-onepage-index'))
|
| 877 |
+
this.enrichType = 'Basic';
|
| 878 |
+
else if ($(document.body).hasClassName('customer-address-form'))
|
| 879 |
+
this.enrichType = 'Customer Address Form';
|
| 880 |
+
else
|
| 881 |
+
this.enrichType = 'Unknown: Body class `'+ $(document.body).className +'`';
|
| 882 |
|
| 883 |
if (!$(prefix +'postcode_input:info'))
|
| 884 |
{
|
| 885 |
+
$(prefix + street1).up('li').insert({before: '<li id="' + prefix + 'postcode_input:info" class="wide pcnl-info"><div><label class="pcnl-info-label">'+ PCNLAPI_CONFIG.translations.infoLabel +'</label><div class="pcnl-info-text" id="' + prefix + 'postcode_input:info-text">'+ PCNLAPI_CONFIG.translations.infoText +'</div></div></li>'});
|
| 886 |
}
|
| 887 |
+
$(prefix + street1).up('li').insert({before: '<li id="' + prefix + 'postcode_input:wrapper" class="fields"><div class="field input-postcode"><label for="' + prefix + 'postcode_input" class="required">'+ PCNLAPI_CONFIG.translations.postcodeInputLabel +'<em class="required">*</em></label><div class="input-box"><div class="field-wrapper"><input type="text" title="'+ PCNLAPI_CONFIG.translations.postcodeInputTitle +'" id="' + prefix + 'postcode_input" value="" class="input-text required-entry" /></div></div></div><div class="field input-postcode pcnl-input-housenumber"><label for="' + prefix + 'postcode_housenumber" class="required">'+ PCNLAPI_CONFIG.translations.houseNumberLabel +' <em class="required">*</em></label><div class="input-box"><div class="field-wrapper"><input type="text" title="'+ PCNLAPI_CONFIG.translations.houseNumberTitle +'" name="billing[postcode_housenumber]" id="' + prefix + 'postcode_housenumber" value="" class="input-text pcnl-input-text-half required-entry" /></div></div></div></li>'});
|
| 888 |
if (!$(prefix +'postcode_input:checkbox'))
|
| 889 |
{
|
| 890 |
+
$(prefix + street1).up('li').insert({before: '<li id="' + prefix + 'postcode_input:checkbox" class="wide control pcnl-manual-checkbox"><div class="fields"><div class="input-box"><input type="checkbox" title="'+ PCNLAPI_CONFIG.translations.postcodeInputTitle +'" id="' + prefix + 'postcode_input_checkbox" value="" class="checkbox " /><label for="' + prefix + 'postcode_input_checkbox">'+ PCNLAPI_CONFIG.translations.manualInputText +'</label></div></div></li>'});
|
| 891 |
+
|
| 892 |
+
$(prefix + 'postcode_input_checkbox').observe('click', function () { pcnlapi.toggleCountryPostcode(prefix, postcodeFieldId, countryFieldId, street1, street2, street3, street4); });
|
| 893 |
}
|
| 894 |
+
$(prefix + street1).up('li').insert({before: '<li id="' + prefix + 'postcode_input:output" class="wide pcnl-hidden-field"><div><label>'+ PCNLAPI_CONFIG.translations.outputLabel +'</label><div id="' + prefix + 'postcode_output" class="pcnl-address-text"></div></div></li>'});
|
| 895 |
}
|
| 896 |
|
| 897 |
+
if (PCNLAPI_CONFIG.debug && window.console)
|
| 898 |
+
console.log('Postcode.nl API enrich type: ' + this.enrichType);
|
| 899 |
+
|
| 900 |
$(prefix +'postcode_input').observe('change', function(e) { pcnlapi.lookupPostcode(prefix, postcodeFieldId, countryFieldId, street1, street2, street3, street4, e); });
|
| 901 |
$(prefix +'postcode_housenumber').observe('change', function(e) { pcnlapi.lookupPostcode(prefix, postcodeFieldId, countryFieldId, street1, street2, street3, street4, e); });
|
| 902 |
}
|
package.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>PostcodeNl_Api</name>
|
| 4 |
-
<version>1.1.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license>Simplified BSD License</license>
|
| 7 |
<channel>community</channel>
|
|
@@ -16,23 +16,20 @@
|
|
| 16 |

|
| 17 |
The postcode Magento plugin from Postcode.nl is free of charge, based on a Fair-Use policy. The use of the Postcode.nl Magento plugin is subject to our Terms and Conditions.</description>
|
| 18 |
<notes>Fixes:
|
| 19 |
-
-
|
| 20 |
-
-
|
| 21 |
-
-
|
|
|
|
| 22 |
Added provisional support for the following checkout modules:
|
| 23 |
-
-
|
| 24 |
-
- AheadWorks One Step Checkout
|
| 25 |
-
- J2T OneCheckout
|
| 26 |
-
- MagentoTemplate OnePage Magento Checkout
|
| 27 |
-
- MageWorld One Step Checkout Pro
|
| 28 |
Features:
|
| 29 |
-
-
|
| 30 |
-
-
|
| 31 |
</notes>
|
| 32 |
<authors><author><name>Postcode.nl Technical Support</name><user>TechPostcodeNl</user><email>tech@postcode.nl</email></author></authors>
|
| 33 |
-
<date>2014-
|
| 34 |
-
<time>
|
| 35 |
-
<contents><target name="magecommunity"><dir name="PostcodeNl"><dir name="Api"><dir name="Block"><file name="Jsinit.php" hash="79bb826a50ce0cf4f87cc2f958bfafa1"/></dir><dir name="Helper"><file name="Data.php" hash="
|
| 36 |
<compatible/>
|
| 37 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php><extension><name>curl</name><min>7.10.5</min><max>7.99.0</max></extension></required></dependencies>
|
| 38 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>PostcodeNl_Api</name>
|
| 4 |
+
<version>1.1.1.0</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license>Simplified BSD License</license>
|
| 7 |
<channel>community</channel>
|
| 16 |

|
| 17 |
The postcode Magento plugin from Postcode.nl is free of charge, based on a Fair-Use policy. The use of the Postcode.nl Magento plugin is subject to our Terms and Conditions.</description>
|
| 18 |
<notes>Fixes:
|
| 19 |
+
- Support more MageStore OneStepCheckout versions
|
| 20 |
+
- Support newest IWD One Step Checkout version
|
| 21 |
+
- Corrected some checkout extension detection
|
| 22 |
+
- Editing roles/rights in admin would fail
|
| 23 |
Added provisional support for the following checkout modules:
|
| 24 |
+
- MAGExtentended MasterCheckout
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
Features:
|
| 26 |
+
- If error message mentions 'use manual', manual checkbox is toggled automatically
|
| 27 |
+
- Tweaked compatibility with Magento 1.9
|
| 28 |
</notes>
|
| 29 |
<authors><author><name>Postcode.nl Technical Support</name><user>TechPostcodeNl</user><email>tech@postcode.nl</email></author></authors>
|
| 30 |
+
<date>2014-06-17</date>
|
| 31 |
+
<time>16:15:52</time>
|
| 32 |
+
<contents><target name="magecommunity"><dir name="PostcodeNl"><dir name="Api"><dir name="Block"><file name="Jsinit.php" hash="79bb826a50ce0cf4f87cc2f958bfafa1"/></dir><dir name="Helper"><file name="Data.php" hash="fd77a5f3296a0d164a103964ca913b96"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="PcnlController.php" hash="a72395c695188f3a1aff9eb7dba4091d"/></dir><file name="JsonController.php" hash="180f25dccbe40710fea4bbe2a4c4ee8a"/></dir><dir name="data"><dir name="postcodenl_api_setup"><file name="data-upgrade-1.0.8.0-1.1.0.0.php" hash="e0acdb124cf735198c021f0c827c82bc"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="5d518aeaeae028b6299c7cf3d6e54f60"/><file name="config.xml" hash="a4c135d9cc949f452aac80d59522945b"/><file name="system.xml" hash="b92863ff806bd444125e4a829ecdc24c"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><dir name="postcodenl"><dir name="api"><file name="lookup.xml" hash="e8f6295a91c9c5bfd116ae1048a5445d"/></dir></dir></dir><dir name="template"><dir name="postcodenl"><dir name="api"><file name="jsinit.phtml" hash="8623676f4c6f4068d0b51e31dcfa08e9"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><dir name="postcodenl"><dir name="api"><file name="lookup.xml" hash="88c6556ea3cc3b3c6746021e8636a24c"/></dir></dir></dir><dir name="template"><dir name="postcodenl"><dir name="api"><file name="jsinit.phtml" hash="ff32e12bbc26e4414dd8ca76edc4ed0f"/></dir></dir></dir></dir></dir><dir name="base"><dir name="default"><dir name="layout"><dir name="postcodenl"><dir name="api"><file name="lookup.xml" hash="88c6556ea3cc3b3c6746021e8636a24c"/></dir></dir></dir><dir name="template"><dir name="postcodenl"><dir name="api"><file name="jsinit.phtml" hash="ff32e12bbc26e4414dd8ca76edc4ed0f"/></dir></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="PostcodeNl_Api.csv" hash="0f85a94e876ec148734c556d9cf363a3"/></dir><dir name="nl_NL"><file name="PostcodeNl_Api.csv" hash="51fa45866ef7461769058d9c83d21766"/></dir></target><target name="mageweb"><dir name="js"><dir name="postcodenl"><dir name="api"><file name="lookup.js" hash="660610166fed083bbca274eb6110d458"/></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="postcodenl"><dir name="api"><dir name="css"><file name="lookup.css" hash="c58103b505f8bcdf55cea1159ca21e27"/></dir><dir name="images"><file name="postcode-logo.png" hash="da02bc29be1057a0201e63f81ee4bd02"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="postcodenl"><dir name="api"><dir name="css"><file name="lookup.css" hash="c6ffbeceb6907b2e8463d1ff30810304"/></dir><dir name="images"><file name="postcode-logo.png" hash="da02bc29be1057a0201e63f81ee4bd02"/></dir></dir></dir></dir></dir><dir name="base"><dir name="default"><dir name="postcodenl"><dir name="api"><dir name="css"><file name="lookup.css" hash="c6ffbeceb6907b2e8463d1ff30810304"/></dir><dir name="images"><file name="postcode-logo.png" hash="da02bc29be1057a0201e63f81ee4bd02"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="PostcodeNl_Api.xml" hash="feeaf95128ffe4ad109ed8b0b8bc85ab"/></dir></target></contents>
|
| 33 |
<compatible/>
|
| 34 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php><extension><name>curl</name><min>7.10.5</min><max>7.99.0</max></extension></required></dependencies>
|
| 35 |
</package>
|
skin/frontend/base/default/postcodenl/api/css/lookup.css
CHANGED
|
@@ -45,6 +45,12 @@ select.pcnl-readonly {
|
|
| 45 |
position: absolute;
|
| 46 |
}
|
| 47 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
/* Showcase styles */
|
| 49 |
|
| 50 |
h4.pcnl-showcase, h4.pcnl-debug {
|
|
@@ -106,6 +112,11 @@ div.checkoutcontainer dl.pcnl-showcase iframe {
|
|
| 106 |
border: 1px solid grey;
|
| 107 |
}
|
| 108 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 109 |
/* GoMage LightCheckout */
|
| 110 |
body.gomage-checkout-onepage-index dl.pcnl-debug {
|
| 111 |
width: 260px;
|
| 45 |
position: absolute;
|
| 46 |
}
|
| 47 |
|
| 48 |
+
/* Magento 1.9 styling 'float fix' for manual checkbox */
|
| 49 |
+
.form-list .control.pcnl-manual-checkbox div.input-box {
|
| 50 |
+
display: block;
|
| 51 |
+
float: none;
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
/* Showcase styles */
|
| 55 |
|
| 56 |
h4.pcnl-showcase, h4.pcnl-debug {
|
| 112 |
border: 1px solid grey;
|
| 113 |
}
|
| 114 |
|
| 115 |
+
/* OneStepCheckout.com */
|
| 116 |
+
.onestepcheckout-index-index .group-select li .input-postcode .input-box {
|
| 117 |
+
width: auto;
|
| 118 |
+
}
|
| 119 |
+
|
| 120 |
/* GoMage LightCheckout */
|
| 121 |
body.gomage-checkout-onepage-index dl.pcnl-debug {
|
| 122 |
width: 260px;
|
skin/frontend/default/default/postcodenl/api/css/lookup.css
CHANGED
|
@@ -45,6 +45,12 @@ select.pcnl-readonly {
|
|
| 45 |
position: absolute;
|
| 46 |
}
|
| 47 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
/* Showcase styles */
|
| 49 |
|
| 50 |
h4.pcnl-showcase, h4.pcnl-debug {
|
| 45 |
position: absolute;
|
| 46 |
}
|
| 47 |
|
| 48 |
+
/* Magento 1.9 styling 'float fix' for manual checkbox */
|
| 49 |
+
.form-list .control.pcnl-manual-checkbox div.input-box {
|
| 50 |
+
display: block;
|
| 51 |
+
float: none;
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
/* Showcase styles */
|
| 55 |
|
| 56 |
h4.pcnl-showcase, h4.pcnl-debug {
|
