nikohadouken
Forum Replies Created
-
Forum: Plugins
In reply to: [DHL Shipping Germany for WooCommerce] Delete old labelYes this actually seems to work.
Thank you!
We once had the case that an error message was thrown:
“Error: Invalid XML: cvc-minLength-valid: Value ‘A’ with Length=’1′ is not facet-vaild with respect to minLength ’10’ for type ‘ShipmentNumberType'”But when I tested this again in another case it worked.
- This reply was modified 6 years, 7 months ago by nikohadouken.
- This reply was modified 6 years, 7 months ago by nikohadouken.
Forum: Plugins
In reply to: [DHL Shipping Germany for WooCommerce] Tracking number in emailsHello dav74,
Did you have a look at this post?
is-there-way-to-send-trackingnumber-in-order-completed-email
Forum: Plugins
In reply to: [DHL Shipping Germany for WooCommerce] Test APIIn older versions of this plugin there was a checkbox to enable usage of the dhl sandbox api.
I don’t know why but currently this feature is commented out in the plugin code.You can just use your production credentials and cancel all your created labels again via the plugin itself (order detail view) or login to the DHL Geschäftskundenportal and cancel the labels via their frontend.
If anybody knows a better way to test the plugin please let us know.
Hello yunse,
I had the same issue and solved it like with this.
1. Go to the dhl-for-woocommerce settings:
> Dashboard > WooCommerce > Settings > Shipping > DHL Paket
> check the checkbox that prevents sending the separate notification email2. Add a function to get the tracking number to your functions.php in your wordpress child theme:
function acme_get_dhl_tracking_number($order) { $meta = $order->get_meta('_pr_shipment_dhl_label_tracking'); if (! $meta) { return false; } if (! array_key_exists('tracking_number', $meta)) { return false; } return $meta["tracking_number"]; }3. update your email template in your child theme:
// wp-content/themes/<themex-child>/woocommerce/emails/email-order-details.php /* ... */ $dhl_tracking_number = acme_get_dhl_tracking_number($order); if ($dhl_tracking_number ) : ?> <table class="shipment-tracking"> <tr> <h2><?php _e( 'Track Shipment ', 'woocommerce' ) ?></h2> <p> DHL Tracking Number: <a href="https://nolp.dhl.de/nextt-online-public/report_popup.jsp?idc=<?php echo $dhl_tracking_number?>" target="_blank" style="color: #80b611; font-weight: strong; text-decoration: none;"> <?php echo $dhl_tracking_number?> </a> </p> </tr> </table> <?php endif; /* ... */- This reply was modified 6 years, 9 months ago by nikohadouken.