• Hello,
    I would like to ask if it is possible to add the order number as a reference to the shipping label as well?
    Probably between the accounting and tracking number on the label? Please let me know if there is already a functionality available that I may have overseen or if you plan to implement such a feature. Thank you in advance.
    Regards
    Manuel

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter mahevo

    (@mahevo)

    Any news? Thank you!

    Plugin Author Shadi Manna

    (@shadim)

    This is something we will have to discuss and plan out, the solution will likely be released in 2019 sometime.

    Thread Starter mahevo

    (@mahevo)

    Hi @shadim,

    thank you for the reply. Would you mind to give me a short update in this thread if there are any news? Thank you in advance.

    Regards
    Manuel

    We are very interested in this too,
    this was a feature already working back in the days with DHL Intraship.
    Also, being able to display the company logo (as is possible with “Gesch?ftskundenportal”) would be quite nice for WooCommerce orders.

    This should be possible via the “customerReference” Argument (in ShipmentOrder -> ShipmentDetails of e.g. a SOAP Request to the DHL API).

    From the DHL API docs:

    ShipmentOrder. Shipment. ShipmentDetails.
    customerReference String
    maxLength: 35 Optional A reference number that the client can assign for better association purposes. Appears on shipment label.

    In the meantime it would be great to have a filter on the return value of set_message() in dhl-for-woocommerce/includes/pr-dhl-api/class-pr-dhl-api-soap-label.php, e.g.:

    return apply_filters('pr_shipping_dhl_label_soap_message', $this->body_request);

    A filter for $dhl_label_body would work as well, before:

    // Unset/remove any items that are empty strings or 0, even if required!
    $this->body_request = $this->walk_recursive_remove( $dhl_label_body );

    (I know the pr_shipping_dhl_label_args filter exists, but that only allows manipulation of existing args, can’t add/inject anything to the request itself).

    Basically a one-liner for you Shadi without breaking anything, for my use case it’s probably enough. Wouldn’t need to hack it into the plugin itself (stays updateable).

    • This reply was modified 6 years, 2 months ago by sim0nm. Reason: fix typo
    Plugin Author Shadi Manna

    (@shadim)

    We are working to add the order id as a reference and the filters in future versions.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Display order number on the shipping label’ is closed to new replies.