• Resolved morklavor

    (@morklavor)


    Hi

    The plugin is working fine currently, except CSV import issue but we can work without.

    One thing is that Mondial Relay tracking URL sent to the customer by e-mail uses a zip code in combination with the tracking number. Would it be possible – at least for Mondial Relay, not sure for other carriers – to use the invoice zip code and not the shipping zip code (relay zip code actually) so the link works ?

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author gaurav1092

    (@gaurav1092)

    Hi @morklavor,

    We are unable to change the Mondial Relay tracking URL from the postal code to the relay zip code. We’ve checked the Mondial Relay tracking URL, and it works fine with the postal code.

    Let me know if you need further assistance!

    Best regards,
    Gaurav

    Thread Starter morklavor

    (@morklavor)

    OK since Mondial Relay is for me the only plugin that needs a postcode, and moreover the billing (home) zip code, I had to find a solution. For those who want a link that actually works

    in plugin directory includes / class-wc-advanced-shipment-tracking.php

    around line #1040 I just inversed billing and shipping from

        if ( null != $order->get_shipping_postcode() ) {
    $shipping_postal_code = $order->get_shipping_postcode();
    } else {
    $shipping_postal_code = $order->get_billing_postcode();
    }

    to

        if ( null != $order->get_shipping_postcode() ) {
    $shipping_postal_code = $order->get_billing_postcode();
    } else {
    $shipping_postal_code = $order->get_shipping_postcode();
    }

    It just works.

    • This reply was modified 1 week ago by morklavor.
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.