Skip to content

Commit

Permalink
Merged develop into master
Browse files Browse the repository at this point in the history
  • Loading branch information
mbe1987 committed Sep 15, 2022
2 parents f397387 + bc990a1 commit ae5421e
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 5 deletions.
3 changes: 3 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Changelog
## 1.6.5
* bugfix for selecting a Paketshop in the Filialfinder


## 1.6.4
* new Service PDDP (Postal Delivery Duty Paid) for Paket International
Expand Down
2 changes: 1 addition & 1 deletion project.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"pathToModule": "copy_this/modules/mo/mo_dhl",
"prefix": "mo_",
"suffix": "",
"version": "1.6.4",
"version": "1.6.5",
"compatibility": {
"minimumVersion": "6.0",
"maximumVersion": null,
Expand Down
2 changes: 1 addition & 1 deletion src/modules/mo/mo_dhl/metadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
'en' => '<p>Enable features providing Post & Paket Delivery to your OXID shop.</p>' . '<p><a href="https://projects.mediaopt.de/projects/mopt-postp-ua/wiki" target="_blank">Handbook</a></p>',
],
'thumbnail' => 'logo.png',
'version' => '1.6.4',
'version' => '1.6.5',
'author' => '<a href="http://www.mediaopt.de" target="_blank">mediaopt.</a>',
'url' => 'http://www.mediaopt.de',
'email' => '[email protected]',
Expand Down
4 changes: 4 additions & 0 deletions src/modules/mo/mo_dhl/out/src/js/mo_dhl.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ Empfaengerservices = function ($, tailorer) {
return type !== 'Packstation' ? 'Postfiliale' : type;
};

this.fromProviderTypeToLabel = function (type) {
return type !== 'Packstation' ? 'Filiale' : type;
};

this.getState = function () {
return this.tailorer.isShippedToSeparateAddress() ? this.state : 'regular';
};
Expand Down
2 changes: 1 addition & 1 deletion src/modules/mo/mo_dhl/out/src/js/widgets/azure/mo_dhl.js
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@
return provider.number;
},
apply: function (provider) {
$('#select' + provider.type).prop('selected', true);
$('#select' + this.dhl.fromProviderTypeToLabel(provider.type)).prop('selected', true);
$("#showShipAddress").attr('checked', false);
var providerIdentifier = this.dhl.fromProviderTypeToIdentifier(provider.type);
$("[name='deladr[oxaddress__oxstreet]']").val(providerIdentifier).parent().removeClass('oxInValid');
Expand Down
2 changes: 1 addition & 1 deletion src/modules/mo/mo_dhl/out/src/js/widgets/flow/mo_dhl.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@
return provider.number;
},
apply: function (provider) {
$('#select' + provider.type).prop('selected', true);
$('#select' + this.dhl.fromProviderTypeToLabel(provider.type)).prop('selected', true);
$("#showShipAddress").prop('checked', false).change();
$(".dd-add-delivery-address").find('label.btn').click();
var providerIdentifier = this.dhl.fromProviderTypeToIdentifier(provider.type);
Expand Down
2 changes: 1 addition & 1 deletion src/modules/mo/mo_dhl/out/src/js/widgets/wave/mo_dhl.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@
return provider.number;
},
apply: function (provider) {
$('#select' + provider.type).prop('selected', true);
$('#select' + this.dhl.fromProviderTypeToLabel(provider.type)).prop('selected', true);
$("#showShipAddress").prop('checked', false).change();
$(".dd-add-delivery-address").find('label.btn').click();
var providerIdentifier = this.dhl.fromProviderTypeToIdentifier(provider.type);
Expand Down

0 comments on commit ae5421e

Please sign in to comment.