Direct Tracking Links in Shipments for Order Admin Interface

This mod allows you to add direct tracking links in “Shipments for Order” Admin Interface (below the “Print Packing Slip” link). Admin can visit courier tracking pages directly.

Implementation

In /public_html/admin/templates/shipments.manage.row.tpl

Find

<a title='{% lang 'PrintPackingSlipTitle' %}' href="#" onclick="Shipments.PrintPackingSlip('{{ shipment.shipmentid }}', '{{ shipment.shiporderid }}'); return false;">{% lang 'PrintPackingSlip' %}</a>

Replace

<a title='{% lang 'PrintPackingSlipTitle' %}' href="#" onclick="Shipments.PrintPackingSlip('{{ shipment.shipmentid }}', '{{ shipment.shiporderid }}'); return false;">{% lang 'PrintPackingSlip' %}</a>
<a title='AfterShip' href="http://track.aftership.com/hong-kong-post/{{ shipment.shiptrackno }}" target=_blank>AfterShip</a>
<a title='USPS' href="https://tools.usps.com/go/TrackConfirmAction?tLabels={{ shipment.shiptrackno }}" target=_blank>USPS</a>

Result

Leave a Reply

Your email address will not be published. Required fields are marked *