Support » Plugin: DHL Shipping Germany for WooCommerce » Private note setting and getTrackingCode API function

  • Resolved nachtigall

    (@nachtigall)


    Hi,

    nice to see this plugin, very much needed if you have a shop in Germany. So far I evaluated it and these are my show stopper why I cannot use it as it is at the moment:

    1. We have customized mails. I definitely want not that the “Generate Label” triggers an email to the customer. Can this be made a setting so that I can chose whether this should be a private note instead of a customer note? I saw another user has the same request at https://wordpress.org/support/topic/generate-label-sends-mail-to-customer/ (I certainly do not want to fiddle with the js sources on a production server and also would prefer to not to have to patch this plugin; also I cannot disable customer notes mails as we make heavy use of these for communicating with the customers.).

    2. Instead I would rather like to add the tracking code to our customized e-mails. Is there an API function call to get the tracking code for a give order, say something like getTrackingCode($order_id) returning abcyxz123?

    3. Well, not a show stopper, but bulk editing would be really nice like already requested at https://wordpress.org/support/topic/feature-request-bulk-label-creation/

    As said I see a really great potential for this plugin, there’s a big market for it!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter nachtigall

    (@nachtigall)

    Also, do you have the source available on github (preferred) or somewhere else?

    • This reply was modified 4 years, 7 months ago by nachtigall.
    Plugin Author Shadi Manna

    (@shadim)

    Hello,

    1. We are considering adding this as a feature. That said, you could remove “Note” emails all together and avoid this issue by adding, see https://docs.woocommerce.com/document/unhookremove-woocommerce-emails/. You would need to add to functions.php, the hook add_action( 'woocommerce_email', 'unhook_those_pesky_emails' ); and then add the function:

    function unhook_those_pesky_emails( $email_class ) {
    		// Note emails
    		remove_action( 'woocommerce_new_customer_note_notification', array( $email_class->emails['WC_Email_Customer_Note'], 'trigger' ) );
    }

    2. The tracking number is in the order meta table as an array, you could get it by using get_post_meta( $order_id, '_pr_shipment_dhl_label_tracking', true );
    3. This will be released in a future version.

    The code is on Github – https://github.com/shadimanna/dhl-logistic-services-for-woocommerce.

    Let us know if you have further questions.

    Thread Starter nachtigall

    (@nachtigall)

    Thank you for answering and considering it! I’m setting the topic to “resolved” and will wait for the future version.

    Plugin Author Shadi Manna

    (@shadim)

    You are welcome.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Private note setting and getTrackingCode API function’ is closed to new replies.