Skip to content

Commit

Permalink
feat(checkout): added dpd mailbox to options
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianSDV committed May 28, 2024
1 parent dc1164a commit 4eaf22d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Model/Rate/Result.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
use MyParcelNL\Magento\Helper\Data;
use MyParcelNL\Magento\Model\Sales\Repository\PackageRepository;
use MyParcelNL\Sdk\src\Model\Carrier\CarrierDHLForYou;
use MyParcelNL\Sdk\src\Model\Carrier\CarrierDPD;
use MyParcelNL\Sdk\src\Model\Carrier\CarrierPostNL;
use MyParcelNL\Sdk\src\Model\Consignment\AbstractConsignment;

Expand All @@ -37,6 +38,7 @@ class Result extends \Magento\Shipping\Model\Rate\Result
private const CARRIERS_WITH_MAILBOX = [
CarrierPostNL::NAME,
CarrierDHLForYou::NAME,
CarrierDPD::NAME,
];
public const CARRIERS_WITH_DIGITAL_STAMP = [
CarrierPostNL::NAME,
Expand Down
1 change: 1 addition & 0 deletions i18n/en_US.csv
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ myparcelnl_magento_dhlparcelconnect_settings/pickup, DHL Parcel Connect pickup
myparcelnl_magento_ups_settings/delivery, UPS delivery
myparcelnl_magento_dpd_settings/delivery, DPD delivery
myparcelnl_magento_dpd_settings/pickup, DPD pickup location
myparcelnl_magento_dpd_settings/mailbox, DPD mailbox
myparcelnl_magento_error_no_shipments_to_process, No MyParcel shipments to process.
no_account_settings, No account settings found. Press the import button in general configuration to fetch account settings.
manage_drop_off_point, Manage your default drop-off point in the
Expand Down
1 change: 1 addition & 0 deletions i18n/fr_FR.csv
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ myparcelnl_magento_dhlparcelconnect_settings/delivery, Livraison DHL Parcel Conn
myparcelnl_magento_dhlparcelconnect_settings/pickup, Collecte DHL Parcel Connect
myparcelnl_magento_ups_settings/delivery, Livraison UPS
myparcelnl_magento_dpd_settings/delivery, Livraison DPD
myparcelnl_magento_dpd_settings/mailbox, Boîte aux lettres DPD
myparcelnl_magento_error_no_shipments_to_process, Non-pas d' envois MyParcel à traiter.
package_small,Petit paquet
Packet,Petit paquet
Expand Down
1 change: 1 addition & 0 deletions i18n/nl_NL.csv
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ myparcelnl_magento_dpd_settings/delivery_title, DPD bezorging
myparcelnl_magento_dpd_settings/pickup_title, DPD ophaallocatie
myparcelnl_magento_dpd_settings/delivery, DPD bezorging
myparcelnl_magento_dpd_settings/pickup, DPD ophaallocatie
myparcelnl_magento_dpd_settings/mailbox, DPD brievenbuspakje
myparcelnl_magento_error_no_shipments_to_process, Geen MyParcel zendingen om te verwerken.
package_small,Klein pakket
Packet,Klein pakket
Expand Down
1 change: 1 addition & 0 deletions view/frontend/web/js/view/delivery-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ define(
'myparcelnl_magento_ups_settings/delivery': 'config.carrierSettings.ups.priceStandardDelivery',
'myparcelnl_magento_dpd_settings/delivery': 'config.carrierSettings.dpd.priceStandardDelivery',
'myparcelnl_magento_dpd_settings/pickup': 'config.carrierSettings.dpd.pricePickup',
'myparcelnl_magento_dpd_settings/mailbox': 'config.carrierSettings.dpd.pricePackageTypeMailbox',
},

/**
Expand Down

0 comments on commit 4eaf22d

Please sign in to comment.