4

Want to add the carrier name in dropdown same as default carriers in shipment admin panel, how can I set it ?

Please see picture

enter image description here

7

each carrier must have a model associated to it that implements the interface Mage_Shipping_Model_Carrier_Interface. This interface has 2 methods.

interface Mage_Shipping_Model_Carrier_Interface
{

/**
 * Check if carrier has shipping tracking option available
 *
 * @return boolean
 */
public function isTrackingAvailable();

/**
 * Get allowed shipping methods
 *
 * @return array
 */
public function getAllowedMethods();

}

You have to implement the method isTrackingAvailable and make it return true. IN the dropdown you see in the backend only the carriers that have tracking available are listed.

  • Great, it work! – sIiiS Apr 17 '14 at 7:57
  • @sIiiS : Can you tell me which file you have edited or the full process to do this? – Kishor Apr 17 '15 at 6:59
  • @Kishor: in my carrier Model file – sIiiS Apr 20 '15 at 17:53
  • Working for magento 2 as well. – Umar Yousaf Jun 12 '18 at 6:41
0

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;
}

Source

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.