magento icon indicating copy to clipboard operation
magento copied to clipboard

Even if I ship an order without MyParcel the url of the shipment refers to https://myparcel.me

Open gerben86 opened this issue 2 years ago • 4 comments

Plugin version

4.5.0 and 4.9.0

Magento version

2.4.4

PHP version

7.4.30

What went wrong?

When an order should be shipped via MyParcel but I decide to use another shipping company I past the track-and-trace-url of that company in the field 'number' in the Magento Backend. I also deselect the 'Create MyParcel consignment'. Check the printscreen below: image

However, in the shipmentmail send to the customer the url looks like this: https://myparcel.me/track-trace/https://www.dhlparcel.nl/nl/particulier/ontvangen/volg-uw-zending?tt=J123123123&pc=1234AB/1234AB/NL So it's redirected to https://myparcel.me, which results in a 404.

Why are you modifying the field 'Number' if the shipment isn't actually done via MyParcel? This has customer impact, because I get complaints that the url isn't usable...

The url is generated in this file 'sdk/src/Helper/TrackTraceUrl.php'. There should be a check that it's actually shipped via MyParcel and only then the url should be created in this way, otherwise leave the 'shipment number' untouched.

Is there anyone who can provide me with a temporarily workaround, so that both the orders via MyParcel (90% of the orders) and the orders via another shippingcompany are processed fine?

Thanks!

Edit: I added this as a temporarily workaround (just check if the value contains DHL, then don't modify it): image

Reproduction steps

See above

Relevant log output

No response

Additional context

No response

gerben86 avatar Jun 28 '22 16:06 gerben86