• Resolved patjekadetje

    (@patjekadetje)


    Hi!
    I send an email to get direct help because I am using this in the Netherlands, but havent had anyone reply for over a week.

    Our version of the plugin isnt printing the Track and Trace number in the (private) order note. And because of this the company that deals with our bol.com/amazon/zalando orders can’t find the T&T code unless I put it in manually.

    The versions for other countries I can see that there is a option to turn this off or on, but not in our versions for Benelux?

    Am I overlooking something, is the plugin faulty installed? Can we achieve this by running a snippet code, and if so… what would this code be?

    PLease help because copy pasting is becoming stale really quick

    Thanks for your time and answers in advance

    • This topic was modified 2 years, 11 months ago by patjekadetje. Reason: typo
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Shadi Manna

    (@shadim)

    Thread Starter patjekadetje

    (@patjekadetje)

    Yes as I stated in my message, I sent a direct email but haven’t had a reaction (even now we are still waiting)

    So that’s the reason I am reaching out here.

    DHL couldn’t help me either, neither could our partner who needs the T&T

    Thread Starter patjekadetje

    (@patjekadetje)

    So…

    I am guessing everyone is having an early Christmas vacation?

    Goodmorning,

    Sorry for the late reply.
    We will build this option in Q1 in our woocommerce plugin.
    What is your accountnumber with DHL PARCEL?

    my DHL emailaddress: [email protected]

    Have a nice day,
    Johan

    Plugin Author Shin Ho

    (@shindhl)

    Hi @patjekadetje ,

    The DHL for WooCommerce plugin has been updated to 2.8.1 with a new available action hook.

    After updating the plugin, you can use this example snippet to create order notes now.

    // The following example code can be added to the child theme's functions.php file
    add_action('dhlpwc_create_label', 'dhlpwc_add_order_note_on_create_label', 10, 2);
    
    function dhlpwc_add_order_note_on_create_label($order_id, $label_data)
    {
        // Create an order note with create label data
        $order = new WC_Order($order_id);
        if ($label_data['is_return'] !== true) {
            $note = __('Creating label with tracking code: ' . $label_data['tracker_code']);
        } else {
            $note = __('Creating a return label with tracking code: ' . $label_data['tracker_code']);
        }
        $order->add_order_note($note);
    }

    Thank you for your patience!

    Greetings,
    Shin Ho
    Plugin Development Team
    DHL Parcel Netherlands

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[DHL Parcel] T&T code not in order notes’ is closed to new replies.