Version Notes
Changes:
- Improved support for transport-method updates for various checkout extensions (e.g. IWD Free One Page / Step Checkout)
Download this release
Release Info
| Developer | Magento Core Team |
| Extension | PostcodeNl_Api |
| Version | 1.0.6.3 |
| Comparing to | |
| See all releases | |
Code changes from version 1.0.6.2 to 1.0.6.3
- app/code/community/PostcodeNl/Api/etc/config.xml +1 -1
- js/postcodenl/api/lookup.js +20 -0
- package.xml +5 -10
app/code/community/PostcodeNl/Api/etc/config.xml
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
<config>
|
| 3 |
<modules>
|
| 4 |
<PostcodeNl_Api>
|
| 5 |
-
<version>1.0.6.
|
| 6 |
</PostcodeNl_Api>
|
| 7 |
</modules>
|
| 8 |
<frontend>
|
| 2 |
<config>
|
| 3 |
<modules>
|
| 4 |
<PostcodeNl_Api>
|
| 5 |
+
<version>1.0.6.3</version>
|
| 6 |
</PostcodeNl_Api>
|
| 7 |
</modules>
|
| 8 |
<frontend>
|
js/postcodenl/api/lookup.js
CHANGED
|
@@ -12,6 +12,20 @@ document.observe("dom:loaded", function()
|
|
| 12 |
}
|
| 13 |
}
|
| 14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
var PostcodeNl_Api = {
|
| 16 |
/**
|
| 17 |
* Cache requests to improve multiple identical requests (billing / shipping, etc)
|
|
@@ -340,7 +354,13 @@ document.observe("dom:loaded", function()
|
|
| 340 |
if (data.postcode != undefined)
|
| 341 |
{
|
| 342 |
// Set data from request on form fields
|
|
|
|
|
|
|
|
|
|
| 343 |
$(prefix + postcodeFieldId).setValue(data.postcode);
|
|
|
|
|
|
|
|
|
|
| 344 |
$(prefix + 'postcode_input').setValue(data.postcode);
|
| 345 |
if (PCNLAPI_CONFIG.useStreet2AsHouseNumber && $(prefix + street2))
|
| 346 |
{
|
| 12 |
}
|
| 13 |
}
|
| 14 |
|
| 15 |
+
function pcnlFireEvent(element,event){
|
| 16 |
+
if (document.createEventObject){
|
| 17 |
+
// dispatch for IE
|
| 18 |
+
var evt = document.createEventObject();
|
| 19 |
+
return element.fireEvent('on'+event,evt)
|
| 20 |
+
}
|
| 21 |
+
else{
|
| 22 |
+
// dispatch for firefox + others
|
| 23 |
+
var evt = document.createEvent("HTMLEvents");
|
| 24 |
+
evt.initEvent(event, true, true ); // event type,bubbling,cancelable
|
| 25 |
+
return !element.dispatchEvent(evt);
|
| 26 |
+
}
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
var PostcodeNl_Api = {
|
| 30 |
/**
|
| 31 |
* Cache requests to improve multiple identical requests (billing / shipping, etc)
|
| 354 |
if (data.postcode != undefined)
|
| 355 |
{
|
| 356 |
// Set data from request on form fields
|
| 357 |
+
var postcodeChange = false;
|
| 358 |
+
if ($(prefix + postcodeFieldId).getValue() != data.postcode)
|
| 359 |
+
postcodeChange = true;
|
| 360 |
$(prefix + postcodeFieldId).setValue(data.postcode);
|
| 361 |
+
if (postcodeChange)
|
| 362 |
+
pcnlFireEvent($(prefix + postcodeFieldId), 'change');
|
| 363 |
+
|
| 364 |
$(prefix + 'postcode_input').setValue(data.postcode);
|
| 365 |
if (PCNLAPI_CONFIG.useStreet2AsHouseNumber && $(prefix + street2))
|
| 366 |
{
|
package.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>PostcodeNl_Api</name>
|
| 4 |
-
<version>1.0.6.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license>Simplified BSD License</license>
|
| 7 |
<channel>community</channel>
|
|
@@ -16,16 +16,11 @@
|
|
| 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>Changes:
|
| 19 |
-
- Improved support for
|
| 20 |
-
- Fixed bug when switching from non-NL country to non-NL country
|
| 21 |
-
- Improved Billing to Shipping synchronization
|
| 22 |
-
- Added support for `Apptha One Page Checkout`
|
| 23 |
-
- Added support for `Ecommerce Three-Step Checkout`
|
| 24 |
-
- Fixed issue where not all templates were added in 1.0.6.0 release</notes>
|
| 25 |
<authors><author><name>Postcode.nl Technical Support</name><user>auto-converted</user><email>tech@postcode.nl</email></author></authors>
|
| 26 |
-
<date>2013-
|
| 27 |
-
<time>
|
| 28 |
-
<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="1dc6157d08029c42ed743ca3a2350a14"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="PcnlController.php" hash="b86f92da28638dfb619b68106523104e"/></dir><file name="JsonController.php" hash="273cdee0eb176860a68dd1788d9fef08"/></dir><dir name="etc"><file name="config.xml" hash="
|
| 29 |
<compatible/>
|
| 30 |
<dependencies/>
|
| 31 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>PostcodeNl_Api</name>
|
| 4 |
+
<version>1.0.6.3</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>Changes:
|
| 19 |
+
- Improved support for transport-method updates for various checkout extensions (e.g. IWD Free One Page / Step Checkout)</notes>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
<authors><author><name>Postcode.nl Technical Support</name><user>auto-converted</user><email>tech@postcode.nl</email></author></authors>
|
| 21 |
+
<date>2013-02-04</date>
|
| 22 |
+
<time>09:44:28</time>
|
| 23 |
+
<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="1dc6157d08029c42ed743ca3a2350a14"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="PcnlController.php" hash="b86f92da28638dfb619b68106523104e"/></dir><file name="JsonController.php" hash="273cdee0eb176860a68dd1788d9fef08"/></dir><dir name="etc"><file name="config.xml" hash="ec34e90f3923dcc8a6df93d8700750c2"/><file name="system.xml" hash="11a7b7f1d8d7258c90133dfe2581ce00"/></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="912aa0881de03e5d7bd338a00e783215"/></dir></dir></dir><dir name="template"><dir name="postcodenl"><dir name="api"><file name="jsinit.phtml" hash="e08a3ce7a48801bf997dbd4f6743b53f"/></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="4b209228600162da76d115d7dda2ea31"/></dir></dir></dir><dir name="template"><dir name="postcodenl"><dir name="api"><file name="jsinit.phtml" hash="339610e5950a53c3966d80cccf9bede4"/></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="4b209228600162da76d115d7dda2ea31"/></dir></dir></dir><dir name="template"><dir name="postcodenl"><dir name="api"><file name="jsinit.phtml" hash="339610e5950a53c3966d80cccf9bede4"/></dir></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="PostcodeNl_Api.csv" hash="d8f9ff15eb17aa09a7a40a72aa890095"/></dir><dir name="nl_NL"><file name="PostcodeNl_Api.csv" hash="d196b00bf35dec9fc858b5fc4f9dac9f"/></dir></target><target name="mageweb"><dir name="js"><dir name="postcodenl"><dir name="api"><file name="lookup.js" hash="dfeb196b4373fb3b8bb07385f20e1ba2"/></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="4fca81fe07d2e343340025e7f6d462ce"/></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="4fca81fe07d2e343340025e7f6d462ce"/></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>
|
| 24 |
<compatible/>
|
| 25 |
<dependencies/>
|
| 26 |
</package>
|
