diff --git a/i18n/en_US.csv b/i18n/en_US.csv
index 1d5797272..91279b154 100644
--- a/i18n/en_US.csv
+++ b/i18n/en_US.csv
@@ -181,7 +181,7 @@ Percent,Percent
"Post office delivery","Post office delivery"
"Post office early delivery","Post office early delivery"
"In order to use this extension you need to be a contract customer of PostNL. If you are not a customer of PostNL, you can register yourself here.","In order to use this extension you need to be a contract customer of PostNL. If you are not a customer of PostNL, you can register yourself here."
-"You will then receive all necessary information in order to configure the extension. If you cannot find the email containing this information, please contact PostNL support at 058-2333343.","You will then receive all necessary information in order to configure the extension. If you cannot find the email containing this information, please contact PostNL support at 058-2333343."
+"You will then receive all necessary information in order to configure the extension. If you cannot find the email containing this information, please contact PostNL support at 088-2255651.","You will then receive all necessary information in order to configure the extension. If you cannot find the email containing this information, please contact PostNL support at 088-2255651."
"If you want to test the extension, but do not have any test mode credentials you can use the account credentials found here.","If you want to test the extension, but do not have any test mode credentials you can use the account credentials found here."
"If you are unsure which options to select, ask your PostNL account manager. Read more about PostNL product options.","If you are unsure which options to select, ask your PostNL account manager. Read more about PostNL product options."
"Select the PostNL product that you want to use for your shipments.","Select the PostNL product that you want to use for your shipments."
@@ -416,3 +416,4 @@ Percent,Percent
"Maximum weight per parcel","Maximum weight per parcel"
"Defines the maximum weight per parcel. Uses the Weight Unit as defined in: General > General > Local Options > Weight Unit","Defines the maximum weight per parcel. Uses the Weight Unit as defined in: General > General > Local Options > Weight Unit"
"If the total weight of the order exceeds the value defined here, it will be divided into multiple parcels. A separate label will be generated for each parcel.","If the total weight of the order exceeds the value defined here, it will be divided into multiple parcels. A separate label will be generated for each parcel."
+"Packets Tracked can only be used if 5 packages or more are delivered in a domestic mail bag with an attached bag label specific for priority parcels.","Packets Tracked can only be used if 5 packages or more are delivered in a domestic mail bag with an attached bag label specific for priority parcels."
diff --git a/i18n/nl_NL.csv b/i18n/nl_NL.csv
index 5d8716c33..4d024adcb 100644
--- a/i18n/nl_NL.csv
+++ b/i18n/nl_NL.csv
@@ -196,7 +196,7 @@ Percent,Percentage
"PostNL - Generate Label","PostNL - Genereer Label"
"Default postoffice early pickup option","Standaard ophalen bij PostNL locatie extra vroeg optie"
"In order to use this extension you need to be a contract customer of PostNL. If you are not a customer of PostNL, you can register yourself here.","Om deze extensie te kunnen gebruiken dient u een contract met PostNL af te sluiten. Indien u geen klant bent van PostNL dan kunt u zichzelf hier aanmelden."
-"You will then receive all necessary information in order to configure the extension. If you cannot find the email containing this information, please contact PostNL support at 058-2333343.","U ontvangt de benodigde informatie om deze extensie te configureren. Indien u deze e-mail met informatie niet heeft ontvangen, neem dan contact met PostNL support op 058-2333343."
+"You will then receive all necessary information in order to configure the extension. If you cannot find the email containing this information, please contact PostNL support at 088-2255651.","U ontvangt de benodigde informatie om deze extensie te configureren. Indien u deze e-mail met informatie niet heeft ontvangen, neem dan contact met PostNL support op 088-2255651."
"If you want to test the extension, but do not have any test mode credentials you can use the account credentials found here.","Indien u deze extensie wilt uitproberen, maar geen testgegevens heeft, dan kunt u hier testgegevens vinden."
"If you are unsure which options to select, ask your PostNL account manager. Read more about PostNL product options.","Indien u niet zeker weet welke opties voor uw webshop van toepassing zijn, dan kunt u dit vragen aan uw PostNL account manager. Lees meer over PostNL productopties."
"Select the PostNL product that you want to use for your shipments.","Selecteer de PostNL producten die u wilt gebruiken voor uw verzendingen. "
@@ -436,3 +436,4 @@ Percent,Percentage
"Maximum weight per parcel","Maximaal gewicht per pakket"
"Defines the maximum weight per parcel. Uses the Weight Unit as defined in: General > General > Local Options > Weight Unit","Bepaald het maximale gewicht per pakket. Gebruikt de eenheid, zoals ingesteld onder Algemeen > Algemeen > Lokalisatie-opties > Gewichtseenheid"
"If the total weight of the order exceeds the value defined here, it will be divided into multiple parcels. A separate label will be generated for each parcel.","Als het totale gewicht deze waarde overschrijdt, zal de bestelling opgedeeld worden in meerdere pakketten. Voor ieder pakket zal een apart label worden gegenereerd."
+"Packets Tracked can only be used if 5 packages or more are delivered in a domestic mail bag with an attached bag label specific for priority parcels.","Pakjes Tracked kunnen alleen gebruikt worden als 5 pakketten of meer aangeleverd worden in een binnenlandse postzak met een aangehecht zaklabel specifiek voor Priority Parcels."
\ No newline at end of file
diff --git a/view/adminhtml/templates/config/general/accountSettings.phtml b/view/adminhtml/templates/config/general/accountSettings.phtml
index 0e9afb085..7913041bb 100644
--- a/view/adminhtml/templates/config/general/accountSettings.phtml
+++ b/view/adminhtml/templates/config/general/accountSettings.phtml
@@ -40,7 +40,7 @@
register yourself here.', [$block->getInfoUrlForDeliveryoptions()]); ?>
-
+
diff --git a/view/adminhtml/templates/config/support/supportTab.phtml b/view/adminhtml/templates/config/support/supportTab.phtml
index 545869580..20e5a373f 100644
--- a/view/adminhtml/templates/config/support/supportTab.phtml
+++ b/view/adminhtml/templates/config/support/supportTab.phtml
@@ -129,7 +129,7 @@
escapeHtml(__('Phone:'));?>
- +31 (0)88-2255652
+ +31 (0)88-2255651
-
diff --git a/view/adminhtml/templates/shipment/view/javascript.phtml b/view/adminhtml/templates/shipment/view/javascript.phtml
index ea872a8a2..fb3c024ae 100644
--- a/view/adminhtml/templates/shipment/view/javascript.phtml
+++ b/view/adminhtml/templates/shipment/view/javascript.phtml
@@ -31,8 +31,24 @@
*/
?>
diff --git a/view/adminhtml/web/css/adminhtml_config.css b/view/adminhtml/web/css/adminhtml_config.css
index 380d8da8a..d2aab8e65 100644
--- a/view/adminhtml/web/css/adminhtml_config.css
+++ b/view/adminhtml/web/css/adminhtml_config.css
@@ -351,7 +351,6 @@
float:left;
width: 50px;
height: 37px;
-
content: ' ';
background-image: url(../images/postnl_logo_50.png) !important;
background-position: 0 2px;
@@ -390,6 +389,9 @@
background-size: auto 29px;
}
+.postnl-config-page .page-main-actions .page-actions:not(._fixed) .page-actions-inner:before {
+ margin-left: 80px;
+}
.postnl-config-page .page-main-actions .page-actions .page-actions-inner:after {
background-image: url(../images/logo_tig.png) !important;
diff --git a/view/frontend/web/js/Helper/AddressFinder.js b/view/frontend/web/js/Helper/AddressFinder.js
index b83dfd217..d75b00c62 100644
--- a/view/frontend/web/js/Helper/AddressFinder.js
+++ b/view/frontend/web/js/Helper/AddressFinder.js
@@ -95,9 +95,14 @@ define([
* The street is not always available on the first run.
*/
var shippingAddress = quote.shippingAddress();
- if (customer.isLoggedIn() && shippingAddress && shippingAddress.street) {
+ var quoteStreet = [];
+ if (shippingAddress) {
+ quoteStreet = (typeof shippingAddress.street === 'undefined') ? [] : shippingAddress.street;
+ }
+
+ if (customer.isLoggedIn() && shippingAddress && quoteStreet.length > 0) {
address = {
- street: shippingAddress.street,
+ street: quoteStreet,
postcode: shippingAddress.postcode,
lastname: shippingAddress.lastname,
firstname: shippingAddress.firstname,
diff --git a/view/frontend/web/js/Helper/State.js b/view/frontend/web/js/Helper/State.js
index e8ca26e97..f78611b8a 100644
--- a/view/frontend/web/js/Helper/State.js
+++ b/view/frontend/web/js/Helper/State.js
@@ -57,6 +57,10 @@ define([
return;
}
+ if (shippingMethod.carrier_code !== 'tig_postnl') {
+ currentSelectedShipmentType(shippingMethod.carrier_code);
+ }
+
if (shippingMethod.carrier_code === 'tig_postnl') {
return;
}
diff --git a/view/frontend/web/js/Renderer/DeliveryOptions/Delivery.js b/view/frontend/web/js/Renderer/DeliveryOptions/Delivery.js
index 8d82ccf68..23a430590 100644
--- a/view/frontend/web/js/Renderer/DeliveryOptions/Delivery.js
+++ b/view/frontend/web/js/Renderer/DeliveryOptions/Delivery.js
@@ -109,13 +109,11 @@ define([
State.currentSelectedShipmentType('delivery');
State.selectShippingMethod();
- if (value.fallback) {
- return;
- }
-
var fee = null;
- if (value.hasFee()) {
- fee = value.getFee();
+ if (!value.fallback) {
+ if (value.hasFee()) {
+ fee = value.getFee();
+ }
}
State.fee(fee);
@@ -126,12 +124,13 @@ define([
method : 'POST',
url : window.checkoutConfig.shipping.postnl.urls.deliveryoptions_save,
data : {
- type : 'delivery',
+ address: AddressFinder(),
+ type : (typeof value.fallback !== 'undefined') ? 'fallback' : 'delivery',
date : value.date,
option : value.option,
from : value.from,
to : value.to,
- country: value.address.country
+ country: (typeof value.address !== 'undefined') ? value.address.country : AddressFinder().country
}
}).done(function (response) {
$(document).trigger('compatible_postnl_deliveryoptions_save_done', {response: response});
diff --git a/view/frontend/web/js/view/form/fields.js b/view/frontend/web/js/view/form/fields.js
index 03aaab736..b07280022 100644
--- a/view/frontend/web/js/view/form/fields.js
+++ b/view/frontend/web/js/view/form/fields.js
@@ -222,32 +222,25 @@ define([
$("input[name*='street[0]']").trigger('change');
$("input[name*='city']").trigger('change');
- return;
+ errorMessage = null;
+ }
+
+ if (data.error) {
+ console.error(data.error);
}
- console.error(data.error);
self.handleError(errorMessage);
},
handleError : function (errorMessage) {
var self = this;
var error = $('.tig-postnl-validation-message');
+ error.hide();
if (errorMessage) {
self.enableAddressFields(true);
error.html(errorMessage).show();
-
- var timer;
- if (typeof timer !== 'undefined') {
- clearTimeout(timer);
- }
-
- timer = setTimeout(function () {
- error.hide(100);
- }, 16000);
- } else {
- error.hide();
}
},