Plugin Directory

Changeset 3488939


Ignore:
Timestamp:
03/23/2026 11:55:07 AM (5 days ago)
Author:
vendidero
Message:

Release 4.1.8, see readme.txt for changelog.

Location:
shiptastic-integration-for-dhl
Files:
20 edited
1 copied

Legend:

Unmodified
Added
Removed
  • shiptastic-integration-for-dhl/tags/4.1.8/readme.txt

    r3432630 r3488939  
    33Tags: shipping, UPS, shiptastic, woocommerce
    44Requires at least: 5.4
    5 Tested up to: 6.9
    6 Stable tag: 4.1.7
     5Tested up to: 7.0
     6Stable tag: 4.1.8
    77Requires PHP: 7.0
    88License: GPLv3
     
    3434
    3535== Changelog ==
     36= 4.1.8 =
     37* Improvement: Prevent side-effects in parcel services logic
     38* Improvement: Import DHL settings during first install
     39* Improvement: Transmit phone number by default for international labels
     40
    3641= 4.1.7 =
    3742* Improvement: Register additional CDP countries
  • shiptastic-integration-for-dhl/tags/4.1.8/shiptastic-integration-for-dhl.php

    r3432630 r3488939  
    66 * Author: vendidero
    77 * Author URI: https://vendidero.de
    8  * Version: 4.1.7
     8 * Version: 4.1.8
    99 * Requires PHP: 7.0
    1010 * License: GPLv3
  • shiptastic-integration-for-dhl/tags/4.1.8/src/Admin/Importer/DHL.php

    r3313135 r3488939  
    77defined( 'ABSPATH' ) || exit;
    88
    9 /**
    10  * WC_Admin class.
    11  */
    129class DHL {
    13 
    1410    public static function is_available() {
    1511        $options  = get_option( 'woocommerce_pr_dhl_paket_settings' );
    16         $imported = get_option( 'woocommerc_stc_dhl_import_finished' );
     12        $imported = get_option( 'woocommerce_stc_dhl_import_finished' );
    1713        $user     = '';
    1814
     
    141137        $dhl->save();
    142138
     139        update_option( 'woocommerce_stc_dhl_import_finished', 'yes', false );
     140
    143141        return true;
    144142    }
    145143
    146144    public static function import_order_data( $limit = 10, $offset = 0 ) {
    147 
    148145        $orders = wc_get_orders(
    149146            array(
     
    158155        if ( ! empty( $orders ) ) {
    159156            foreach ( $orders as $order ) {
    160 
    161157                if ( ! $order->get_meta( '_shipping_address_type' ) ) {
    162 
    163158                    // Update order pickup type from official DHL plugin
    164159                    if ( self::order_has_pickup( $order ) ) {
    165 
    166160                        $order->update_meta_data( '_shipping_address_type', 'dhl' );
    167161                        $order->update_meta_data( '_shipping_dhl_postnumber', $order->get_meta( '_shipping_dhl_postnum' ) );
  • shiptastic-integration-for-dhl/tags/4.1.8/src/Admin/Importer/Internetmarke.php

    r3313135 r3488939  
    5050
    5151        $deutsche_post->save();
     52
     53        update_option( 'woocommerce_stc_internetmarke_import_finished', 'yes', false );
     54
    5255        return true;
    5356    }
  • shiptastic-integration-for-dhl/tags/4.1.8/src/Api/LabelRest.php

    r3357686 r3488939  
    349349                 * @package Vendidero/Shiptastic/DHL
    350350                 */
    351                 'phone'                         => apply_filters( 'woocommerce_shiptastic_dhl_label_api_communication_phone', '', $label ),
     351                'phone'                         => apply_filters( 'woocommerce_shiptastic_dhl_label_api_communication_phone', $shipment->is_shipping_international() ? $shipment->get_phone() : '', $label ),
    352352                /**
    353353                 * Choose whether to transfer the email to DHL on creating a label.
  • shiptastic-integration-for-dhl/tags/4.1.8/src/Install.php

    r3313135 r3488939  
    2020        if ( ! is_null( $current_version ) ) {
    2121            self::update( $current_version );
    22         } elseif ( Package::is_standalone() && ( $dhl = Package::get_dhl_shipping_provider() ) ) {
    23             $dhl->activate(); // Activate on new install
     22        } else {
     23            if ( Package::is_standalone() && ( $dhl = Package::get_dhl_shipping_provider() ) ) {
     24                $dhl->activate(); // Activate on new install
     25            }
     26
     27            if ( \Vendidero\Shiptastic\DHL\Admin\Importer\DHL::is_available() ) {
     28                \Vendidero\Shiptastic\DHL\Admin\Importer\DHL::import_settings();
     29            }
     30
     31            if ( \Vendidero\Shiptastic\DHL\Admin\Importer\Internetmarke::is_available() ) {
     32                if ( Package::is_standalone() && ( $dp = Package::get_deutsche_post_shipping_provider() ) ) {
     33                    $dp->activate(); // Activate on new install
     34                }
     35
     36                \Vendidero\Shiptastic\DHL\Admin\Importer\Internetmarke::import_settings();
     37            }
    2438        }
    2539
  • shiptastic-integration-for-dhl/tags/4.1.8/src/Package.php

    r3432630 r3488939  
    3333     * @var string
    3434     */
    35     const VERSION = '4.1.7';
     35    const VERSION = '4.1.8';
    3636
    3737    // These are all considered domestic by DHL
  • shiptastic-integration-for-dhl/tags/4.1.8/src/ParcelServices.php

    r3432630 r3488939  
    140140
    141141    protected static function get_posted_data() {
     142        $posted_data = array();
     143
    142144        if ( Package::is_rest_api_request() ) {
    143             $posted_data = array();
    144 
    145145            if ( WC()->session ) {
    146146                $posted_data['shipping_country'] = wc()->customer->get_shipping_country();
     
    156156                $posted_data['current_pickup_location'] = wc()->customer->get_meta( 'pickup_location_code' );
    157157            }
    158         } else {
     158        } elseif ( isset( $_POST['post_data'] ) || isset( $_REQUEST['woocommerce-process-checkout-nonce'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing, WordPress.Security.NonceVerification.Recommended
    159159            $posted_keys = array(
    160160                'dhl_preferred_location_type'             => '',
  • shiptastic-integration-for-dhl/tags/4.1.8/vendor/composer/installed.php

    r3432630 r3488939  
    22    'root' => array(
    33        'name' => 'vendidero/shiptastic-integration-for-dhl',
    4         'pretty_version' => '4.1.7',
    5         'version' => '4.1.7.0',
     4        'pretty_version' => '4.1.8',
     5        'version' => '4.1.8.0',
    66        'reference' => null,
    77        'type' => 'wordpress-plugin',
     
    4242        ),
    4343        'vendidero/shiptastic-integration-for-dhl' => array(
    44             'pretty_version' => '4.1.7',
    45             'version' => '4.1.7.0',
     44            'pretty_version' => '4.1.8',
     45            'version' => '4.1.8.0',
    4646            'reference' => null,
    4747            'type' => 'wordpress-plugin',
  • shiptastic-integration-for-dhl/tags/4.1.8/vendor/composer/jetpack_autoload_classmap.php

    r3432630 r3488939  
    484484    ),
    485485    'Vendidero\\Shiptastic\\DHL\\Admin\\Admin' => array(
    486         'version' => '4.1.7.0',
     486        'version' => '4.1.8.0',
    487487        'path'    => $baseDir . '/src/Admin/Admin.php'
    488488    ),
    489489    'Vendidero\\Shiptastic\\DHL\\Admin\\Importer\\DHL' => array(
    490         'version' => '4.1.7.0',
     490        'version' => '4.1.8.0',
    491491        'path'    => $baseDir . '/src/Admin/Importer/DHL.php'
    492492    ),
    493493    'Vendidero\\Shiptastic\\DHL\\Admin\\Importer\\Internetmarke' => array(
    494         'version' => '4.1.7.0',
     494        'version' => '4.1.8.0',
    495495        'path'    => $baseDir . '/src/Admin/Importer/Internetmarke.php'
    496496    ),
    497497    'Vendidero\\Shiptastic\\DHL\\Ajax' => array(
    498         'version' => '4.1.7.0',
     498        'version' => '4.1.8.0',
    499499        'path'    => $baseDir . '/src/Ajax.php'
    500500    ),
    501501    'Vendidero\\Shiptastic\\DHL\\Api\\ApiKeyAuth' => array(
    502         'version' => '4.1.7.0',
     502        'version' => '4.1.8.0',
    503503        'path'    => $baseDir . '/src/Api/ApiKeyAuth.php'
    504504    ),
    505505    'Vendidero\\Shiptastic\\DHL\\Api\\AuthSoap' => array(
    506         'version' => '4.1.7.0',
     506        'version' => '4.1.8.0',
    507507        'path'    => $baseDir . '/src/Api/AuthSoap.php'
    508508    ),
    509509    'Vendidero\\Shiptastic\\DHL\\Api\\BasicAuthPaket' => array(
    510         'version' => '4.1.7.0',
     510        'version' => '4.1.8.0',
    511511        'path'    => $baseDir . '/src/Api/BasicAuthPaket.php'
    512512    ),
    513513    'Vendidero\\Shiptastic\\DHL\\Api\\BasicAuthParcelServices' => array(
    514         'version' => '4.1.7.0',
     514        'version' => '4.1.8.0',
    515515        'path'    => $baseDir . '/src/Api/BasicAuthParcelServices.php'
    516516    ),
    517517    'Vendidero\\Shiptastic\\DHL\\Api\\BasicAuthParcelTracking' => array(
    518         'version' => '4.1.7.0',
     518        'version' => '4.1.8.0',
    519519        'path'    => $baseDir . '/src/Api/BasicAuthParcelTracking.php'
    520520    ),
    521521    'Vendidero\\Shiptastic\\DHL\\Api\\ImProductList' => array(
    522         'version' => '4.1.7.0',
     522        'version' => '4.1.8.0',
    523523        'path'    => $baseDir . '/src/Api/ImProductList.php'
    524524    ),
    525525    'Vendidero\\Shiptastic\\DHL\\Api\\ImProductsSoap' => array(
    526         'version' => '4.1.7.0',
     526        'version' => '4.1.8.0',
    527527        'path'    => $baseDir . '/src/Api/ImProductsSoap.php'
    528528    ),
    529529    'Vendidero\\Shiptastic\\DHL\\Api\\Internetmarke' => array(
    530         'version' => '4.1.7.0',
     530        'version' => '4.1.8.0',
    531531        'path'    => $baseDir . '/src/Api/Internetmarke.php'
    532532    ),
    533533    'Vendidero\\Shiptastic\\DHL\\Api\\InternetmarkeAuth' => array(
    534         'version' => '4.1.7.0',
     534        'version' => '4.1.8.0',
    535535        'path'    => $baseDir . '/src/Api/InternetmarkeAuth.php'
    536536    ),
    537537    'Vendidero\\Shiptastic\\DHL\\Api\\InternetmarkeRest' => array(
    538         'version' => '4.1.7.0',
     538        'version' => '4.1.8.0',
    539539        'path'    => $baseDir . '/src/Api/InternetmarkeRest.php'
    540540    ),
    541541    'Vendidero\\Shiptastic\\DHL\\Api\\LabelRest' => array(
    542         'version' => '4.1.7.0',
     542        'version' => '4.1.8.0',
    543543        'path'    => $baseDir . '/src/Api/LabelRest.php'
    544544    ),
    545545    'Vendidero\\Shiptastic\\DHL\\Api\\LabelSoap' => array(
    546         'version' => '4.1.7.0',
     546        'version' => '4.1.8.0',
    547547        'path'    => $baseDir . '/src/Api/LabelSoap.php'
    548548    ),
    549549    'Vendidero\\Shiptastic\\DHL\\Api\\LocationFinder' => array(
    550         'version' => '4.1.7.0',
     550        'version' => '4.1.8.0',
    551551        'path'    => $baseDir . '/src/Api/LocationFinder.php'
    552552    ),
    553553    'Vendidero\\Shiptastic\\DHL\\Api\\MyAccount' => array(
    554         'version' => '4.1.7.0',
     554        'version' => '4.1.8.0',
    555555        'path'    => $baseDir . '/src/Api/MyAccount.php'
    556556    ),
    557557    'Vendidero\\Shiptastic\\DHL\\Api\\OAuthPaket' => array(
    558         'version' => '4.1.7.0',
     558        'version' => '4.1.8.0',
    559559        'path'    => $baseDir . '/src/Api/OAuthPaket.php'
    560560    ),
    561561    'Vendidero\\Shiptastic\\DHL\\Api\\Paket' => array(
    562         'version' => '4.1.7.0',
     562        'version' => '4.1.8.0',
    563563        'path'    => $baseDir . '/src/Api/Paket.php'
    564564    ),
    565565    'Vendidero\\Shiptastic\\DHL\\Api\\PaketRest' => array(
    566         'version' => '4.1.7.0',
     566        'version' => '4.1.8.0',
    567567        'path'    => $baseDir . '/src/Api/PaketRest.php'
    568568    ),
    569569    'Vendidero\\Shiptastic\\DHL\\Api\\ParcelServices' => array(
    570         'version' => '4.1.7.0',
     570        'version' => '4.1.8.0',
    571571        'path'    => $baseDir . '/src/Api/ParcelServices.php'
    572572    ),
    573573    'Vendidero\\Shiptastic\\DHL\\Api\\ParcelTracking' => array(
    574         'version' => '4.1.7.0',
     574        'version' => '4.1.8.0',
    575575        'path'    => $baseDir . '/src/Api/ParcelTracking.php'
    576576    ),
    577577    'Vendidero\\Shiptastic\\DHL\\Api\\ReturnRest' => array(
    578         'version' => '4.1.7.0',
     578        'version' => '4.1.8.0',
    579579        'path'    => $baseDir . '/src/Api/ReturnRest.php'
    580580    ),
    581581    'Vendidero\\Shiptastic\\DHL\\Api\\Soap' => array(
    582         'version' => '4.1.7.0',
     582        'version' => '4.1.8.0',
    583583        'path'    => $baseDir . '/src/Api/Soap.php'
    584584    ),
    585585    'Vendidero\\Shiptastic\\DHL\\Blocks\\Assets' => array(
    586         'version' => '4.1.7.0',
     586        'version' => '4.1.8.0',
    587587        'path'    => $baseDir . '/src/Blocks/Assets.php'
    588588    ),
    589589    'Vendidero\\Shiptastic\\DHL\\Blocks\\Integrations\\PreferredServices' => array(
    590         'version' => '4.1.7.0',
     590        'version' => '4.1.8.0',
    591591        'path'    => $baseDir . '/src/Blocks/Integrations/PreferredServices.php'
    592592    ),
    593593    'Vendidero\\Shiptastic\\DHL\\Blocks\\PreferredServices' => array(
    594         'version' => '4.1.7.0',
     594        'version' => '4.1.8.0',
    595595        'path'    => $baseDir . '/src/Blocks/PreferredServices.php'
    596596    ),
    597597    'Vendidero\\Shiptastic\\DHL\\Bootstrap' => array(
    598         'version' => '4.1.7.0',
     598        'version' => '4.1.8.0',
    599599        'path'    => $baseDir . '/src/Bootstrap.php'
    600600    ),
    601601    'Vendidero\\Shiptastic\\DHL\\Install' => array(
    602         'version' => '4.1.7.0',
     602        'version' => '4.1.8.0',
    603603        'path'    => $baseDir . '/src/Install.php'
    604604    ),
    605605    'Vendidero\\Shiptastic\\DHL\\Label\\DHL' => array(
    606         'version' => '4.1.7.0',
     606        'version' => '4.1.8.0',
    607607        'path'    => $baseDir . '/src/Label/DHL.php'
    608608    ),
    609609    'Vendidero\\Shiptastic\\DHL\\Label\\DHLInlayReturn' => array(
    610         'version' => '4.1.7.0',
     610        'version' => '4.1.8.0',
    611611        'path'    => $baseDir . '/src/Label/DHLInlayReturn.php'
    612612    ),
    613613    'Vendidero\\Shiptastic\\DHL\\Label\\DHLReturn' => array(
    614         'version' => '4.1.7.0',
     614        'version' => '4.1.8.0',
    615615        'path'    => $baseDir . '/src/Label/DHLReturn.php'
    616616    ),
    617617    'Vendidero\\Shiptastic\\DHL\\Label\\DeutschePost' => array(
    618         'version' => '4.1.7.0',
     618        'version' => '4.1.8.0',
    619619        'path'    => $baseDir . '/src/Label/DeutschePost.php'
    620620    ),
    621621    'Vendidero\\Shiptastic\\DHL\\Label\\DeutschePostReturn' => array(
    622         'version' => '4.1.7.0',
     622        'version' => '4.1.8.0',
    623623        'path'    => $baseDir . '/src/Label/DeutschePostReturn.php'
    624624    ),
    625625    'Vendidero\\Shiptastic\\DHL\\Label\\Label' => array(
    626         'version' => '4.1.7.0',
     626        'version' => '4.1.8.0',
    627627        'path'    => $baseDir . '/src/Label/Label.php'
    628628    ),
    629629    'Vendidero\\Shiptastic\\DHL\\Label\\ReturnLabel' => array(
    630         'version' => '4.1.7.0',
     630        'version' => '4.1.8.0',
    631631        'path'    => $baseDir . '/src/Label/ReturnLabel.php'
    632632    ),
    633633    'Vendidero\\Shiptastic\\DHL\\Order' => array(
    634         'version' => '4.1.7.0',
     634        'version' => '4.1.8.0',
    635635        'path'    => $baseDir . '/src/Order.php'
    636636    ),
    637637    'Vendidero\\Shiptastic\\DHL\\Package' => array(
    638         'version' => '4.1.7.0',
     638        'version' => '4.1.8.0',
    639639        'path'    => $baseDir . '/src/Package.php'
    640640    ),
    641641    'Vendidero\\Shiptastic\\DHL\\ParcelLocator' => array(
    642         'version' => '4.1.7.0',
     642        'version' => '4.1.8.0',
    643643        'path'    => $baseDir . '/src/ParcelLocator.php'
    644644    ),
    645645    'Vendidero\\Shiptastic\\DHL\\ParcelServices' => array(
    646         'version' => '4.1.7.0',
     646        'version' => '4.1.8.0',
    647647        'path'    => $baseDir . '/src/ParcelServices.php'
    648648    ),
    649649    'Vendidero\\Shiptastic\\DHL\\Product' => array(
    650         'version' => '4.1.7.0',
     650        'version' => '4.1.8.0',
    651651        'path'    => $baseDir . '/src/Product.php'
    652652    ),
    653653    'Vendidero\\Shiptastic\\DHL\\ShippingProvider\\DHL' => array(
    654         'version' => '4.1.7.0',
     654        'version' => '4.1.8.0',
    655655        'path'    => $baseDir . '/src/ShippingProvider/DHL.php'
    656656    ),
    657657    'Vendidero\\Shiptastic\\DHL\\ShippingProvider\\DeutschePost' => array(
    658         'version' => '4.1.7.0',
     658        'version' => '4.1.8.0',
    659659        'path'    => $baseDir . '/src/ShippingProvider/DeutschePost.php'
    660660    ),
    661661    'Vendidero\\Shiptastic\\DHL\\ShippingProvider\\PickupDeliveryTrait' => array(
    662         'version' => '4.1.7.0',
     662        'version' => '4.1.8.0',
    663663        'path'    => $baseDir . '/src/ShippingProvider/PickupDeliveryTrait.php'
    664664    ),
    665665    'Vendidero\\Shiptastic\\DHL\\ShippingProvider\\PickupLocation' => array(
    666         'version' => '4.1.7.0',
     666        'version' => '4.1.8.0',
    667667        'path'    => $baseDir . '/src/ShippingProvider/PickupLocation.php'
    668668    ),
    669669    'Vendidero\\Shiptastic\\DHL\\ShippingProvider\\Services\\AdditionalInsurance' => array(
    670         'version' => '4.1.7.0',
     670        'version' => '4.1.8.0',
    671671        'path'    => $baseDir . '/src/ShippingProvider/Services/AdditionalInsurance.php'
    672672    ),
    673673    'Vendidero\\Shiptastic\\DHL\\ShippingProvider\\Services\\CashOnDelivery' => array(
    674         'version' => '4.1.7.0',
     674        'version' => '4.1.8.0',
    675675        'path'    => $baseDir . '/src/ShippingProvider/Services/CashOnDelivery.php'
    676676    ),
    677677    'Vendidero\\Shiptastic\\DHL\\ShippingProvider\\Services\\ClosestDropPoint' => array(
    678         'version' => '4.1.7.0',
     678        'version' => '4.1.8.0',
    679679        'path'    => $baseDir . '/src/ShippingProvider/Services/ClosestDropPoint.php'
    680680    ),
    681681    'Vendidero\\Shiptastic\\DHL\\ShippingProvider\\Services\\DHLRetoure' => array(
    682         'version' => '4.1.7.0',
     682        'version' => '4.1.8.0',
    683683        'path'    => $baseDir . '/src/ShippingProvider/Services/DHLRetoure.php'
    684684    ),
    685685    'Vendidero\\Shiptastic\\DHL\\ShippingProvider\\Services\\IdentCheck' => array(
    686         'version' => '4.1.7.0',
     686        'version' => '4.1.8.0',
    687687        'path'    => $baseDir . '/src/ShippingProvider/Services/IdentCheck.php'
    688688    ),
    689689    'Vendidero\\Shiptastic\\DHL\\ShippingProvider\\Services\\PreferredDay' => array(
    690         'version' => '4.1.7.0',
     690        'version' => '4.1.8.0',
    691691        'path'    => $baseDir . '/src/ShippingProvider/Services/PreferredDay.php'
    692692    ),
    693693    'Vendidero\\Shiptastic\\DHL\\ShippingProvider\\Services\\PreferredLocation' => array(
    694         'version' => '4.1.7.0',
     694        'version' => '4.1.8.0',
    695695        'path'    => $baseDir . '/src/ShippingProvider/Services/PreferredLocation.php'
    696696    ),
    697697    'Vendidero\\Shiptastic\\DHL\\ShippingProvider\\Services\\PreferredNeighbour' => array(
    698         'version' => '4.1.7.0',
     698        'version' => '4.1.8.0',
    699699        'path'    => $baseDir . '/src/ShippingProvider/Services/PreferredNeighbour.php'
    700700    ),
    701701    'Vendidero\\Shiptastic\\DHL\\ShippingProvider\\Services\\VisualCheckOfAge' => array(
    702         'version' => '4.1.7.0',
     702        'version' => '4.1.8.0',
    703703        'path'    => $baseDir . '/src/ShippingProvider/Services/VisualCheckOfAge.php'
    704704    ),
  • shiptastic-integration-for-dhl/trunk/readme.txt

    r3432630 r3488939  
    33Tags: shipping, UPS, shiptastic, woocommerce
    44Requires at least: 5.4
    5 Tested up to: 6.9
    6 Stable tag: 4.1.7
     5Tested up to: 7.0
     6Stable tag: 4.1.8
    77Requires PHP: 7.0
    88License: GPLv3
     
    3434
    3535== Changelog ==
     36= 4.1.8 =
     37* Improvement: Prevent side-effects in parcel services logic
     38* Improvement: Import DHL settings during first install
     39* Improvement: Transmit phone number by default for international labels
     40
    3641= 4.1.7 =
    3742* Improvement: Register additional CDP countries
  • shiptastic-integration-for-dhl/trunk/shiptastic-integration-for-dhl.php

    r3432630 r3488939  
    66 * Author: vendidero
    77 * Author URI: https://vendidero.de
    8  * Version: 4.1.7
     8 * Version: 4.1.8
    99 * Requires PHP: 7.0
    1010 * License: GPLv3
  • shiptastic-integration-for-dhl/trunk/src/Admin/Importer/DHL.php

    r3313135 r3488939  
    77defined( 'ABSPATH' ) || exit;
    88
    9 /**
    10  * WC_Admin class.
    11  */
    129class DHL {
    13 
    1410    public static function is_available() {
    1511        $options  = get_option( 'woocommerce_pr_dhl_paket_settings' );
    16         $imported = get_option( 'woocommerc_stc_dhl_import_finished' );
     12        $imported = get_option( 'woocommerce_stc_dhl_import_finished' );
    1713        $user     = '';
    1814
     
    141137        $dhl->save();
    142138
     139        update_option( 'woocommerce_stc_dhl_import_finished', 'yes', false );
     140
    143141        return true;
    144142    }
    145143
    146144    public static function import_order_data( $limit = 10, $offset = 0 ) {
    147 
    148145        $orders = wc_get_orders(
    149146            array(
     
    158155        if ( ! empty( $orders ) ) {
    159156            foreach ( $orders as $order ) {
    160 
    161157                if ( ! $order->get_meta( '_shipping_address_type' ) ) {
    162 
    163158                    // Update order pickup type from official DHL plugin
    164159                    if ( self::order_has_pickup( $order ) ) {
    165 
    166160                        $order->update_meta_data( '_shipping_address_type', 'dhl' );
    167161                        $order->update_meta_data( '_shipping_dhl_postnumber', $order->get_meta( '_shipping_dhl_postnum' ) );
  • shiptastic-integration-for-dhl/trunk/src/Admin/Importer/Internetmarke.php

    r3313135 r3488939  
    5050
    5151        $deutsche_post->save();
     52
     53        update_option( 'woocommerce_stc_internetmarke_import_finished', 'yes', false );
     54
    5255        return true;
    5356    }
  • shiptastic-integration-for-dhl/trunk/src/Api/LabelRest.php

    r3357686 r3488939  
    349349                 * @package Vendidero/Shiptastic/DHL
    350350                 */
    351                 'phone'                         => apply_filters( 'woocommerce_shiptastic_dhl_label_api_communication_phone', '', $label ),
     351                'phone'                         => apply_filters( 'woocommerce_shiptastic_dhl_label_api_communication_phone', $shipment->is_shipping_international() ? $shipment->get_phone() : '', $label ),
    352352                /**
    353353                 * Choose whether to transfer the email to DHL on creating a label.
  • shiptastic-integration-for-dhl/trunk/src/Install.php

    r3313135 r3488939  
    2020        if ( ! is_null( $current_version ) ) {
    2121            self::update( $current_version );
    22         } elseif ( Package::is_standalone() && ( $dhl = Package::get_dhl_shipping_provider() ) ) {
    23             $dhl->activate(); // Activate on new install
     22        } else {
     23            if ( Package::is_standalone() && ( $dhl = Package::get_dhl_shipping_provider() ) ) {
     24                $dhl->activate(); // Activate on new install
     25            }
     26
     27            if ( \Vendidero\Shiptastic\DHL\Admin\Importer\DHL::is_available() ) {
     28                \Vendidero\Shiptastic\DHL\Admin\Importer\DHL::import_settings();
     29            }
     30
     31            if ( \Vendidero\Shiptastic\DHL\Admin\Importer\Internetmarke::is_available() ) {
     32                if ( Package::is_standalone() && ( $dp = Package::get_deutsche_post_shipping_provider() ) ) {
     33                    $dp->activate(); // Activate on new install
     34                }
     35
     36                \Vendidero\Shiptastic\DHL\Admin\Importer\Internetmarke::import_settings();
     37            }
    2438        }
    2539
  • shiptastic-integration-for-dhl/trunk/src/Package.php

    r3432630 r3488939  
    3333     * @var string
    3434     */
    35     const VERSION = '4.1.7';
     35    const VERSION = '4.1.8';
    3636
    3737    // These are all considered domestic by DHL
  • shiptastic-integration-for-dhl/trunk/src/ParcelServices.php

    r3432630 r3488939  
    140140
    141141    protected static function get_posted_data() {
     142        $posted_data = array();
     143
    142144        if ( Package::is_rest_api_request() ) {
    143             $posted_data = array();
    144 
    145145            if ( WC()->session ) {
    146146                $posted_data['shipping_country'] = wc()->customer->get_shipping_country();
     
    156156                $posted_data['current_pickup_location'] = wc()->customer->get_meta( 'pickup_location_code' );
    157157            }
    158         } else {
     158        } elseif ( isset( $_POST['post_data'] ) || isset( $_REQUEST['woocommerce-process-checkout-nonce'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing, WordPress.Security.NonceVerification.Recommended
    159159            $posted_keys = array(
    160160                'dhl_preferred_location_type'             => '',
  • shiptastic-integration-for-dhl/trunk/vendor/composer/installed.php

    r3432630 r3488939  
    22    'root' => array(
    33        'name' => 'vendidero/shiptastic-integration-for-dhl',
    4         'pretty_version' => '4.1.7',
    5         'version' => '4.1.7.0',
     4        'pretty_version' => '4.1.8',
     5        'version' => '4.1.8.0',
    66        'reference' => null,
    77        'type' => 'wordpress-plugin',
     
    4242        ),
    4343        'vendidero/shiptastic-integration-for-dhl' => array(
    44             'pretty_version' => '4.1.7',
    45             'version' => '4.1.7.0',
     44            'pretty_version' => '4.1.8',
     45            'version' => '4.1.8.0',
    4646            'reference' => null,
    4747            'type' => 'wordpress-plugin',
  • shiptastic-integration-for-dhl/trunk/vendor/composer/jetpack_autoload_classmap.php

    r3432630 r3488939  
    484484    ),
    485485    'Vendidero\\Shiptastic\\DHL\\Admin\\Admin' => array(
    486         'version' => '4.1.7.0',
     486        'version' => '4.1.8.0',
    487487        'path'    => $baseDir . '/src/Admin/Admin.php'
    488488    ),
    489489    'Vendidero\\Shiptastic\\DHL\\Admin\\Importer\\DHL' => array(
    490         'version' => '4.1.7.0',
     490        'version' => '4.1.8.0',
    491491        'path'    => $baseDir . '/src/Admin/Importer/DHL.php'
    492492    ),
    493493    'Vendidero\\Shiptastic\\DHL\\Admin\\Importer\\Internetmarke' => array(
    494         'version' => '4.1.7.0',
     494        'version' => '4.1.8.0',
    495495        'path'    => $baseDir . '/src/Admin/Importer/Internetmarke.php'
    496496    ),
    497497    'Vendidero\\Shiptastic\\DHL\\Ajax' => array(
    498         'version' => '4.1.7.0',
     498        'version' => '4.1.8.0',
    499499        'path'    => $baseDir . '/src/Ajax.php'
    500500    ),
    501501    'Vendidero\\Shiptastic\\DHL\\Api\\ApiKeyAuth' => array(
    502         'version' => '4.1.7.0',
     502        'version' => '4.1.8.0',
    503503        'path'    => $baseDir . '/src/Api/ApiKeyAuth.php'
    504504    ),
    505505    'Vendidero\\Shiptastic\\DHL\\Api\\AuthSoap' => array(
    506         'version' => '4.1.7.0',
     506        'version' => '4.1.8.0',
    507507        'path'    => $baseDir . '/src/Api/AuthSoap.php'
    508508    ),
    509509    'Vendidero\\Shiptastic\\DHL\\Api\\BasicAuthPaket' => array(
    510         'version' => '4.1.7.0',
     510        'version' => '4.1.8.0',
    511511        'path'    => $baseDir . '/src/Api/BasicAuthPaket.php'
    512512    ),
    513513    'Vendidero\\Shiptastic\\DHL\\Api\\BasicAuthParcelServices' => array(
    514         'version' => '4.1.7.0',
     514        'version' => '4.1.8.0',
    515515        'path'    => $baseDir . '/src/Api/BasicAuthParcelServices.php'
    516516    ),
    517517    'Vendidero\\Shiptastic\\DHL\\Api\\BasicAuthParcelTracking' => array(
    518         'version' => '4.1.7.0',
     518        'version' => '4.1.8.0',
    519519        'path'    => $baseDir . '/src/Api/BasicAuthParcelTracking.php'
    520520    ),
    521521    'Vendidero\\Shiptastic\\DHL\\Api\\ImProductList' => array(
    522         'version' => '4.1.7.0',
     522        'version' => '4.1.8.0',
    523523        'path'    => $baseDir . '/src/Api/ImProductList.php'
    524524    ),
    525525    'Vendidero\\Shiptastic\\DHL\\Api\\ImProductsSoap' => array(
    526         'version' => '4.1.7.0',
     526        'version' => '4.1.8.0',
    527527        'path'    => $baseDir . '/src/Api/ImProductsSoap.php'
    528528    ),
    529529    'Vendidero\\Shiptastic\\DHL\\Api\\Internetmarke' => array(
    530         'version' => '4.1.7.0',
     530        'version' => '4.1.8.0',
    531531        'path'    => $baseDir . '/src/Api/Internetmarke.php'
    532532    ),
    533533    'Vendidero\\Shiptastic\\DHL\\Api\\InternetmarkeAuth' => array(
    534         'version' => '4.1.7.0',
     534        'version' => '4.1.8.0',
    535535        'path'    => $baseDir . '/src/Api/InternetmarkeAuth.php'
    536536    ),
    537537    'Vendidero\\Shiptastic\\DHL\\Api\\InternetmarkeRest' => array(
    538         'version' => '4.1.7.0',
     538        'version' => '4.1.8.0',
    539539        'path'    => $baseDir . '/src/Api/InternetmarkeRest.php'
    540540    ),
    541541    'Vendidero\\Shiptastic\\DHL\\Api\\LabelRest' => array(
    542         'version' => '4.1.7.0',
     542        'version' => '4.1.8.0',
    543543        'path'    => $baseDir . '/src/Api/LabelRest.php'
    544544    ),
    545545    'Vendidero\\Shiptastic\\DHL\\Api\\LabelSoap' => array(
    546         'version' => '4.1.7.0',
     546        'version' => '4.1.8.0',
    547547        'path'    => $baseDir . '/src/Api/LabelSoap.php'
    548548    ),
    549549    'Vendidero\\Shiptastic\\DHL\\Api\\LocationFinder' => array(
    550         'version' => '4.1.7.0',
     550        'version' => '4.1.8.0',
    551551        'path'    => $baseDir . '/src/Api/LocationFinder.php'
    552552    ),
    553553    'Vendidero\\Shiptastic\\DHL\\Api\\MyAccount' => array(
    554         'version' => '4.1.7.0',
     554        'version' => '4.1.8.0',
    555555        'path'    => $baseDir . '/src/Api/MyAccount.php'
    556556    ),
    557557    'Vendidero\\Shiptastic\\DHL\\Api\\OAuthPaket' => array(
    558         'version' => '4.1.7.0',
     558        'version' => '4.1.8.0',
    559559        'path'    => $baseDir . '/src/Api/OAuthPaket.php'
    560560    ),
    561561    'Vendidero\\Shiptastic\\DHL\\Api\\Paket' => array(
    562         'version' => '4.1.7.0',
     562        'version' => '4.1.8.0',
    563563        'path'    => $baseDir . '/src/Api/Paket.php'
    564564    ),
    565565    'Vendidero\\Shiptastic\\DHL\\Api\\PaketRest' => array(
    566         'version' => '4.1.7.0',
     566        'version' => '4.1.8.0',
    567567        'path'    => $baseDir . '/src/Api/PaketRest.php'
    568568    ),
    569569    'Vendidero\\Shiptastic\\DHL\\Api\\ParcelServices' => array(
    570         'version' => '4.1.7.0',
     570        'version' => '4.1.8.0',
    571571        'path'    => $baseDir . '/src/Api/ParcelServices.php'
    572572    ),
    573573    'Vendidero\\Shiptastic\\DHL\\Api\\ParcelTracking' => array(
    574         'version' => '4.1.7.0',
     574        'version' => '4.1.8.0',
    575575        'path'    => $baseDir . '/src/Api/ParcelTracking.php'
    576576    ),
    577577    'Vendidero\\Shiptastic\\DHL\\Api\\ReturnRest' => array(
    578         'version' => '4.1.7.0',
     578        'version' => '4.1.8.0',
    579579        'path'    => $baseDir . '/src/Api/ReturnRest.php'
    580580    ),
    581581    'Vendidero\\Shiptastic\\DHL\\Api\\Soap' => array(
    582         'version' => '4.1.7.0',
     582        'version' => '4.1.8.0',
    583583        'path'    => $baseDir . '/src/Api/Soap.php'
    584584    ),
    585585    'Vendidero\\Shiptastic\\DHL\\Blocks\\Assets' => array(
    586         'version' => '4.1.7.0',
     586        'version' => '4.1.8.0',
    587587        'path'    => $baseDir . '/src/Blocks/Assets.php'
    588588    ),
    589589    'Vendidero\\Shiptastic\\DHL\\Blocks\\Integrations\\PreferredServices' => array(
    590         'version' => '4.1.7.0',
     590        'version' => '4.1.8.0',
    591591        'path'    => $baseDir . '/src/Blocks/Integrations/PreferredServices.php'
    592592    ),
    593593    'Vendidero\\Shiptastic\\DHL\\Blocks\\PreferredServices' => array(
    594         'version' => '4.1.7.0',
     594        'version' => '4.1.8.0',
    595595        'path'    => $baseDir . '/src/Blocks/PreferredServices.php'
    596596    ),
    597597    'Vendidero\\Shiptastic\\DHL\\Bootstrap' => array(
    598         'version' => '4.1.7.0',
     598        'version' => '4.1.8.0',
    599599        'path'    => $baseDir . '/src/Bootstrap.php'
    600600    ),
    601601    'Vendidero\\Shiptastic\\DHL\\Install' => array(
    602         'version' => '4.1.7.0',
     602        'version' => '4.1.8.0',
    603603        'path'    => $baseDir . '/src/Install.php'
    604604    ),
    605605    'Vendidero\\Shiptastic\\DHL\\Label\\DHL' => array(
    606         'version' => '4.1.7.0',
     606        'version' => '4.1.8.0',
    607607        'path'    => $baseDir . '/src/Label/DHL.php'
    608608    ),
    609609    'Vendidero\\Shiptastic\\DHL\\Label\\DHLInlayReturn' => array(
    610         'version' => '4.1.7.0',
     610        'version' => '4.1.8.0',
    611611        'path'    => $baseDir . '/src/Label/DHLInlayReturn.php'
    612612    ),
    613613    'Vendidero\\Shiptastic\\DHL\\Label\\DHLReturn' => array(
    614         'version' => '4.1.7.0',
     614        'version' => '4.1.8.0',
    615615        'path'    => $baseDir . '/src/Label/DHLReturn.php'
    616616    ),
    617617    'Vendidero\\Shiptastic\\DHL\\Label\\DeutschePost' => array(
    618         'version' => '4.1.7.0',
     618        'version' => '4.1.8.0',
    619619        'path'    => $baseDir . '/src/Label/DeutschePost.php'
    620620    ),
    621621    'Vendidero\\Shiptastic\\DHL\\Label\\DeutschePostReturn' => array(
    622         'version' => '4.1.7.0',
     622        'version' => '4.1.8.0',
    623623        'path'    => $baseDir . '/src/Label/DeutschePostReturn.php'
    624624    ),
    625625    'Vendidero\\Shiptastic\\DHL\\Label\\Label' => array(
    626         'version' => '4.1.7.0',
     626        'version' => '4.1.8.0',
    627627        'path'    => $baseDir . '/src/Label/Label.php'
    628628    ),
    629629    'Vendidero\\Shiptastic\\DHL\\Label\\ReturnLabel' => array(
    630         'version' => '4.1.7.0',
     630        'version' => '4.1.8.0',
    631631        'path'    => $baseDir . '/src/Label/ReturnLabel.php'
    632632    ),
    633633    'Vendidero\\Shiptastic\\DHL\\Order' => array(
    634         'version' => '4.1.7.0',
     634        'version' => '4.1.8.0',
    635635        'path'    => $baseDir . '/src/Order.php'
    636636    ),
    637637    'Vendidero\\Shiptastic\\DHL\\Package' => array(
    638         'version' => '4.1.7.0',
     638        'version' => '4.1.8.0',
    639639        'path'    => $baseDir . '/src/Package.php'
    640640    ),
    641641    'Vendidero\\Shiptastic\\DHL\\ParcelLocator' => array(
    642         'version' => '4.1.7.0',
     642        'version' => '4.1.8.0',
    643643        'path'    => $baseDir . '/src/ParcelLocator.php'
    644644    ),
    645645    'Vendidero\\Shiptastic\\DHL\\ParcelServices' => array(
    646         'version' => '4.1.7.0',
     646        'version' => '4.1.8.0',
    647647        'path'    => $baseDir . '/src/ParcelServices.php'
    648648    ),
    649649    'Vendidero\\Shiptastic\\DHL\\Product' => array(
    650         'version' => '4.1.7.0',
     650        'version' => '4.1.8.0',
    651651        'path'    => $baseDir . '/src/Product.php'
    652652    ),
    653653    'Vendidero\\Shiptastic\\DHL\\ShippingProvider\\DHL' => array(
    654         'version' => '4.1.7.0',
     654        'version' => '4.1.8.0',
    655655        'path'    => $baseDir . '/src/ShippingProvider/DHL.php'
    656656    ),
    657657    'Vendidero\\Shiptastic\\DHL\\ShippingProvider\\DeutschePost' => array(
    658         'version' => '4.1.7.0',
     658        'version' => '4.1.8.0',
    659659        'path'    => $baseDir . '/src/ShippingProvider/DeutschePost.php'
    660660    ),
    661661    'Vendidero\\Shiptastic\\DHL\\ShippingProvider\\PickupDeliveryTrait' => array(
    662         'version' => '4.1.7.0',
     662        'version' => '4.1.8.0',
    663663        'path'    => $baseDir . '/src/ShippingProvider/PickupDeliveryTrait.php'
    664664    ),
    665665    'Vendidero\\Shiptastic\\DHL\\ShippingProvider\\PickupLocation' => array(
    666         'version' => '4.1.7.0',
     666        'version' => '4.1.8.0',
    667667        'path'    => $baseDir . '/src/ShippingProvider/PickupLocation.php'
    668668    ),
    669669    'Vendidero\\Shiptastic\\DHL\\ShippingProvider\\Services\\AdditionalInsurance' => array(
    670         'version' => '4.1.7.0',
     670        'version' => '4.1.8.0',
    671671        'path'    => $baseDir . '/src/ShippingProvider/Services/AdditionalInsurance.php'
    672672    ),
    673673    'Vendidero\\Shiptastic\\DHL\\ShippingProvider\\Services\\CashOnDelivery' => array(
    674         'version' => '4.1.7.0',
     674        'version' => '4.1.8.0',
    675675        'path'    => $baseDir . '/src/ShippingProvider/Services/CashOnDelivery.php'
    676676    ),
    677677    'Vendidero\\Shiptastic\\DHL\\ShippingProvider\\Services\\ClosestDropPoint' => array(
    678         'version' => '4.1.7.0',
     678        'version' => '4.1.8.0',
    679679        'path'    => $baseDir . '/src/ShippingProvider/Services/ClosestDropPoint.php'
    680680    ),
    681681    'Vendidero\\Shiptastic\\DHL\\ShippingProvider\\Services\\DHLRetoure' => array(
    682         'version' => '4.1.7.0',
     682        'version' => '4.1.8.0',
    683683        'path'    => $baseDir . '/src/ShippingProvider/Services/DHLRetoure.php'
    684684    ),
    685685    'Vendidero\\Shiptastic\\DHL\\ShippingProvider\\Services\\IdentCheck' => array(
    686         'version' => '4.1.7.0',
     686        'version' => '4.1.8.0',
    687687        'path'    => $baseDir . '/src/ShippingProvider/Services/IdentCheck.php'
    688688    ),
    689689    'Vendidero\\Shiptastic\\DHL\\ShippingProvider\\Services\\PreferredDay' => array(
    690         'version' => '4.1.7.0',
     690        'version' => '4.1.8.0',
    691691        'path'    => $baseDir . '/src/ShippingProvider/Services/PreferredDay.php'
    692692    ),
    693693    'Vendidero\\Shiptastic\\DHL\\ShippingProvider\\Services\\PreferredLocation' => array(
    694         'version' => '4.1.7.0',
     694        'version' => '4.1.8.0',
    695695        'path'    => $baseDir . '/src/ShippingProvider/Services/PreferredLocation.php'
    696696    ),
    697697    'Vendidero\\Shiptastic\\DHL\\ShippingProvider\\Services\\PreferredNeighbour' => array(
    698         'version' => '4.1.7.0',
     698        'version' => '4.1.8.0',
    699699        'path'    => $baseDir . '/src/ShippingProvider/Services/PreferredNeighbour.php'
    700700    ),
    701701    'Vendidero\\Shiptastic\\DHL\\ShippingProvider\\Services\\VisualCheckOfAge' => array(
    702         'version' => '4.1.7.0',
     702        'version' => '4.1.8.0',
    703703        'path'    => $baseDir . '/src/ShippingProvider/Services/VisualCheckOfAge.php'
    704704    ),
Note: See TracChangeset for help on using the changeset viewer.