Add new carrier to Magento for order tracking (Initial CityLink)

mattpark22 picture mattpark22 · Jul 12, 2011 · Viewed 9k times · Source

I wish to use the UK Initial CityLink courier, as the shipment provider. Does anyone know anything on integrating with their systems, such as an extension or plug-in?

If not, how can we add a new carrier to the list, so we can manually add a tracking number to the order. That the customer can use - to track their order on the CityLink website.

Answer

mimarcel picture mimarcel · Oct 13, 2014

Add a new active/inactive carrier in config

<default>
        <carriers>
            <your_carrier>
                <active>0|1</active>
                <model>your_module/your_carrier</model>
                <title>Your Carrier</title>
                <name>your_carrier</name>
                <price>0.00</price>
            </your_carrier>
        </carriers>
</default>

Then in your model your_module/your_carrier which extends Mage_Shipping_Model_Carrier_Abstract, rewrite the method isTrackingAvailable to return true:

public function isTrackingAvailable()
{
    return true;
}