When upgrading from 1.6-1.9 our shipping module just seems to come up with problem after problem, assuming its outdated XML, was just wondering if anyone can see any issues with the config xml we have as when playing about with everything to do with the shipping module this seems to be the only thing that changing doesn't affect anything.

Just to be clear the problem we are having it, the products used to be put into a matrix (defined in config) now it just has the default handling fee as the total cost of shipping and not adding the relevant price matrix, anyway heres the config:

<?xml version="1.0"?>

                <title>Carrier Title</title>
                <name>Method Name</name>
                <haztwo>Airsea Worldwide</haztwo>
                <lastchoice>International Signed For</lastchoice>
                <specificerrmsg>This shipping method is currently unavailable. If you would like to ship using this shipping method, please contact us.</specificerrmsg>


                                            <title>Configure Boxes</title>
                                            <title>Configure Dummy Products</title>
                                            <title>Configure TNT Tables</title>
                                            <title>Configure Airsure Tables</title>
                                            <title>Configure AirSea Tables</title>
                                            <title>Configure ISF Tables</title>



class Excellence_Ship_Model_Carrier_Excellence extends Mage_Shipping_Model_Carrier_Abstract
implements Mage_Shipping_Model_Carrier_Interface {
    protected $_code = 'excellence';

    public function collectRates(Mage_Shipping_Model_Rate_Request $request)
        if (!Mage::getStoreConfig('carriers/'.$this->_code.'/active')) {
            return false;

        $handling = Mage::getStoreConfig('carriers/'.$this->_code.'/handling');
        $result = Mage::getModel('shipping/rate_result');
        $show = true;
        if($show){ // This if condition is just to demonstrate how to return success and error in shipping methods

            $method = Mage::getModel('shipping/rate_result_method');

            $error = Mage::getModel('shipping/rate_result_error');
        return $result;
    public function getAllowedMethods()
        return array('excellence'=>$this->getConfigData('name'));


<?xml version="1.0" encoding="UTF-8"?>
        <myconfig translate="label" module="ship">
            <label>My Shipping Config</label>
        <my_boxes translate="label" module="ship">
                <non_hazardous translate="label">
                    <label>Non-Hazardous Boxes</label>
                        <my2_dim translate="label">
                            <label>My 2 Dimensions</label>
                            <comment>Dimensions of My 2 box. L W H (one per line)</comment>
  • Can you please elaborate what problems you are experiencing exactly? Also to see changes in the XML directly, you need to disable the Magento cache Commented Oct 6, 2015 at 12:20
  • Don't have magento cache enabled and as explained; literally copy pasting from the question above the products used to be put into a matrix (defined in config) now it just has the default handling fee as the total cost of shipping and not adding the relevant price matrix Commented Oct 6, 2015 at 12:33
  • Ok. Can you elaborate the issues? Without the actual issue explained, it's impossible to solve the problem. The XML looks OK at first glance. Commented Oct 6, 2015 at 12:34
  • I don't know how to word it differently than I already have sorry. Commented Oct 6, 2015 at 12:35
  • Like it has a handling fee and its meant to add cost based on the config in my admin, but its not adding the cost just the default "£5" handling fee i have set Commented Oct 6, 2015 at 12:36

1 Answer 1


It seems the carrier model only uses the 'price' field, as you can see in the following two lines:


It retrieves the config data field 'price', but it doesn't use the other fields like dgn_fee, sml_box_fee etc.

Maybe you're using an older unfinished version of the extension?

  • I did think that was odd but it works fine on the 1.6 thats whats so weird, was thinking it was possibly something I've missed on product configuration Commented Oct 6, 2015 at 12:56
  • Have you got an idea how I'd work a solution for this to read the custom config in my admin, it works on price tables Commented Oct 6, 2015 at 12:57
  • Did you upgrade the 1.6 Magento install, or did you start over with a fresh install? Commented Oct 6, 2015 at 12:58
  • It's definitely the correct extension I'm using I've disabled others to check, am confused how it gets the prices on the old site, its not in the cache etc I've checked. Commented Oct 6, 2015 at 12:58
  • You can retrieve config fields using $this->getConfigData('fieldname'); Commented Oct 6, 2015 at 12:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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